multical icon indicating copy to clipboard operation
multical copied to clipboard

cv2.error: OpenCV(4.5.3) -1: error: (-5:Bad argument) in function 'drawMarker'

Open uestchang opened this issue 3 years ago • 0 comments

  • 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. 2021-10-13 16-37-41 screenShot

uestchang avatar Oct 13 '21 08:10 uestchang