Skip to content

ChArUco generation produces incorrect marker locations in the Chessboard #24806

@giri-kum

Description

@giri-kum

System Information

OpenCV Python version: 4.9.0
Platform: Debian 11
Python version: 3.9.2

Detailed description

Generating ChArUco board no longer produces accurate boards. The ArUco markers are not centered in the chessboard squares like shown below. There seems some kind of drift as the number of columns increases in this case. This was not a problem in OpenCV 4.6.

GenCharuco

Steps to reproduce

arucoDict = cv2.aruco.DICT_4X4_1000
boardSize = [7,2]
squareLength = 13
markerLength = 10
dictionary = cv2.aruco.getPredefinedDictionary(arucoDict)
board = cv2.aruco.CharucoBoard(boardSize, squareLength, markerLength, dictionary)
image = board.generateImage([200, 150],1,1);

Issue submission checklist

  • I report the issue, it's not a question
  • I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
  • I updated to the latest OpenCV version and the issue is still there
  • There is reproducer code and related data files (videos, images, onnx, etc)

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions