【发布时间】:2018-11-11 07:30:04
【问题描述】:
我收到如下错误。
traceback (most recent call last):
File "test_sensor.py", line 97, in <module>
detector = ArucoDetector(sensor.camera, data["detector_layout_path"])
File "/home/usr/deeptracking/deeptracking/detector/detector_aruco.py", line 11, in __init__
self.camparam = aruco.CameraParameters()
NameError: name 'aruco' is not defined
但是,我已经安装了cv2.aruco。
有什么问题?
环境
- ubuntu 16.04
- python 3.5
- cuda 9.2
【问题讨论】:
-
你是如何安装的?安装是否有可能针对 Python 2.7 而不是 3.5? ——
-
@DaveW.Smith 因为我正在使用 python 3 构建环境,所以如果可能的话,我想这样做。但我什至会在 python 2 中尝试一下。谢谢!
-
@Dave W. Smith 其他程序使用 aruco 工作。未找到相机参数。 cv2.aruco 中没有 opencv3 中的吗?
标签: python-3.x ubuntu-16.04 cv2 aruco