Skip to main content

NAPA

NAPA is an AprilTag detector. It samples a sparse grid of pixels to find likely tags, then does full-resolution work only on the tags themselves. Give it a frame and it returns tag IDs and sub-pixel corners. Give it a camera calibration and it also returns poses, each with a covariance.

NAPA reads all nine AprilTag families. The default is tag36h11, the family FRC has used since 2024. Detection needs only NumPy. Poses and calibration need OpenCV.

python -m pip install napa-vision          # detection
python -m pip install "napa-vision[headless]"  # detection + poses

Requires Python 3.11 or newer. Full documentation is in the repository. This page is the short version, with absolute links, because PyPI cannot follow the repository's relative ones.

Quick start

from napa_vision import NapaDetector

detector = NapaDetector()
for tag in detector.detect(frame):  # uint8 greyscale, BGR, or BGRA
    print(tag.tag_id, tag.corners)

For poses:

from napa_vision import VisionProcessor, load_calibration_data

processor = VisionProcessor(
    calibration=load_calibration_data("camera.json"),
    tag_size_m=0.1651,
    tag_layout=layout,  # {tag_id: field_to_tag}, for a camera pose on the field
)
result = processor.process(frame, timestamp=capture_time)

Code written for pupil_apriltags or dt-apriltags keeps working with one import changed:

from napa_vision.compat import Detector  # was: from pupil_apriltags import Detector

How it compares

Single-core performance on an Intel i7-12700H, across 3,000 labelled synthetic images:

Detector Median ms p95 ms Tags found Wrong IDs
NAPA defaults (min_tag_px=22) 0.315 2.052 5519/5521 1
NAPA, min_tag_px=16 0.569 3.885 5521/5521 1
AprilTag, WPILib defaults 10.747 39.018 4759/5521 0
AprilTag, decimate 2 14.050 48.315 5503/5521 3
AprilTag, full resolution 54.595 193.457 5517/5521 3
ArUco Nano 1.803 8.020 5517/5521 0

NAPA defaults are min_tag_px=22, split_touching="auto", shadows off, and max_detections=64. On matched tags in the main corpus, its median/p95 worst-corner error was 0.017/0.080 px. Matches are scored by ID; corner error uses the best corner ordering and counts only matched tags.

Including the 600 stress and 900 range frames, NAPA defaults found 10,952 of 10,998 tags, with one wrong ID. The full report has all 16 settings, per-scene results, and the timing method. The measurement audit covers frequency and temperature variation during the run.

The benchmark guide has the full method. For results on your camera and hardware, measure your own footage.

Documentation

Command-line tools

Command Purpose
napa-tag Write tags to print, as SVG at an exact printed size or as PNG
napa-calibrate Measure camera intrinsics from checkerboard photographs
napa-benchmark Score NAPA on your own labeled images, with optional recall, precision, and latency gates

License

Copyright 2026 Zachary Wilson. NAPA is open source under the GNU General Public License v3.0. Anyone can use, modify, and share it, including in other GPL projects such as PhotonVision. Software that includes NAPA and is shared with others must also be released under the GPL and must credit Zachary Wilson as NAPA's author (NOTICE). For a closed-source product, ask about a commercial license through the repository.

The tag families' codewords come from AprilTag under its BSD license. See THIRD_PARTY_NOTICES.

Metadata

Release files for napa-vision 0.6.1

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

Source distribution (sdist)

Source distribution for napa-vision 0.6.1
File Size Uploaded Provenance Actions
napa_vision-0.6.1.tar.gz 1.7 MB With provenance Details for napa_vision-0.6.1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for napa-vision 0.6.1
File Actions
napa_vision-0.6.1-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for napa_vision-0.6.1-py3-none-win_amd64.whl
napa_vision-0.6.1-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64, Linux glibc 2.28+ x86-64 Details for napa_vision-0.6.1-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
napa_vision-0.6.1-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64, Linux glibc 2.28+ ARM64 Details for napa_vision-0.6.1-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
napa_vision-0.6.1-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for napa_vision-0.6.1-py3-none-macosx_11_0_arm64.whl
napa_vision-0.6.1-py3-none-macosx_10_9_x86_64.whl Python 3 none macOS 10.9+ x86-64 Details for napa_vision-0.6.1-py3-none-macosx_10_9_x86_64.whl
napa_vision-0.6.1-py3-none-android_24_x86_64.whl Python 3 none Android API level 24+ x86-64 Details for napa_vision-0.6.1-py3-none-android_24_x86_64.whl
napa_vision-0.6.1-py3-none-android_24_arm64_v8a.whl Python 3 none Android API level 24+ ARM64 v8a Details for napa_vision-0.6.1-py3-none-android_24_arm64_v8a.whl

