Closed gjcamacho closed 5 years ago
Fortunately, I found how to solve the issues:
For Python 3.6.9, OpenCV 3.1.0 and Pytorch 1.1.0: utils.py, line 204: add 1 dimension to variables p3d and p2d so that their shape becomes: Nx1x3 and Nx1x2 utils.py, line 271: change line beginning from 'contours, _ = [...]' to 'img, countours, hierarchy = [...]'
Hope it helps.
That is it. different OpenCV versions on python binding have slightly different parameters.
Hello,
Would you kindly share the versions of OpenCV and Pytorch used to run 'python test.py'? I am getting Assertion failure on matrix.cpp@2355 line after the method solvePnPRansac call at utils.py:204.
Thank you very much for your attention