kopia lustrzana https://github.com/OpenDroneMap/ODM
Support for --camera-model
rodzic
7a0dbd1296
commit
ae9986a5e8
|
@ -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>',
|
||||
|
|
|
@ -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")
|
||||
|
|
Ładowanie…
Reference in New Issue