How to use aruco in python?

asked 2018-01-10 09:12:54 -0600

zuliani gravatar image

updated 2018-01-10 09:22:25 -0600

I've been doing some work using aruco with c++ but I'll have to switch to python now.

I installed Python and the libraries I believe I'll need the following way:

Downloaded and installed Python 3.5 from this link: https://www.python.org/downloads/

Added Python to paths

Downloaded opencv+contrib & numpy & scipy from this link: https://www.lfd.uci.edu/~gohlke/pytho... Went to Python Scripts folder in a cmd window and with pip3.5 installed all the libraries.

When I run visual studio I'm able to import numpy and cv2, it's just when I try to import aruco or import cv2.aruco that I have problems...

I honestly just started trying to use python and I must say that I don't really know what I'm doing. I don't have a lot of experience with this kind of stuff (I'm a mechanical egineer student and I'm trying to use computer vision for some stuff, so I pretty much learned everything online). I managed to do what I wanted with c++, but the guys I work with want to make everything with python (they have their reasons).

Also (and again, I'm just trying everything I can here...) when I run python on a cmd window I'm able to import numpy, scipy, cv2 and cv2.aruco.

Am I doing something wrong or do I need something else to use aruco with python?

(Apparently Aruco is in my visual studio, but I can't use functions or anything, I have no idea what's going on. I feel like this might be a simple problem to solve, but considering my background I don't have a clue on what might be happening =/)

Any help is appreciated, I'm really running out of googling power haha

edit retag flag offensive close merge delete

Comments

Hello, did you manage to solve your problem? I am currently starting to work with python and I need to use aruco library. I have been trying to import aruco but it has been imposible, if you managed to do it could you tell me the steps you followed from the beginning?

Thanks in advance.

odiaz gravatar imageodiaz ( 2018-05-03 06:03:45 -0600 )edit

@olatzdp , please do not post answers here, if you have a quesztion or comment. thank you.

berak gravatar imageberak ( 2018-05-03 06:12:57 -0600 )edit