Python 模块';cv2.cv2';没有属性';sfm&x27;
无法将sfm与opencv python一起使用Python 模块';cv2.cv2';没有属性';sfm&x27;,python,python-3.x,opencv,opencv-python,Python,Python 3.x,Opencv,Opencv Python,无法将sfm与opencv python一起使用 import cv2 help(cv2.sfm) 我得到以下错误: Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: module 'cv2.cv2' has no attribute 'sfm' 回溯(最近一次呼叫最后一次): 文件“”,第1行,在 AttributeEr
import cv2
help(cv2.sfm)
我得到以下错误:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'cv2.cv2' has no attribute 'sfm'
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
AttributeError:模块“cv2.cv2”没有属性“sfm”
我想使用sfm组件。我尝试从源代码构建,但不知道应该设置哪些构建选项,以便为opencv的sfm函数使用python绑定。我还尝试了
pip安装opencv contrib python
,但这也没有安装sfm组件您在什么平台上?Ubuntu 20.04和在python 3.8中使用Pycharm IDE看起来像是命名空间问题。help(sfm)
有效吗?检查哪个版本的opencv有“sfm”并安装它