Skip to main content

python-aruco

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

Tested on Linux Mint 19 x86_64, OpenCV 4.1.0, ArUco 3.1.12 Python 3.6.9 and NumPy 1.18.0

Installation via pip

  1. Install / compile OpenCV with Python2 support
  2. Install / compile ArUco 3.1.12
  3. run pip3 install aruco

Installation Python3 via CMake

  1. Install / compile OpenCV with Python2 support
  2. Install / compile ArUco 3.1.12
  3. Install swig3: sudo apt-get install swig3.0 for Debian/Ubuntu like systems. On 14.04 and other older systems you will need to go to "Software Sources" and check backports in the Updates tab, and reload before installing.
  4. Install NumPy pip3 install numpy (maybe you already need it for OpenCV Python support) or install via system package manager.
  5. Build the Python wrapper:
    • Create a new directory build in this project: mkdir build && cd build
    • Run CMake to configure the project: cmake ..
    • Run make to build the wrappers: make
  6. The built package is now located in python/dist/, you can install it via pip: pip3 install python/dist/*.whl

Test

example video

open a prompt in example/ and run: python ./example.py or python3 ./example.py

fractal marker example

open a prompt in example/ and run: python ./fractal.py or python3 ./fractal.py

If the Python doesn't find some shared objects, add the library location to LD_LIBRARY_PATH: export LD_LIBRARY_PATH=/usr/local/lib/:$LD_LIBRARY_PATH

Problems

I just tested some basic functions with example/example.py / example/fractal.py. Please report errors and problems.

  • Some return value templates like std::vector<Point3f> don't work yet (e.g. for marker.get3DPoints())

Thanks

Metadata

Release files for aruco 3.1.12.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aruco 3.1.12.0
File Size Uploaded Provenance Actions
aruco-3.1.12.0.tar.gz 169.6 kB Without provenance Details for aruco-3.1.12.0.tar.gz

Release files / aruco-3.1.12.0.tar.gz

Download URL aruco-3.1.12.0.tar.gz
Size 169.6 kB
Tags Source
SHA-256 checksum
How to use checksums
b62a2f0acebd3e130b114005a258ae8d6bf89890f779dee965b4778fd6589f48
BLAKE2b-256 checksum
How to use checksums
251238360e882310c4db448e50cd3e98e6cc376e95fa03cb1313d7e301bca8a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.6.9

Security for aruco 3.1.12.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page