kopia lustrzana https://github.com/OpenDroneMap/ODM
commit
4dadb53a49
|
@ -14,7 +14,7 @@ networkx==2.5
|
|||
numpy==1.21.1
|
||||
Pillow==8.0.1
|
||||
vmem==1.0.1
|
||||
pyodm==1.5.6
|
||||
pyodm==1.5.8
|
||||
pyproj==3.0.0.post1
|
||||
Pysolar==0.9
|
||||
pytz==2020.4
|
||||
|
|
|
@ -28,8 +28,8 @@ def hms(seconds):
|
|||
return '{}s'.format(round(s, 0))
|
||||
|
||||
|
||||
def generate_point_cloud_stats(input_point_cloud, pc_info_file):
|
||||
if not os.path.exists(pc_info_file):
|
||||
def generate_point_cloud_stats(input_point_cloud, pc_info_file, rerun=False):
|
||||
if not os.path.exists(pc_info_file) or rerun:
|
||||
export_info_json(input_point_cloud, pc_info_file)
|
||||
|
||||
if os.path.exists(pc_info_file):
|
||||
|
@ -89,7 +89,7 @@ class ODMReport(types.ODM_Stage):
|
|||
|
||||
# pc_info_file should have been generated by cropper
|
||||
pc_info_file = os.path.join(tree.odm_georeferencing, "odm_georeferenced_model.info.json")
|
||||
odm_stats['point_cloud_statistics'] = generate_point_cloud_stats(tree.odm_georeferencing_model_laz, pc_info_file)
|
||||
odm_stats['point_cloud_statistics'] = generate_point_cloud_stats(tree.odm_georeferencing_model_laz, pc_info_file, self.rerun())
|
||||
else:
|
||||
ply_pc = os.path.join(tree.odm_filterpoints, "point_cloud.ply")
|
||||
if os.path.exists(ply_pc):
|
||||
|
@ -97,7 +97,7 @@ class ODMReport(types.ODM_Stage):
|
|||
views_dimension = "views"
|
||||
|
||||
pc_info_file = os.path.join(tree.odm_filterpoints, "point_cloud.info.json")
|
||||
odm_stats['point_cloud_statistics'] = generate_point_cloud_stats(ply_pc, pc_info_file)
|
||||
odm_stats['point_cloud_statistics'] = generate_point_cloud_stats(ply_pc, pc_info_file, self.rerun())
|
||||
else:
|
||||
log.ODM_WARNING("No point cloud found")
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue