Skip to main content

An AprilTags wrapper with camera discovery and axis conversion.

Project description

april_vision

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, which can be installed with the following command.

pip install april-vision[cli]

If you need to run the calibration feature in the CLI you will need to install the opencv-contrib-python module. All the versions of OpenCV 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 name, cam in cameras.items():
    print(name)
    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

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

april_vision-2.0.0.tar.gz (35.6 kB view details)

Uploaded Source

Built Distribution

april_vision-2.0.0-py3-none-any.whl (42.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: april_vision-2.0.0.tar.gz
  • Upload date:
  • Size: 35.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for april_vision-2.0.0.tar.gz
Algorithm Hash digest
SHA256 af7822bb010db97e15d4ec827a239f07fb1a99dfdf3f1b7f89556b5c56a251b3
MD5 3c71bfd41a92b54b111923a786d08265
BLAKE2b-256 9368c5796ce65d808331d1447276ef4c6ad5feb9848f8d3c238010a56196ddd2

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for april_vision-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c8f785673d472e114b852ad5f66e27d6a0e970b59913686f557a8c85d810c053
MD5 579fddd87be54802dd7bf4bff0426b28
BLAKE2b-256 67c4be273daa0a77d6d3fa7ea0f8b55abff120e844117759ceab37efc2cadc12

See more details on using hashes here.

Provenance

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