Skip to content

Commit

Permalink
add FishEye calibration option
Browse files Browse the repository at this point in the history
  • Loading branch information
lambdaloop committed Aug 3, 2019
1 parent 9175bba commit 7cf6fe9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion anipose/anipose.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
'video_extension': 'avi',
'calibration': {
'animal_calibration': False,
'calibration_init': None
'calibration_init': None,
'fisheye': False
},
'triangulation': {
'ransac': False,
Expand Down
3 changes: 2 additions & 1 deletion anipose/calibrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,11 @@ def process_session(config, session_path):
error = None
elif config['calibration']['calibration_init'] is not None:
calib_path = os.path.join(config['path'], config['calibration']['calibration_init'])
print('loading calibration from: {}'.format(calib_path))
cgroup = CameraGroup.load(calib_path)
init_extrinsics = False
else:
cgroup = CameraGroup.from_names(cam_names)
cgroup = CameraGroup.from_names(cam_names, config['calibration']['fisheye'])

board = get_calibration_board(config)

Expand Down

0 comments on commit 7cf6fe9

Please sign in to comment.