【发布时间】:2021-12-15 02:48:37
【问题描述】:
我正在尝试在 Debian 9.5 上使用 OpenCV for Python 2.7 通过我的相机检测 Aruco 标记,但由于处理 cv2.aruco.detectMarkers() 的错误,我无法运行我的代码。在 Windows 上运行它,它没有任何问题。特别是,我在我的代码中写道:
cv2.aruco.detectMarkers(image=gray, dictionary=aruco_dict, parameters=parameters,
cameraMatrix=camera_matrix, distCoeff=camera_distortion)
其中camera_matrix和camera_distortion分别是我通过相机标定得到的相机矩阵和相机畸变参数。
更准确地说,错误表明函数cv2.aruco.detectMarkers 没有cameraMatrix 输入参数。我该如何解决这个问题?非常感谢您。
【问题讨论】:
标签: python python-2.7 opencv debian