Skip to main content

NAPA

NAPA is a fast AprilTag detector that skips most of the pixels in each frame. Give it a greyscale frame and it returns tag IDs and sub-pixel corners, plus poses with covariances if you give it a camera calibration. It reads every AprilTag family, with tag36h11, the FRC family, as the default.

python -m pip install napa-vision

Compared with other detectors

The benchmark is 3,000 rendered frames holding 5,521 tags at 640×480, 1280×720, and 1920×1080, each with exact ground truth. Every detector ran single-threaded on the same CPU core, on the same frames.

Detector Speed vs. WPILib's defaults (median frame) Tags found Worst-corner error (median) Wrong IDs
NAPA 25× 99.9% 0.020 px 1
AprilTag, WPILib's defaults 1× 86.2% 0.099 px 0
AprilTag, decimate 2 0.79× 99.7% 0.043 px 3
AprilTag, full resolution 0.21× 99.9% 0.042 px 3
Locus 1.3× 97.7% 0.044 px 1
Locus, decimate 2 2.4× 98.2% 0.044 px 1
OpenCV ArUco, subpixel 0.55× 99.4% 0.289 px 1
ArUco3 1.2× 97.8% 0.986 px 1
ArUco3, tags over 64 px 3.1× 80.0% 0.282 px 0
ArUco3, tags over 32 px 2.2× 96.1% 0.284 px 1
ArUco Nano 4.8× 99.9% 0.044 px 0
RapidTag, subpixel 2.0× 75.5% 0.294 px 19

NAPA was faster than every other detector on every one of the 3,000 frames. The closest was ArUco Nano, and NAPA's smallest lead over it on any frame was 1.8×. NAPA's one wrong ID was a tag-shaped decoy with a random pattern. OpenCV ArUco and RapidTag without subpixel refinement run at the same speed as above, with corners about a pixel off.

NAPA's lead over AprilTag grows with resolution:

Resolution vs. WPILib's defaults, median (slowest frame) vs. full resolution, median (slowest frame)
640×480 18× (3.3×) 93× (9.7×)
1280×720 36× (5.1×) 198× (19×)
1920×1080 74× (5.1×) 375× (20×)

Range. A tag looks smaller the farther away it is, so the smallest tag a detector finds sets how far it can see. In the range sweep, NAPA found every tag from 22 px up, AprilTag at WPILib's defaults from 80 px, and AprilTag at full resolution from 14 px. On the same camera, NAPA sees about 3.6× as far as WPILib's defaults.

Smaller tags. min_tag_px=16 found every tag in the range sweep, down to 12 px, and 5,519 of the 5,521 tags above. It takes about 3× as long as the default, which still makes it 12× faster than WPILib's defaults. ArUco Nano, ArUco3, and Locus at decimate 2 were faster than it on 43 of the 3,000 frames.

Corners. NAPA's median worst-corner error is less than half of full-resolution AprilTag's and about a fifth of WPILib's defaults, and on 95% of tags it was within 0.09 px. Heavy motion blur is the exception: NAPA's largest error was 3.4 px, against 2.2 px for full-resolution AprilTag on the same tags.

Stress. A separate set of 600 harder frames has tags under 32 px, very heavy noise, and up to 80 tags per frame. NAPA found 96% of those tags with its default settings, and all of them with min_tag_px=16.

On tag16h5, the 2023 FRC family, AprilTag at its default two-bit correction reported 581 wrong IDs in the family benchmark, and NAPA reported none.

The frames are synthetic, and the timings come from one laptop CPU (Intel i7-12700H). To check NAPA on your own camera, score it on your own footage. The full report has every configuration's settings, latency percentiles, and raw data, and the benchmark guide has results for every scene.

How it works

NAPA finds likely tags on a sparse grid of pixels and only does full-resolution work on the tags themselves. How NAPA works explains each step.

Quick start

Requires Python 3.11 or newer.

from napa_vision import NapaDetector

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

Code written for pupil_apriltags or dt-apriltags works after changing one import:

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

For poses, install OpenCV with the headless extra and give NAPA a calibration:

python -m pip install "napa-vision[headless]"
from napa_vision import VisionProcessor, load_calibration_data

processor = VisionProcessor(calibration=load_calibration_data("camera.json"), tag_size_m=0.1651)
result = processor.process(frame, timestamp=capture_time)

Documentation

