【问题标题】:About aruco error import 'cv2.aruco' error on python3.5关于python3.5上的aruco error import 'cv2.aruco' error
【发布时间】: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


【解决方案1】:

尝试使用 将 cv2.aruco 导入为 aruco

【讨论】:

    猜你喜欢
    • 2018-02-08
    • 2022-06-15
    • 2022-08-04
    • 2022-12-31
    • 2021-07-19
    • 2021-05-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多