multical
multical copied to clipboard
cv2.error: OpenCV(4.5.3) -1: error: (-5:Bad argument) in function 'drawMarker'
- Update: I use opencv-python 4.1.2.30, opencv-contrib-python 4.1.2.30 and it fixed this problem, hope this helps. ——————————————————————————————————————————
- Question: Which is the recommended version of opencv-python?
- Description: I used opencv-python 4.5.3 to run the following command:
multical boards --boards myboards.yaml --detect my_image.png
and got an error as the title:
error: (-5:Bad argument) in function 'drawMarker' Overload resolution failed: Can't parse 'position'. Sequence item with index 0 has a wrong type Can't parse 'position'. Sequence item with index 0 has a wrong type
- Addition: I try adding the following code at line22 of display.py to fix the error:
corner = corner.astype('int32')
although it works, the checked result of boards got some wrong points.