Command-line tools

Command Purpose
napa-tag Write tags to print: SVG at an exact printed size, or 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 credit Zachary Wilson as NAPA's author (NOTICE). For a closed-source product, get a commercial license: ask 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.5.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.5.0
File Size Uploaded Provenance Actions
napa_vision-0.5.0.tar.gz 1.5 MB With provenance Details for napa_vision-0.5.0.tar.gz

Built distributions (wheels)

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

Total release size: 10.5 MB

Release files / napa_vision-0.5.0.tar.gz

Download URL napa_vision-0.5.0.tar.gz
Size 1.5 MB
Tags Source
SHA-256 checksum
How to use checksums
a24c2299c665272febdfdbbeebc575fc699078cf0695aba6b2d17023cc70b05d
BLAKE2b-256 checksum
How to use checksums
9a6cd7cf3b8d96523d077cea0c66ab8d6149430747eb513c1bc01ae5b9663452
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 Oct 31, 2026.

Transparency log

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

Download URL napa_vision-0.5.0-py3-none-win_amd64.whl
Size 1.3 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
3438715942edcc260364d313e8ec11f66169f3cfca57543c74c6e053664b33be
BLAKE2b-256 checksum
How to use checksums
30fa9ce3b57a186cf8cbef057337616c79bdd70708f78560b3787f36e752ffd4
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 Oct 31, 2026.

Transparency log

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

Download URL napa_vision-0.5.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 1.4 MB
Tags Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
3a697d82862da71e9ae951772d4d4f94c12ea3714c845b9d696b71ae22005e95
BLAKE2b-256 checksum
How to use checksums
ae54bded01c3639084c0d94cc3fe8a87b97aeb886983c9b6f413f9ae62000c93
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 Oct 31, 2026.

Transparency log

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

Download URL napa_vision-0.5.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Size 1.4 MB
Tags Linux glibc 2.17+ ARM64 Linux glibc 2.28+ ARM64 Python 3
SHA-256 checksum
How to use checksums
314fce57314fba2b7a35d39c013ffe2308362f0da15bda32579170c4d8d1213f
BLAKE2b-256 checksum
How to use checksums
e70ba49afa97da7f1dee6dccfa432a8633ad9fd12959cbc7cfc2ac1450bd8c4f
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 Oct 31, 2026.

Transparency log

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

Download URL napa_vision-0.5.0-py3-none-macosx_11_0_arm64.whl
Size 1.3 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
0a91e711305a8ed37cc4aef30e68874a401348942fe96153ba22f004d4da126e
BLAKE2b-256 checksum
How to use checksums
b13dbb78e0de55512bcf6ff4ba3444ccf929325f046e5622d89523657be72e30
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 Oct 31, 2026.

Transparency log

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

Download URL napa_vision-0.5.0-py3-none-macosx_10_9_x86_64.whl
Size 1.2 MB
Tags Python 3 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
70d4a569c5aa8d4674d5ab8bbf0f3f7e7ee042eb94a2118f04a00d90aaac09c7
BLAKE2b-256 checksum
How to use checksums
5af4041684bc4e54d1b297e35cd9b3a87c3a6b27513293906d2da6918525a0a1
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 Oct 31, 2026.

Transparency log

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

Download URL napa_vision-0.5.0-py3-none-android_24_x86_64.whl
Size 1.2 MB
Tags Android API level 24+ x86-64 Python 3
SHA-256 checksum
How to use checksums
2e338ba311259064b6c76f4066313b105afb8784c51b196a9be4df8998e682ec
BLAKE2b-256 checksum
How to use checksums
69dc3009547cf6e6febb4683ea16280d509eed5f9fa78816937eba6093b15237
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 Oct 31, 2026.

Transparency log

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

Download URL napa_vision-0.5.0-py3-none-android_24_arm64_v8a.whl
Size 1.2 MB
Tags Android API level 24+ ARM64 v8a Python 3
SHA-256 checksum
How to use checksums
2b83fa9c9fd7782cc9b19214660ee6e2dfaa034468c24a356225843bd87af3f3
BLAKE2b-256 checksum
How to use checksums
60d726f1dc646af9af8616c9ee47cd59a69aaf1d03c49f3dbdf1bb478f1d8ac3
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 Oct 31, 2026.

Transparency log

Security for napa-vision 0.5.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.5.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 Oct 31, 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