0

使用 OpenCV-python 和 aruco 库进行跟踪项目。使用时抛出以下错误

rvecs,tvecs = aruco.estimatePoseSingleMarker(corners, 0.1765, cameraMatrix, distcoefs)

错误:

AttributeError: 'module' object has no attribute 'estimatePoseSingleMarker

其他人工作正常

aruco.Dictionary_get(aruco.Dict_6x6_250)

aruco.DetectParameters_create()

知道为什么它会抛出那个错误吗?

>>> cv2.__version__
'3.2.0-dev'

odroid@odroid:~$ python --version
Python 2.7.12

odroid@odroid:~$ uname -a
Linux odroid 3.10.104-126 #1 SMP PREEMPT Tue Nov 29 22:24:16 UTC 2016 
armv7l armv7l armv7l GNU/Linux

编辑:它在帮助文档中

help(cv2.aruco)
Help on module cv2.aruco in cv2:

NAME
    cv2.aruco

FILE
    (built-in)

FUNCTIONS


estimatePoseSingleMarkers(...)
    estimatePoseSingleMarkers(corners, markerLength, cameraMatrix, 
distCoeffs[, rvecs[, tvecs[, _objPoints]]]) -> rvecs, tvecs, 
_objPoints
4

1 回答 1

0

该模块是 aruco.estimatePoseSingleMarkers,末尾带有 s

于 2017-06-22T03:04:55.143 回答