Skip to content

Commit

Permalink
Don't generate aprilgrid targets if size < 3*3
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanJos authored Sep 21, 2024
1 parent 1f60227 commit e119b24
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ def generateAprilBoard(canvas, n_cols, n_rows, tagSize, tagSpacing=0.25, tagFami
print("[ERROR]: Invalid tagSpacing specified. [0-1.0] of tagSize")
sys.exit(0)

if(n_cols<3 or n_rows<3):
print("[ERROR]: The size of Aprilgrid targets must be greater than 3*3.")
sys.exit(0)

if skipIds is None:
skip_ids = []

Expand Down

0 comments on commit e119b24

Please sign in to comment.