Add version in output log, remove --matcher-distance

268
Piero Toffanin 2021-12-14 12:51:09 -05:00
rodzic b2764ae7f3
commit fe37770c52
4 zmienionych plików z 23 dodań i 13 usunięć

Wyświetl plik

@ -1 +1 @@
2.6.8
2.7.0

Wyświetl plik

@ -166,16 +166,6 @@ def config(argv=None, parser=None):
'Neighbors works together with Distance parameter, '
'set both to 0 to not use pre-matching. Default: %(default)s')
parser.add_argument('--matcher-distance',
metavar='<integer>',
action=StoreValue,
default=0,
type=int,
help='Distance threshold in meters to find pre-matching '
'images based on GPS exif data. Set both '
'matcher-neighbors and this to 0 to skip '
'pre-matching. Default: %(default)s')
parser.add_argument('--use-fixed-camera-params',
action=StoreTrue,
nargs=0,
@ -241,6 +231,15 @@ def config(argv=None, parser=None):
help='Run local bundle adjustment for every image added to the reconstruction and a global '
'adjustment every 100 images. Speeds up reconstruction for very large datasets. Default: %(default)s')
parser.add_argument('--sfm-algorithm',
metavar='<string>',
action=StoreValue,
default='incremental',
choices=['incremental', 'triangulation'],
help=('Choose the structure from motion algorithm. If camera positions and angles are available, triangulation is significantly faster for aerial datasets. '
'Can be one of: %(choices)s. Default: '
'%(default)s'))
parser.add_argument('--use-3dmesh',
action=StoreTrue,
nargs=0,
@ -771,6 +770,9 @@ def config(argv=None, parser=None):
if args.fast_orthophoto:
log.ODM_INFO('Fast orthophoto is turned on, automatically setting --skip-3dmodel')
args.skip_3dmodel = True
if not 'sfm_algorithm_is_set' in args:
log.ODM_INFO('Fast orthophoto is turned on, automatically setting --sfm-algorithm to triangulation')
args.sfm_algorithm = 'triangulation'
if args.pc_rectify and not args.pc_classify:
log.ODM_INFO("Ground rectify is turned on, automatically turning on point cloud classification")

Wyświetl plik

@ -192,8 +192,9 @@ class OSFMContext:
"feature_min_frames: %s" % args.min_num_features,
"processes: %s" % args.max_concurrency,
"matching_gps_neighbors: %s" % args.matcher_neighbors,
"matching_gps_distance: %s" % args.matcher_distance,
"matching_graph_rounds: 50",
"optimize_camera_parameters: %s" % ('no' if args.use_fixed_camera_params or args.cameras else 'yes'),
"reconstruction_algorithm: %s" % (args.sfm_algorithm),
"undistorted_image_format: tif",
"bundle_outlier_filtering_type: AUTO",
"sift_peak_threshold: 0.066",

9
run.py
Wyświetl plik

@ -17,10 +17,17 @@ from opendm.loghelpers import args_to_dict
from stages.odm_app import ODMApp
def odm_version():
try:
with open("VERSION") as f:
return f.read().split("\n")[0].strip()
except:
return "?"
if __name__ == '__main__':
args = config.config()
log.ODM_INFO('Initializing ODM - %s' % system.now())
log.ODM_INFO('Initializing ODM %s - %s' % (odm_version(), system.now()))
# Print args
args_dict = args_to_dict(args)