camera-projection

solvePnP throws error: (-215:Assertion failed) src.size == dst.size && src.channels() == dst.channels() in function 'cvConvertScale'

solvePnP throws error: (-215:Assertion failed) src.size == dst.size && src.channels() == dst.channels() in function 'cvConvertScale' Question: I have 4 world coordinate points of a box and their image points . I’m trying to calculate the pose of the camera but I’m getting an error File c:Usersnmorsi200AppDataLocalTempProg6_4.py", line 292, in <module> cv.solvePnP(objectPoints,imagePoints,cameraMatrix,distCoeffs) cv2.error: OpenCV(4.5.5) D:aopencv-pythonopencv-pythonopencvmodulescoresrcconvert_c.cpp:113: error: …

Total answers: 1