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.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.5.1
File Size Uploaded Provenance Actions
napa_vision-0.5.1.tar.gz 1.5 MB With provenance Details for napa_vision-0.5.1.tar.gz

Built distributions (wheels)

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

Total release size: 10.5 MB

Release files / napa_vision-0.5.1.tar.gz

Download URL napa_vision-0.5.1.tar.gz
Size 1.5 MB
Tags Source
SHA-256 checksum
How to use checksums
9cd6bcf817a3e97ac423222e0a48617242c2b401dd3df58207181dfef89354c5
BLAKE2b-256 checksum
How to use checksums
0d4765ad460295fd32d8e16db4d3ad33f343c0f1c774ea97d5dcaf106ba56e6b
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.1-py3-none-win_amd64.whl

Download URL napa_vision-0.5.1-py3-none-win_amd64.whl
Size 1.3 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
6d2559bc020a0c24903f70d5787dbf2904ef5688747ee83819ce1f952f264dc6
BLAKE2b-256 checksum
How to use checksums
6a9f07a05762d23bb9df28a5dd7a2d563cd2fe92a1c18e74a1de7ae20ff6bdc9
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.1-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL napa_vision-0.5.1-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
20076d54e1c0a0259dabe1fdf3fa1a5efaca029f877939b790c9a9293bdd5ec5
BLAKE2b-256 checksum
How to use checksums
61fee3a8fe201741ddc8dc93ac98e3c8470d9aff399e0484cd4644b5e0d8ceab
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.1-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl

Download URL napa_vision-0.5.1-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
3de5cf53b8982ffdf0e11f90b22bfbc7237a88f6d222b3ea545f8e8506244037
BLAKE2b-256 checksum
How to use checksums
016d30e8858f824bdb8307edb1794e13fc88f82d370623c80fbd63bbb01f4995
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.1-py3-none-macosx_11_0_arm64.whl

Download URL napa_vision-0.5.1-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
71e069405847f7dfd20d29db5a2c8b4a8f095cb1aa2f611000c0902ada12df3a
BLAKE2b-256 checksum
How to use checksums
e14cad44c2036ee5dc1cae79e65a4ce88ec5550a777ea0f985301844597d0cb1
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.1-py3-none-macosx_10_9_x86_64.whl

Download URL napa_vision-0.5.1-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
2e53368f878765addd8d54e80b2a5ce6f6aca9363e85d39a326387aa6e61e792
BLAKE2b-256 checksum
How to use checksums
824578edcbc299d618afc679438e35d5b38f2a76f469089f9167ded95956c039
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.1-py3-none-android_24_x86_64.whl

Download URL napa_vision-0.5.1-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
b576043d8846db14a134f370eb8165b16fb8e702f529472b07f271987c8f1ece
BLAKE2b-256 checksum
How to use checksums
5859f9e274a16a26c93fe482301902eef7700c09d00e70d8a83f2019334eb31f
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.1-py3-none-android_24_arm64_v8a.whl

Download URL napa_vision-0.5.1-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
c3042689de781f92fd1934c9ce96979f700c0febadbcfaae4b66934271f1b789
BLAKE2b-256 checksum
How to use checksums
861a8a0ff896f48ce92c681335e7c1235e25bfc810eaa052c7959c8969086efa
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.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.5.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 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