python cv2.calibrateCamera throws error: objectPoints should contain vector of vectors of points of type Point3f

前端 未结 3 1148
忘了有多久
忘了有多久 2021-01-14 14:14

I have the code

img = cv2.imread(\"poolPictures\\chessboard3.jpg\", cv2.IMREAD_COLOR)
chessboardImage = cv2.imread(\"poolPictures\\chessboardActual.jpg\", c         


        
3条回答
  •  隐瞒了意图╮
    2021-01-14 15:14

    OpenCV also requires floats to have single precision, as per this question.

    This means every array needs to be converted to np.float32 before passing to calibrateCamera.

提交回复
热议问题