Skip to content

Commit

Permalink
Improved the chessboard detection
Browse files Browse the repository at this point in the history
commit-id:6662bc18
  • Loading branch information
integraledelebesgue committed Jan 19, 2025
1 parent 1e9c2f1 commit 3412084
Show file tree
Hide file tree
Showing 3 changed files with 558 additions and 55 deletions.
2 changes: 1 addition & 1 deletion child_lab_framework/_cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def calibrate(
calibration = calibration_procedure.run(
video_input,
video_output,
chessboard.Properties(square_size, *inner_board_corners),
chessboard.BoardProperties(square_size, *inner_board_corners),
skip,
)

Expand Down
6 changes: 3 additions & 3 deletions child_lab_framework/_procedure/calibrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
def run(
video_source: Path,
annotated_video_destination: Path,
board_properties: chessboard.Properties,
board_properties: chessboard.BoardProperties,
skip: int,
) -> Calibration:
reader = Reader(
Expand All @@ -39,8 +39,8 @@ def run(

detector = chessboard.Detector(board_properties)

inner_corners_per_row = board_properties.inner_corners_per_row
inner_corners_per_column = board_properties.inner_corners_per_column
inner_corners_per_row = board_properties.inner_columns
inner_corners_per_column = board_properties.inner_rows
square_size = board_properties.square_size

# Prepare object points, like (0,0,0), (1,0,0), (2,0,0). ...,(6,5,0)
Expand Down
Loading

0 comments on commit 3412084

Please sign in to comment.