Skip to content

SatoshiRobatoFujimoto/python-aruco

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-aruco

SWIG generated Python wrappers for ArUco library. Works with OpenCV Python module cv2 resp. numpy array data types.

Tested on Linux Mint 17.1 x86_64, OpenCV 3.2.0, ArUco 2.0.19, Python 2.7.6 and NumPy 1.10.4

Installation Python2

  1. Install / compile OpenCV >= 2.4.9 with Python2 support
  2. download, compile and install ArUco: http://www.uco.es/investiga/grupos/ava/node/26, also install libeigen headers for ArUco 2.0: sudo apt-get install libeigen3-dev
  3. Install swig3: sudo apt-get install swig3.0 for Debian/Ubuntu like systems
  4. Install NumPy sudo pip install numpy (maybe you already need it for OpenCV Python support) or install via system packet manager
  5. run swigbuild.sh: it compiles the shared library (_aruco.so) and generates Python wrappers (aruco.py)
  6. run sudo python setup.py install to install the library globally

Installation Python3 (experimental)

  1. Install / compile OpenCV >= 2.4.9 with Python3 support
  2. download, compile and install ArUco: http://www.uco.es/investiga/grupos/ava/node/26, also install libeigen headers for ArUco 2.0: sudo apt-get install libeigen3-dev
  3. Install swig3: sudo apt-get install swig3.0 for Debian/Ubuntu like systems
  4. Install NumPy sudo pip3 install numpy (maybe you already need it for OpenCV Python support) or install via system packet manager
  5. run swigbuild.sh python3: it compiles the shared library (_aruco.so) and generates Python3 wrappers (aruco.py)
  6. run sudo python3 setup.py install to install the library globally

Test

open a prompt in example/ and run python example.py

Problems

This wrapper is totally in beta state. I just tested some basic functions with example/example.py. Please report errors and problems.

About

Python wrappers for ArUco library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C 95.1%
  • Python 4.1%
  • Shell 0.8%