Problem with using ArUco + python

asked 2017-04-14 01:47:50 -0500

amie gravatar image

updated 2017-04-14 01:49:12 -0500

I am trying to use ArUco library with opencv. I have installed OpenCV 3.1 on ubuntu, opencv contrib and compiled both. When I do help(cv2.aruco), the functions are not listed. This is the output -

Help on module cv2.aruco in cv2:

NAME
cv2.aruco


FILE
(built-in)

DATA
DICT_4X4_100 = 1
DICT_4X4_1000 = 3
DICT_4X4_250 = 2
DICT_4X4_50 = 0
DICT_5X5_100 = 5
DICT_5X5_1000 = 7
DICT_5X5_250 = 6
DICT_5X5_50 = 4
DICT_6X6_100 = 9
DICT_6X6_1000 = 11
DICT_6X6_250 = 10
DICT_6X6_50 = 8
DICT_7X7_100 = 13
DICT_7X7_1000 = 15
DICT_7X7_250 = 14
DICT_7X7_50 = 12
DICT_ARUCO_ORIGINAL = 16

Further, if I try using those functions, I hit errors like this -

aruco_dict = aruco.Dictionary_get(aruco.DICT_5X5_250)
AttributeError: 'module' object has no attribute 'Dictionary_get'

How do I generate markers and detect the same in python?

edit retag flag offensive close merge delete

Comments

1

please update both opencv and opencv_contrib to latest master, rebuild, and try again.

berak gravatar imageberak ( 2017-04-14 01:55:51 -0500 )edit

done, issue not resolved

amie gravatar imageamie ( 2017-04-14 10:58:52 -0500 )edit