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.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 napa-vision 0.6.0
File Size Uploaded Provenance Actions
napa_vision-0.6.0.tar.gz 1.7 MB With provenance Details for napa_vision-0.6.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for napa-vision 0.6.0
File Actions
napa_vision-0.6.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for napa_vision-0.6.0-py3-none-win_amd64.whl
napa_vision-0.6.0-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.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
napa_vision-0.6.0-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.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
napa_vision-0.6.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for napa_vision-0.6.0-py3-none-macosx_11_0_arm64.whl
napa_vision-0.6.0-py3-none-macosx_10_9_x86_64.whl Python 3 none macOS 10.9+ x86-64 Details for napa_vision-0.6.0-py3-none-macosx_10_9_x86_64.whl
napa_vision-0.6.0-py3-none-android_24_x86_64.whl Python 3 none Android API level 24+ x86-64 Details for napa_vision-0.6.0-py3-none-android_24_x86_64.whl
napa_vision-0.6.0-py3-none-android_24_arm64_v8a.whl Python 3 none Android API level 24+ ARM64 v8a Details for napa_vision-0.6.0-py3-none-android_24_arm64_v8a.whl

Total release size: 12.6 MB

Release files / napa_vision-0.6.0.tar.gz

Download URL napa_vision-0.6.0.tar.gz
Size 1.7 MB
Tags Source
SHA-256 checksum
How to use checksums
a0405a61756f4dce9f3f5aa1d9b39c9dc870be02122ee467360c9f410602b6f4
BLAKE2b-256 checksum
How to use checksums
6c7775aec3c3b9ea9c765227e2e5d67a0c36a97bd4007d46ec56d3a6e7ff07ac
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 18, 2026.

Transparency log

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

Download URL napa_vision-0.6.0-py3-none-win_amd64.whl
Size 1.4 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
ed661a7efc015b6bcd0e575bfe6344e689bc7882128082546eaf0057164c8f6e
BLAKE2b-256 checksum
How to use checksums
b04304cb9bc44da41f99c6107f9fbefb88af0633a563126e193b8fc5a1d4f9ca
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 18, 2026.

Transparency log

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

Download URL napa_vision-0.6.0-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
30ac7ea3d1c8d19f8146eb798348244db04c4bbe3ad787384277cc5406d66cb3
BLAKE2b-256 checksum
How to use checksums
f746b2d6152077eaecff96001d60b00b9b6224350876e891e4626900a813a94f
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 18, 2026.

Transparency log

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

Download URL napa_vision-0.6.0-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
ae8239e003890d833f70fe41514fdef5e149ded642123be0718d172b79b80f6b
BLAKE2b-256 checksum
How to use checksums
2ff0bf9c71f0308837c35a60877271d78c2464e5581b1686da546a7e0df3c615
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 18, 2026.

Transparency log

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

Download URL napa_vision-0.6.0-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
f8adaddab23711cfacd8d9bc462dba81de7f25de1d3eb5e50087a97ad1c57c46
BLAKE2b-256 checksum
How to use checksums
7d970c353e5b3570b662ef51e0f28a42e4a26b18743973a8f6e3c1e17985aa80
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 18, 2026.

Transparency log

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

Download URL napa_vision-0.6.0-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
7a2382e21ea3fbe456dd3a547c52782060e44b46abe2dd9a00b4d9b7ca67aaeb
BLAKE2b-256 checksum
How to use checksums
b7ecd2e9e416ab138561337fbd34a88385cad631588b1726b50f140cfc19f863
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 18, 2026.

Transparency log

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

Download URL napa_vision-0.6.0-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
8c1e6382731fa49dd1b55921394127749e705b461d7e29c0cf7f80e95e4c53b3
BLAKE2b-256 checksum
How to use checksums
3c78f290b0ebc666878f0c575e9d54f91c6b065ac9bd4ec9dbd923e2f8d81eff
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 18, 2026.

Transparency log

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

Download URL napa_vision-0.6.0-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
2390b73e281e6df8c0187162fc66c896b5ddb869487dcb33ade552aacde9d5bb
BLAKE2b-256 checksum
How to use checksums
9c3c42d9a899d24f3e12c11d9b88f9bb48f66f0ec06ca88bb57e650b3254dab9
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 18, 2026.

Transparency log

Security for napa-vision 0.6.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.

Full provenance

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

Select from 8 files

Attestation for napa_vision-0.6.0.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 18, 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