AttributeError: 'module' object has no attribute 'ORB'

蓝咒 提交于 2019-11-28 21:21:07
J Richard Snape

I found this also. I checked the actual contents of the cv2 module and found ORB_create() rather than ORB()

Use the line

orb = cv2.ORB_create()

instead of orb = cv2.ORB() and it will work.

Verified on Python 3.4, OpenCV 3 on Windows, using the OpenCV test data set box.png and box_in_scene.png with the following results. Note you have to put in None for outImg in the line img3 = cv2.drawMatches(img1,kp1,img2,kp2,matches[:10], flags=2) also - see my answer to your other question.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!