Skip to main content

april_vision

Lint & build PyPI version MIT license

A fiducial marker system used by Student Robotics. Uses april tag markers to provide detection, pose and distance estimation for these markers.

Installation

This library requires OpenCV but the default installation does not install OpenCV. There are a few different versions of OpenCV with different install sizes, to install the default package without OpenCV, run the following command.

pip install april-vision

To install the lightweight headless version OpenCV install the library with the following command.

pip install april-vision[opencv]

If you want to perform some of the more advanced features of the CLI (live view of the camera) you need the full version of OpenCV. The CLI dependecies can be installed with the following command.

pip install april-vision[cli]

Then the full version of OpenCV can then be installed with the following command.

pip install opencv-python>=4.8

All the versions of OpenCV (standard, headless and contrib) clash so you should only have one installed.

Example

from april_vision.examples.camera import setup_cameras

# Markers 0-100 are 80mm in size
tag_sizes = {
    range(0, 100): 80
}

# Returns a dict of index and camera
cameras = setup_cameras(tag_sizes)

if len(cameras) == 0:
    print("No cameras found")

for serial, cam in cameras.items():
    print(cam.model, serial)
    print(cam.see())

Tools

When installed april_vision can be used on the command line providing the following list of useful tools. Each of the tools contain help text on correct usage accessed via the -h argument.

annotate_image
annotate_video
calibrate
live
marker_generator
vision_debug
tools
    family_details
    list_cameras

Download files

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

Source Distribution

april_vision-3.1.0.tar.gz (683.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

april_vision-3.1.0-py3-none-any.whl (70.3 kB view details)

Uploaded Python 3

File details

Details for the file april_vision-3.1.0.tar.gz.

File metadata

  • Download URL: april_vision-3.1.0.tar.gz
  • Upload date:
  • Size: 683.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for april_vision-3.1.0.tar.gz
Algorithm Hash digest
SHA256 fa709d3f0eead3aa9b3f0946389f3e8525da117a0754b12db27f4d8100c82e65
MD5 245407102b349d699f104ecf495ca0df
BLAKE2b-256 81632a66d3e1fadfb1659c16a5a64cf74260c58576095862ad0d08ef9cab0f71

See more details on using hashes here.

Provenance

The following attestation bundles were made for april_vision-3.1.0.tar.gz:

Publisher: test_build.yml on WillB97/april_vision

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file april_vision-3.1.0-py3-none-any.whl.

File metadata

  • Download URL: april_vision-3.1.0-py3-none-any.whl
  • Upload date:
  • Size: 70.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for april_vision-3.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 590c45130d24d87fdb7a3456451cc43be6e6150b90217b25f67ba3a2dac0fd8b
MD5 497090ed0c6047a3e366ffd98a2611bb
BLAKE2b-256 754d356f5c2a7db5566f159f05da92f0409e0e587b1ef6cca26c50db0f0e2991

See more details on using hashes here.

Provenance

The following attestation bundles were made for april_vision-3.1.0-py3-none-any.whl:

Publisher: test_build.yml on WillB97/april_vision

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

3.1.0 This release

2 files

3.0.0

2 files

2.2.1

2 files

2.2.0

2 files

2.1.0

2 files

2.0.3

2 files

2.0.2

2 files

2.0.1

2 files

2.0.0

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

0.4.2

2 files

0.4.1

2 files

0.4.0

2 files

0.3.0

2 files

0.2.0

1 file

0.1.1

1 file

0.1.0

1 file

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