0

I'm working on a python script to do pose estimation using charuco board (https://docs.opencv.org/4.x/db/da9/tutorial_aruco_board_detection.html). I can already do it with single aruco marker, with some trouble with the documentation :/. Now I would like to a charuco board to do it and when I use interpolateCornersCharuco() I got this error. It seems the doc has change and I don't find what is the actual good signature for this function in python. Does anyone know ?

ps : I'm using aruco library from opencv with python 3.10.11, opencv 4.7.0 and I'm on Windows.

board = aruco.CharucoBoard((row, col), squareLength, markerLenght, arUsedDictionnary)
charucoretval, charucoCorners, charucoIds = aruco.interpolateCornersCharuco(arMarkersCorners, arMarkersId, 
                                                                            grayImg, board)
computedImage = aruco.drawDetectedCornersCharuco(img, markerCorners, markersIds, (0,255,0))
retval, rvec, tvec = aruco.estimatePoseCharucoBoard(charucoCorners, charucoIds, board, cameraCalibrationMatrix, calibrationDistCoef)

1 Answers1

0

It's been deprecated, use: CharucoDetector::detectBoard

Geronimo
  • 430
  • 4
  • 10
  • Hi, thanks for your answer. But I already use this method, so I don't know what to do after call detectBoard() in order to do a pose estimation of the charuco board. I got charuco corners and ids from this method but after I want to get values like tvec and rvec from the board. – Maxime Dumonteil Aug 25 '23 at 08:50