OpenCV-python和ArUco库estimatePoseSingleMarker()模块没有属性

时间:2017-06-21 22:17:42

标签: python opencv aruco

使用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

1 个答案:

答案 0 :(得分:0)

模块是aruco.estimatePoseSingleMarkers,最后是一个s