shuishen
7 days ago 3435f33697f40c956af9be72700fead2980fea45
capabilities/05-3d-pointcloud/apply_pointcloud_semantic_model.py
@@ -61,6 +61,10 @@
            raise ValueError("LAS/LAZ input has no RGB dimensions; this model requires observed RGB.")
        xyz = np.column_stack((las.x, las.y, las.z)).astype(np.float32)
        raw_rgb = np.column_stack((las.red, las.green, las.blue)).astype(np.float32)
        if len(xyz) < 1 or xyz.shape != raw_rgb.shape:
            raise ValueError(
                "LAS/LAZ 中没有可读取的点。请选择完整的点云导出文件,不要上传空文件或未完成下载的分块。"
            )
        maximum = float(raw_rgb.max())
        if maximum <= 0:
            raise ValueError("LAS/LAZ input RGB values are all zero; observed RGB is required.")