Skip to content
Permalink
Browse files

Initial commit for calib pattern manual verify feature

  • Loading branch information
JulianPitney committed Dec 10, 2019
1 parent 1325cd2 commit db03dde54d1dea25b44dbb099c52760a518aca42
Showing with 15 additions and 2 deletions.
  1. +3 βˆ’0 .gitignore
  2. +7 βˆ’2 anipose/common.py
  3. +5 βˆ’0 docs/start_3d.md
@@ -95,6 +95,9 @@ ENV/
.spyderproject
.spyproject

# PyCharm project settings
.idea

# Rope project settings
.ropeproject

@@ -191,6 +191,7 @@ def get_calibration_board(config):

board_size = calib['board_size']
board_type = calib['board_type'].lower()
manually_verify = calib['manually_verify']

if board_type == 'aruco':
raise NotImplementedError("aruco board is not implemented with the current pipeline")
@@ -200,10 +201,14 @@ def get_calibration_board(config):
calib['board_square_side_length'],
calib['board_marker_length'],
calib['board_marker_bits'],
calib['board_marker_dict_number'])
calib['board_marker_dict_number'],
manually_verify=manually_verify)



elif board_type == 'checkerboard':
board = Checkerboard(board_size[0], board_size[1],
calib['board_square_side_length'])
calib['board_square_side_length'], manually_verify=manually_verify)
else:
raise ValueError("board_type should be one of "
"'aruco', 'charuco', or 'checkerboard' not '{}'".format(
@@ -91,6 +91,7 @@ What to configure:
- Length of marker separation (for aruco) or square side (for charuco or checkerboard) (triangulation is set to this unit)
- Length of marker side in appropriate unit, in same unit as above
- aruco marker dictionary (number of bits and number of markers in dictionary)
- Boolean value indicating whether or not you want to manually verify the detection of the calibration pattern in each frame (Allows you to throw out bad detections)

An example configuration:
```toml
@@ -115,6 +116,10 @@ board_marker_length = 3 # mm
# If charuco or checkerboard, square side length
board_square_side_length = 4 # mm
# Whether or not you want to manually verify the calibration marker detection
manually_verify = false
```

## Drawing the calibration board

0 comments on commit db03dde

Please sign in to comment.
You can’t perform that action at this time.