Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to use aruco in python?

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/pythonlibs/ 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 everything is fine, 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

How to use aruco in python?

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/pythonlibs/ 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 everything is fine, 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