1. error: (-215:Assertion failed)
图片路径错误
2. module ‘cv2.cv2‘ has no attribute ‘xfeatures2d‘
cv2.xfeatures2d.SIFT_create()
改为
cv2.SIFT_create()
具体用法:https://blog.youkuaiyun.com/Gordon_Wei/article/details/88920411
3. 需要用到SIFT时,需要用python39,需要用keras,tensorflow时,需要用python37
本文介绍了OpenCV中出现的两个常见错误:(-215:Assertion failed)和cv2.xfeatures2d.SIFT_create()的缺失。解决方法包括检查图片路径和更新SIFT创建函数的调用方式。同时,指出了使用SIFT特征时应选择Python 3.9,而使用Keras和Tensorflow则推荐使用Python 3.7。
2402

被折叠的 条评论
为什么被折叠?



