Support for --camera-model

pull/1015/head
Piero Toffanin 2019-08-15 10:55:18 -04:00
rodzic 7a0dbd1296
commit ae9986a5e8
2 zmienionych plików z 13 dodań i 0 usunięć

Wyświetl plik

@ -149,6 +149,16 @@ def config():
'Can be specified either as path to a cameras.json file or as a '
'JSON string representing the contents of a '
'cameras.json file. Default: %(default)s')
parser.add_argument('--camera-model',
metavar='<string>',
default='auto',
choices=['auto', 'perspective', 'brown', 'fisheye'],
help=('Set a camera projection type. Manually setting a value '
'can help improve geometric undistortion. By default the application '
'tries to determine a projection type from the images metadata. Can be '
'set to one of: [auto, perspective, brown, fisheye]. Default: '
'%(default)s'))
parser.add_argument('--max-concurrency',
metavar='<positive integer>',

Wyświetl plik

@ -116,6 +116,9 @@ class OSFMContext:
"bundle_outlier_filtering_type: AUTO",
]
if args.camera_model != 'auto':
config.append("camera_projection_type: %s" % args.camera_model.upper())
if not has_gps:
log.ODM_INFO("No GPS information, using BOW matching")
config.append("matcher_type: WORDS")