Works with

How it works
Frigate NVR (network video recorder software) reads the camera stream over RTSP. The NPU on the AI HAT+ runs one detector model, nabirds-new-model.dxnn, on each frame; the Raspberry Pi 5 CPU runs Frigate’s video decoding, tracking and the MQTT topics. Each of the model’s 555 classes is a North American bird species or a variant of one (age, sex or plumage), so the detection label is the species name, such as “Red-bellied Woodpecker”.
- The camera stream reaches Frigate over RTSP.
- Frigate prepares each frame for the model’s 640 × 640 input and sends it to the NPU.
- The model returns boxes and class scores, and Frigate’s DEEPX detector decodes them.
- The class name becomes the object label. Frigate publishes one MQTT topic per species label to your broker, such as
frigate/birdfeeder/Red-bellied Woodpecker.
Read the results on the MQTT topics, or in Frigate’s web interface at https://[PI_IP]:8971, where the box on the bird carries the species label. Everything runs in a container on your Raspberry Pi 5, on your own network, with no subscription; Frigate is open-source software.
Requirements
Finish these pages first, in order: the AI HAT+ quickstart, set up Frigate with the DEEPX NPU, then add an RTSP camera and MQTT broker.
Hardware
- Raspberry Pi 5Runs Frigate and the install script. The test used the 8 GB model.
- AI HAT+ (DEEPX DX-M1M)Sixfab AI HAT+ for Raspberry Pi 5, the variant the test used. See the AI HAT+ specifications.
- RTSP camera or streamAny RTSP source Frigate can read. The test used a bird video served over RTSP, detected at 1280 × 720; no live camera, mounting position or enclosure was tested.
- MQTT brokerAny broker, such as Mosquitto, for the Verify step.
Software
- Frigate with the DEEPX detectorAlready running, as set up in Frigate NVR on Raspberry Pi 5 with the DEEPX NPU.
- git, curl and sha256sumFor the download and the checksum.
- Docker, python3 with PyYAML, and ffprobeCalled by the install script;
ffprobeis part of ffmpeg. The manual species list also needs PyYAML. - mosquitto_subFrom the Mosquitto clients, for the Verify step.
- Model files
nabirds-new-model.dxnnfrom the project’s GitHub release;nabirds-labelmap.txtin the project’smodelfolder.
DEEPX support is not in a stable Frigate release
DEEPX support was merged into Frigate’s dev branch on September 21, 2026 (PR #24336). The latest stable release is v0.18.0 (September 12, 2026). This project uses the ghcr.io/blakeblackshear/frigate:af0ba19-standard-arm64 image, built from commit af0ba19 of the dev branch. Sixfab develops and maintains DEEPX support in Frigate; see Frigate’s DEEPX NPU detector docs.
Install
Both methods put the model and the labelmap in Frigate’s model cache, merge the model entry and the camera into your Frigate config.yaml and restart Frigate.
Run on the Raspberry Pi 5, with Frigate running:
git clone https://github.com/sixfab/sixfab-dx-frigate.git
cd sixfab-dx-frigate/apps/bird-species-id
./install.sh --rtsp-url [RTSP_URL]
--rtsp-urlstringThe RTSP address of your bird camera. The installer asks for it if you leave it out.
--brokerstringYour broker address, written into the Verify command the installer prints.
--containerstringThe name of the Frigate container. Defaults to
frigate.--config-dirstringFrigate’s config folder. Left out, it is read from the container’s
/configmount.--yesflagSkips the question before the Frigate restart.
The installer downloads the model from the project’s GitHub release. Before it copies anything, it checks the model’s SHA-256 and reads the stream with ffprobe; it saves a backup of the config before the merge and asks before it restarts Frigate. The merge writes all 555 species into objects.track and switches off Frigate’s built-in bird classification, or a custom classification if your config has one enabled: the detector’s label is already the species, so nothing runs after it.
-
Start Frigate
If Frigate is not running yet, follow Frigate NVR on Raspberry Pi 5 with the DEEPX NPU. Its
docker runcommand is the only Frigate start command this project needs. -
Have RTSP stream ready
Any RTSP camera or stream works. Its address goes in the camera block in step 5. To test without a camera, loop a recorded video as an RTSP test feed.
-
Get project folder
On the Raspberry Pi 5, clone the repository and open the project folder:
git clone https://github.com/sixfab/sixfab-dx-frigate.gitcd sixfab-dx-frigate/apps/bird-species-id -
Download and check model
From the project folder, download the model from the project’s GitHub release:
mkdir -p model/nabirds-newcurl -fL -o model/nabirds-new/nabirds-new-model.dxnn https://github.com/sixfab/sixfab-dx-frigate/releases/download/bird-species-id-v1.0.0/nabirds-new-model.dxnnCheck its SHA-256 against
models.txt:awk '$1 !~ /^#/ && NF {print $3 " " $2}' models.txt | sha256sum -c -model/nabirds-new/nabirds-new-model.dxnn: OKCopy the model and the labelmap into Frigate’s model cache:
mkdir -p [FRIGATE_CONFIG_DIR]/model_cachecp model/nabirds-new/nabirds-new-model.dxnn [FRIGATE_CONFIG_DIR]/model_cache/cp model/nabirds-labelmap.txt [FRIGATE_CONFIG_DIR]/model_cache/ -
Add model entry and camera
Merge this example into your Frigate
config.yaml, with your own camera name and stream address. Itsobjectsblock is a two-species example; step 6 replaces it.models: - scene: outdoor_thermal devices: - deepx:PCIe:0 path: /config/model_cache/nabirds-new-model.dxnn labelmap_path: /config/model_cache/nabirds-labelmap.txt width: 640 height: 640 input_tensor: nhwc input_pixel_format: rgb input_dtype: int model_type: yolo-generic cameras: birdfeeder: ffmpeg: inputs: - path: rtsp://[STREAM_HOST]:8554/[STREAM_PATH] roles: - detect - record detect: enabled: true width: 1280 height: 720 fps: 3 scene: outdoor_thermal objects: track: - Yellow Warbler - Red-bellied Woodpecker filters: Yellow Warbler: min_score: 0.3 threshold: 0.4 Red-bellied Woodpecker: min_score: 0.3 threshold: 0.4 record: enabled: falsesceneties a camera to a model. Frigate accepts five values:all,indoor,outdoor,indoor_thermalandoutdoor_thermal. This project usesoutdoor_thermalas an unused slot, so the entry needs no thermal camera and shares no model with another project. -
Write full species list
Frigate reports only the objects in
objects.track, so the camera needs all 555 names. From the project folder, generate the same track list and filters thatinstall.shwrites:python3 - model/nabirds-labelmap.txt > species.yaml <<'PY' import sys, yaml names = [n for n in open(sys.argv[1], encoding="utf-8").read().splitlines() if n] objects = {"track": names, "filters": {n: {"min_score": 0.3, "threshold": 0.4} for n in names}} print(yaml.safe_dump({"objects": objects}, sort_keys=False, allow_unicode=True)) PYReplace the
objects:block of your camera inconfig.yamlwith the contents ofspecies.yaml(about 2,200 lines), indented to sit under the camera. -
Restart Frigate
docker restart frigate
Verify
-
Watch species topics
Subscribe to the camera’s topics; replace
birdfeederif you named the camera differently:mosquitto_sub -h [BROKER_HOST] -t "frigate/birdfeeder/+" -vfrigate/birdfeeder/Cattle Egret 0 frigate/birdfeeder/all 2 frigate/birdfeeder/Golden-fronted Woodpecker 0 frigate/birdfeeder/all 1 frigate/birdfeeder/Golden-fronted Woodpecker 1 frigate/birdfeeder/all 2Each line is the topic, then the payload: the number of birds of that species in view now.
Golden-fronted Woodpecker 1means one,0means none, andfrigate/birdfeeder/allcounts all birds together. The names above come from the looped test video and are not correct identifications: see Labels for birds outside 555 classes. -
Check that Frigate answers
The installer uses this call to confirm that Frigate is up:
docker exec frigate curl -s http://localhost:5000/api/statsFrigate answers with its stats as JSON. The command runs inside the container: Frigate runs with host networking, so port 5000 is also reachable on the Raspberry Pi 5, with no Docker
-pflag to withhold it. -
Check label in Debug view
Open
https://[PI_IP]:8971, choose thebirdfeedercamera, open the Debug view and turn on Bounding Boxes. In the test, the box showed a Yellow Warbler label while the looped video played.
Result: the box around the bird carries a species label.
Results
Tested on October 6, 2026: Raspberry Pi 5 (8 GB), Raspberry Pi OS Trixie, AI HAT+ (DEEPX DX-M1M), DX-RT v3.4.2 on the Raspberry Pi 5 and v3.4.0 in Frigate’s DEEPX detector, nabirds-new-model.dxnn, a recorded bird video looped over RTSP, and the MQTT broker on a separate host.
| Metric | Value | How it was measured |
|---|---|---|
engine.run time per frame | 114.3 ms mean | 250 frames, one run. Nothing else on the NPU, Frigate’s cameras off, DX-RT v3.4.2 |
| Model input and output | 640 × 640 in, raw 559 × 8400 out | The model’s shapes |
| Frigate at a 5 fps camera | Frigate skipped frames | Frigate stats, same Raspberry Pi 5; the skipped share was not recorded |
| Top class score per frame | 0.56 average on a section with a yellow bird (labeled Yellow Warbler at 0.89); 0.13 on other sections | The looped test video |
| Accuracy, power, CPU load | Not measured | none |
engine.run is the DX-RT (DEEPX runtime) call that runs the model once, so 114.3 ms is the model alone, not Frigate end to end. It is one reading, not a benchmark. For accelerator comparisons, see the Raspberry Pi 5 NPU benchmark on the Sixfab blog.
The score row shows that confidence depends on the scene; a score is not an accuracy rate. No accuracy figure was measured: the test video shows tropical birds, not a North American set, so it cannot show whether a label is right.
Details
Model
YOLO is a family of object detectors that read a frame once and return boxes with class labels; this model is built on Ultralytics YOLOv8. NABirds is the North American bird class list the model’s names come from. Frigate’s DEEPX detector decodes the model’s raw output, shaped (1, 559, 8400), with model_type: yolo-generic.
Species labels
Each species label is one line of the labelmap, the file that lists the model’s class names in the model’s class order. The project ships it as nabirds-labelmap.txt with 555 unique names. 288 of them carry a variant in parentheses, such as an age, sex or plumage, and each variant is its own class, so one species can appear under several labels.
Two edits were made to the original names. A / became - in 86 names, because / separates the levels of an MQTT topic: Female/juvenile becomes Female-juvenile. Three doubled spaces were collapsed.
Labels for birds outside 555 classes
A bird outside the 555 classes gets the closest class the model knows. The label is the nearest match, not a statement that the bird is that species. In the test video, which holds tropical birds, the model called green parrotlets “Tennessee Warbler”.
Detection rate
The camera block sets detect.fps: 3. The model’s time per frame alone would allow about 8.7 fps, but Frigate skipped frames with the camera at 5 fps; what limits Frigate was not measured. The figures are in Results.
Limitations
- The model names only its 555 North American classes: see Labels for birds outside 555 classes.
- The decode of the model’s raw output was tested only on the Frigate image named in Requirements, not on
ghcr.io/blakeblackshear/frigate:stable. - Not tested: a live outdoor camera, other cameras, Home Assistant output, Home Assistant OS and the Frigate add-on. The setup ran Frigate in Docker.
- Frigate chooses the DX-RT version its DEEPX detector uses. The tested build pins DX-RT v3.4.0; this project cannot change it.
- If the DX-RT daemon restarts, restart the Frigate container too.
Privacy
An outdoor camera can record people and neighboring property, and local recording rules apply. Aim the camera at the feeder.
Detection runs on the Raspberry Pi 5. Frigate sends events, including species names, to your MQTT broker, so keep the broker on a network you control. Frigate can also publish snapshot images over MQTT if you turn that on. The example camera block turns recording off.
Frigate downloads the DX-RT Python bindings at first start, and again when a release pins a new version, so the first start needs internet access. Sixfab did not audit the outbound network connections.
Troubleshooting
Frigate publishes a species topic only while the birdfeeder camera is on and a bird is in view. Check the stream:
ffprobe rtsp://[STREAM_HOST]:8554/[STREAM_PATH]
If ffprobe cannot read the stream, fix the feed first. If it reads, watch the topics:
mosquitto_sub -h [BROKER_HOST] -t "frigate/birdfeeder/+" -v
If frigate/birdfeeder/all stays at 0, no bird is in view.
Frigate did not keep up with a 5 fps camera in the test: see Detection rate. Keep detect.fps: 3 in the camera block, then restart Frigate:
docker restart frigate
The names in objects.track must match the labelmap line for line. A name typed by hand can differ in small ways: the labelmap holds Swainson's Hawk (Dark morph ), with a space before the closing parenthesis. Generate the list with the snippet in step 6 of Manual install, or copy the lines from nabirds-labelmap.txt.
The model knows only 555 North American classes, and a bird outside them gets the closest class. See Labels for birds outside 555 classes.
The installer could not find your container. Pass its name with --container [CONTAINER_NAME], or the config folder with --config-dir [CONFIG_DIR].
The installer checks the stream with ffprobe before it changes anything. Check the address and that the stream is running, then run the installer again.
Next steps
- Choose project All projects on the AI HAT+.
- Squirrel detector Another project with one detector model in Frigate.
- Boss Detector The boss detector project.
-
Sixfab Model Zoo
Pre-compiled
.dxnnmodels. -
Compile your own model
Build a
.dxnnmodel.
License and credits
The code is licensed under the MIT License. nabirds-new-model.dxnn is built on an Ultralytics YOLOv8 base and is licensed under AGPL-3.0. It was trained on NABirds data, which carries a non-commercial restriction. The model’s details are in the bird-species-id-v1.0.0 release notes.
Credits: Frigate NVR and NABirds.