Skip to main content

Python bindings for apriltags v3

Project description

https://img.shields.io/pypi/v/pupil-apriltags.svg https://img.shields.io/pypi/pyversions/pupil-apriltags.svg tests Code style: Black https://readthedocs.org/projects/pupil-apriltags/badge/?version=latest https://img.shields.io/badge/skeleton-2022-informational

pupil-apriltags: Python bindings for the apriltags3 library

These are Python bindings for the Apriltags3 library developed by AprilRobotics, specifically adjusted to work with the pupil-labs software. The original bindings were provided by duckietown and were inspired by the Apriltags2 bindings by Matt Zucker.

Install from PyPI

This is the recommended and easiest way to install pupil-apriltags.

pip install pupil-apriltags

We offer pre-built binary wheels for common operating systems. To install from source, see below.

Usage

Some examples of usage can be seen in the src/pupil_apriltags/bindings.py file.

The Detector class is a wrapper around the Apriltags functionality. You can initialize it as following:

from pupil_apriltags import Detector

at_detector = Detector(
   families="tag36h11",
   nthreads=1,
   quad_decimate=1.0,
   quad_sigma=0.0,
   refine_edges=1,
   decode_sharpening=0.25,
   debug=0
)

at_detector.detect(img)

See the API reference documentation for details.

Manual installation from source

You can of course clone the repository and build from there. For development you should install the development requirements as well. This project uses the new python build system configuration from PEP 517 and PEP 518.

# clone the repository
git clone --recursive https://github.com/pupil-labs/apriltags.git
cd apriltags

# install apriltags in editable mode with development requirements
pip install -e .[testing]

# run tests
pytest tests/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pupil_apriltags-1.0.4.post10.tar.gz (1.9 MB view hashes)

Uploaded Source

Built Distributions

pupil_apriltags-1.0.4.post10-cp311-cp311-win_amd64.whl (2.1 MB view hashes)

Uploaded CPython 3.11 Windows x86-64

pupil_apriltags-1.0.4.post10-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.3 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

pupil_apriltags-1.0.4.post10-cp311-cp311-macosx_10_9_x86_64.whl (3.1 MB view hashes)

Uploaded CPython 3.11 macOS 10.9+ x86-64

pupil_apriltags-1.0.4.post10-cp310-cp310-win_amd64.whl (2.1 MB view hashes)

Uploaded CPython 3.10 Windows x86-64

pupil_apriltags-1.0.4.post10-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.3 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

pupil_apriltags-1.0.4.post10-cp310-cp310-macosx_10_9_x86_64.whl (3.1 MB view hashes)

Uploaded CPython 3.10 macOS 10.9+ x86-64

pupil_apriltags-1.0.4.post10-cp39-cp39-win_amd64.whl (2.1 MB view hashes)

Uploaded CPython 3.9 Windows x86-64

pupil_apriltags-1.0.4.post10-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.3 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

pupil_apriltags-1.0.4.post10-cp39-cp39-macosx_10_9_x86_64.whl (3.1 MB view hashes)

Uploaded CPython 3.9 macOS 10.9+ x86-64

pupil_apriltags-1.0.4.post10-cp38-cp38-win_amd64.whl (2.1 MB view hashes)

Uploaded CPython 3.8 Windows x86-64

pupil_apriltags-1.0.4.post10-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.3 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

pupil_apriltags-1.0.4.post10-cp38-cp38-macosx_10_9_x86_64.whl (3.1 MB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

pupil_apriltags-1.0.4.post10-cp37-cp37m-win_amd64.whl (2.1 MB view hashes)

Uploaded CPython 3.7m Windows x86-64

pupil_apriltags-1.0.4.post10-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.3 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

pupil_apriltags-1.0.4.post10-cp37-cp37m-macosx_10_9_x86_64.whl (3.1 MB view hashes)

Uploaded CPython 3.7m macOS 10.9+ x86-64

pupil_apriltags-1.0.4.post10-cp36-cp36m-win_amd64.whl (2.1 MB view hashes)

Uploaded CPython 3.6m Windows x86-64

pupil_apriltags-1.0.4.post10-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.3 MB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.17+ x86-64

pupil_apriltags-1.0.4.post10-cp36-cp36m-macosx_10_9_x86_64.whl (3.1 MB view hashes)

Uploaded CPython 3.6m macOS 10.9+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page