Total release size: 12.6 MB

Release files / napa_vision-0.6.1.tar.gz

Download URL napa_vision-0.6.1.tar.gz
Size 1.7 MB
Tags Source
SHA-256 checksum
How to use checksums
d1c62d83d874e1e969e18615fd41d6cbb99a5202856650d8ceca01e507377cc2
BLAKE2b-256 checksum
How to use checksums
73f8d126bedb2152660f5744d3db4f0f5a2bfb02644dd35425dd57f3b2c73490
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Release files / napa_vision-0.6.1-py3-none-win_amd64.whl

Download URL napa_vision-0.6.1-py3-none-win_amd64.whl
Size 1.4 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
9646455ab3d7bef57e19638e90c823e85365f02c13828a4b7309a7f67f450736
BLAKE2b-256 checksum
How to use checksums
b5e9aec9abd79028772590f010f93a1d7321e1deba0091ecf55c484c2f593d02
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Release files / napa_vision-0.6.1-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL napa_vision-0.6.1-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 2.0 MB
Tags Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
7de92b95fced96c7c80a119461ebf01ad3e34db7d98a4b42e6a0bfbf686944aa
BLAKE2b-256 checksum
How to use checksums
114fbbfa9b6c063cfd94c6f057da3833c473cf562bbbce23117c9973594d9345
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Release files / napa_vision-0.6.1-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl

Download URL napa_vision-0.6.1-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Size 1.9 MB
Tags Linux glibc 2.17+ ARM64 Linux glibc 2.28+ ARM64 Python 3
SHA-256 checksum
How to use checksums
53441a4c48b27ff37724b134bdadb5f0a1e7aa8889b3833803482da661e143be
BLAKE2b-256 checksum
How to use checksums
8496ce6fcc85a7c0d66ae9e140e44f74b409a6a6d93004983f5c47a78c6f3d01
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Release files / napa_vision-0.6.1-py3-none-macosx_11_0_arm64.whl

Download URL napa_vision-0.6.1-py3-none-macosx_11_0_arm64.whl
Size 1.4 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
39910dc09074a67dc6c4b666b8565ceaf53ed9736e9d98e2991e3dbcc52f3a0b
BLAKE2b-256 checksum
How to use checksums
3c15254f19dc092e1081c73688e300486c886f7304fb3795cadd3b9cc21a7c46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Release files / napa_vision-0.6.1-py3-none-macosx_10_9_x86_64.whl

Download URL napa_vision-0.6.1-py3-none-macosx_10_9_x86_64.whl
Size 1.4 MB
Tags Python 3 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
2a40383b0f3486177750d7cbbec4d4322d3a72b54ee64af6d12ffc302de22588
BLAKE2b-256 checksum
How to use checksums
d4ee7386eede864674e29b1dd373f785ee3b0a5c129a6915f5a6b3215ac528dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Release files / napa_vision-0.6.1-py3-none-android_24_x86_64.whl

Download URL napa_vision-0.6.1-py3-none-android_24_x86_64.whl
Size 1.4 MB
Tags Android API level 24+ x86-64 Python 3
SHA-256 checksum
How to use checksums
d4787c82c51388f4f2f6ea904099a92040c8beb28ea3705b5c18d220fec33c40
BLAKE2b-256 checksum
How to use checksums
b252256158162857bf0bd5c13775fc47c2aef0f8c7dccd7bc84bbf56a214f416
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Release files / napa_vision-0.6.1-py3-none-android_24_arm64_v8a.whl

Download URL napa_vision-0.6.1-py3-none-android_24_arm64_v8a.whl
Size 1.4 MB
Tags Android API level 24+ ARM64 v8a Python 3
SHA-256 checksum
How to use checksums
656d0ef210211942d2ff8905b500b1b139a7c8f4788fb3f18cb8ecc372243343
BLAKE2b-256 checksum
How to use checksums
ad10f7252299828ae7faad4fc584932c1f9654a6a9eff0d109d2809b7402f68f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Security for napa-vision 0.6.1

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.

Full provenance

All 8 files in this release have been uploaded with provenance metadata.

Select from 8 files

Attestation for napa_vision-0.6.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

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