Assertion error when using SolvePnP in OpenCv

197 views Asked by At

I am trying to find the calibration from I was following the type of inputs described here, but i am having this error:

error: OpenCV(4.4.0) /tmp/pip-req-build-6amqbhlx/opencv/modules/calib3d/src/solvepnp.cpp:753: error: (-215:Assertion failed) ( (npoints >= 4) || (npoints == 3 && flags == SOLVEPNP_ITERATIVE && useExtrinsicGuess) ) && npoints == std::max(ipoints.checkVector(2, CV_32F), ipoints.checkVector(2, CV_64F)) in function 'solvePnPGeneric'

Example code:

Any hints where this error might be coming from?

0

There are 0 answers