kopia lustrzana https://github.com/OpenDroneMap/ODM
Support for --camera-model
rodzic
7a0dbd1296
commit
ae9986a5e8
|
@ -150,6 +150,16 @@ def config():
|
||||||
'JSON string representing the contents of a '
|
'JSON string representing the contents of a '
|
||||||
'cameras.json file. Default: %(default)s')
|
'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',
|
parser.add_argument('--max-concurrency',
|
||||||
metavar='<positive integer>',
|
metavar='<positive integer>',
|
||||||
default=context.num_cores,
|
default=context.num_cores,
|
||||||
|
|
|
@ -116,6 +116,9 @@ class OSFMContext:
|
||||||
"bundle_outlier_filtering_type: AUTO",
|
"bundle_outlier_filtering_type: AUTO",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
if args.camera_model != 'auto':
|
||||||
|
config.append("camera_projection_type: %s" % args.camera_model.upper())
|
||||||
|
|
||||||
if not has_gps:
|
if not has_gps:
|
||||||
log.ODM_INFO("No GPS information, using BOW matching")
|
log.ODM_INFO("No GPS information, using BOW matching")
|
||||||
config.append("matcher_type: WORDS")
|
config.append("matcher_type: WORDS")
|
||||||
|
|
Ładowanie…
Reference in New Issue