---
title: "Identify bird species with bird feeder camera"
description: "DIY bird feeder camera on a Raspberry Pi 5: one 555-class model on the Sixfab AI HAT+ (DEEPX DX-M1M) names each bird in Frigate NVR. Install, MQTT, limits."
url: "https://docs.sixfab.com/projects/ai-hat-plus/identify-bird-species-bird-feeder-camera/"
last_updated: "2026-10-12"
---

# Identify bird species with bird feeder camera

Run one NABirds model on the AI HAT+ so that Frigate NVR names each bird at a feeder camera and publishes one MQTT topic per species.

**Works with:** [AI HAT+](https://docs.sixfab.com/edge-ai/ai-hat-plus/) on Raspberry Pi 5

![Frigate Debug view with Bounding Boxes on, showing a box labeled Red-bellied Woodpecker on a bird on a branch](https://docs.sixfab.com/wp-content/uploads/sixfab-docs/07-frigate-debug-panel-bounding-boxes-switch-on-bird-box.png)

## How it works

Frigate NVR (network video recorder software) reads the camera stream over [RTSP](https://docs.sixfab.com/projects/ai-hat-plus/choose-ai-hat-plus-project/#rtsp). The [NPU](https://docs.sixfab.com/projects/ai-hat-plus/choose-ai-hat-plus-project/#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”.

![Diagram of the bird camera pipeline: an RTSP stream goes into one NABirds YOLO detector on the DEEPX NPU, and the species labels go out to MQTT and the Frigate UI](https://docs.sixfab.com/wp-content/uploads/sixfab-docs/07-bird-camera-pipeline-one-nabirds-detector-names-the-species.svg)

1. The camera stream reaches Frigate over RTSP.
2. Frigate prepares each frame for the model’s 640 × 640 input and sends it to the NPU.
3. The model returns boxes and class scores, and Frigate’s DEEPX detector decodes them.
4. The class name becomes the object label. Frigate publishes one [MQTT](https://docs.sixfab.com/projects/ai-hat-plus/choose-ai-hat-plus-project/#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](https://docs.sixfab.com/edge-ai/ai-hat-plus/quickstart/), [set up Frigate with the DEEPX NPU](https://docs.sixfab.com/projects/ai-hat-plus/set-up-frigate-nvr-ai-hat-plus/), then [add an RTSP camera and MQTT broker](https://docs.sixfab.com/projects/ai-hat-plus/connect-camera-feeds-mqtt-frigate/).

**Required**

**Hardware**

- **Raspberry Pi 5**: Runs Frigate and the install script. The test used the 8 GB model.
- **AI HAT+ (DEEPX DX-M1M)**: [Sixfab AI HAT+ for Raspberry Pi 5](https://shop.sixfab.com/products/ai-hat-plus-raspberry-pi-5?utm_source=docs.sixfab.com&utm_medium=referral&utm_campaign=ai-projects&utm_content=diy-bird-feeder-camera-raspberry-pi-frigate), the variant the test used. See the [AI HAT+ specifications](https://docs.sixfab.com/edge-ai/ai-hat-plus/hardware-reference/specifications/).
- **RTSP camera or stream**: Any 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 broker**: Any broker, such as Mosquitto, for the Verify step.

**Software**

- **Frigate with the DEEPX detector**: Already running, as set up in [Frigate NVR on Raspberry Pi 5 with the DEEPX NPU](https://docs.sixfab.com/projects/ai-hat-plus/set-up-frigate-nvr-ai-hat-plus/).
- **git, curl and sha256sum**: For the download and the checksum.
- **Docker, python3 with PyYAML, and ffprobe**: Called by the install script; `ffprobe` is part of ffmpeg. The manual species list also needs PyYAML.
- **mosquitto_sub**: From the Mosquitto clients, for the Verify step.
- **Model files**: `nabirds-new-model.dxnn` from the project’s GitHub release; `nabirds-labelmap.txt` in the project’s `model` folder.

> [!NOTE]
> **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](https://github.com/blakeblackshear/frigate/blob/dev/docs/docs/configuration/object_detectors.md).

## 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.

**Install script**

Run on the Raspberry Pi 5, with Frigate running:

```bash
git clone https://github.com/sixfab/sixfab-dx-frigate.git
```

```bash
cd sixfab-dx-frigate/apps/bird-species-id
```

```bash
./install.sh --rtsp-url [RTSP_URL]
```

- `--rtsp-url` (string): The RTSP address of your bird camera. The installer asks for it if you leave it out.
- `--broker` (string): Your broker address, written into the Verify command the installer prints.
- `--container` (string): The name of the Frigate container. Defaults to `frigate`.
- `--config-dir` (string): Frigate’s config folder. Left out, it is read from the container’s `/config` mount.
- `--yes` (flag): Skips 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.

**Manual install**

1. **Start Frigate**

   If Frigate is not running yet, follow [Frigate NVR on Raspberry Pi 5 with the DEEPX NPU](https://docs.sixfab.com/projects/ai-hat-plus/set-up-frigate-nvr-ai-hat-plus/). Its `docker run` command is the only Frigate start command this project needs.

2. **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](https://docs.sixfab.com/projects/ai-hat-plus/connect-camera-feeds-mqtt-frigate/).

3. **Get project folder**

   On the Raspberry Pi 5, clone the repository and open the project folder:

   ```bash
   git clone https://github.com/sixfab/sixfab-dx-frigate.git
   ```

   ```bash
   cd sixfab-dx-frigate/apps/bird-species-id
   ```

4. **Download and check model**

   From the project folder, download the model from the project’s GitHub release:

   ```bash
   mkdir -p model/nabirds-new
   ```

   ```bash
   curl -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.dxnn
   ```

   Check its SHA-256 against `models.txt`:

   ```bash
   awk '$1 !~ /^#/ && NF {print $3 "  " $2}' models.txt | sha256sum -c -
   ```

   ```text
   model/nabirds-new/nabirds-new-model.dxnn: OK
   ```

   Copy the model and the labelmap into Frigate’s model cache:

   ```bash
   mkdir -p [FRIGATE_CONFIG_DIR]/model_cache
   ```

   ```bash
   cp model/nabirds-new/nabirds-new-model.dxnn [FRIGATE_CONFIG_DIR]/model_cache/
   ```

   ```bash
   cp model/nabirds-labelmap.txt [FRIGATE_CONFIG_DIR]/model_cache/
   ```

5. **Add model entry and camera**

   Merge this example into your Frigate `config.yaml`, with your own camera name and stream address. Its `objects` block is a two-species example; step 6 replaces it.

   ```yaml
   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: false
   ```

   `scene` ties a camera to a model. Frigate accepts five values: `all`, `indoor`, `outdoor`, `indoor_thermal` and `outdoor_thermal`. This project uses `outdoor_thermal` as an unused slot, so the entry needs no thermal camera and shares no model with another project.

6. **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 that `install.sh` writes:

   ```bash
   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))
   PY
   ```

   Replace the `objects:` block of your camera in `config.yaml` with the contents of `species.yaml` (about 2,200 lines), indented to sit under the camera.

7. **Restart Frigate**

   ```bash
   docker restart frigate
   ```

## Verify

1. **Watch species topics**

   Subscribe to the camera’s topics; replace `birdfeeder` if you named the camera differently:

   ```bash
   mosquitto_sub -h [BROKER_HOST] -t "frigate/birdfeeder/+" -v
   ```

   ```text
   frigate/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 2
   ```

   Each line is the topic, then the payload: the number of birds of that species in view now. `Golden-fronted Woodpecker 1` means one, `0` means none, and `frigate/birdfeeder/all` counts all birds together. The names above come from the looped test video and are not correct identifications: see [Labels for birds outside 555 classes](https://docs.sixfab.com/projects/ai-hat-plus/identify-bird-species-bird-feeder-camera/#what-label-does-a-bird-outside-the-555-classes-get).

2. **Check that Frigate answers**

   The installer uses this call to confirm that Frigate is up:

   ```bash
   docker exec frigate curl -s http://localhost:5000/api/stats
   ```

   Frigate 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 `-p` flag to withhold it.

3. **Check label in Debug view**

   Open `https://[PI_IP]:8971`, choose the `birdfeeder` camera, open the Debug view and turn on Bounding Boxes. In the test, the box showed a Yellow Warbler label while the looped video played.

   ![Frigate Debug view for the birdfeeder camera with the Bounding Boxes switch on and a box with a species label around the bird](https://docs.sixfab.com/wp-content/uploads/sixfab-docs/07-frigate-debug-panel-bounding-boxes-switch-on-bird-box-2.png)

   **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](https://sixfab.com/blog/raspberry-pi-5-ai-hat-benchmark-deepx-vs-hailo/) 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](https://docs.sixfab.com/projects/ai-hat-plus/identify-bird-species-bird-feeder-camera/#how-fast-is-bird-species-detection-on-the-raspberry-pi-5-npu-in-milliseconds-per-frame).

## Limitations

- The model names only its 555 North American classes: see [Labels for birds outside 555 classes](https://docs.sixfab.com/projects/ai-hat-plus/identify-bird-species-bird-feeder-camera/#what-label-does-a-bird-outside-the-555-classes-get).
- 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

### No species topics appear on MQTT

Frigate publishes a species topic only while the `birdfeeder` camera is on and a bird is in view. Check the stream:

```bash
ffprobe rtsp://[STREAM_HOST]:8554/[STREAM_PATH]
```

If `ffprobe` cannot read the stream, fix the feed first. If it reads, watch the topics:

```bash
mosquitto_sub -h [BROKER_HOST] -t "frigate/birdfeeder/+" -v
```

If `frigate/birdfeeder/all` stays at 0, no bird is in view.

### Frigate skips frames

Frigate did not keep up with a 5 fps camera in the test: see [Detection rate](https://docs.sixfab.com/projects/ai-hat-plus/identify-bird-species-bird-feeder-camera/#detection-rate). Keep `detect.fps: 3` in the camera block, then restart Frigate:

```bash
docker restart frigate
```

### A species never appears although the model knows it

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`.

### A bird gets a label that does not fit

The model knows only 555 North American classes, and a bird outside them gets the closest class. See [Labels for birds outside 555 classes](https://docs.sixfab.com/projects/ai-hat-plus/identify-bird-species-bird-feeder-camera/#what-label-does-a-bird-outside-the-555-classes-get).

### ERROR: cannot find a Frigate container named ‘frigate’ with a /config mount

The installer could not find your container. Pass its name with `--container [CONTAINER_NAME]`, or the config folder with `--config-dir [CONFIG_DIR]`.

### ERROR: cannot read the RTSP URL

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.

### NPU or driver problems

See [AI HAT+ troubleshooting](https://docs.sixfab.com/edge-ai/ai-hat-plus/troubleshooting/).

## Next steps

- [Choose project](https://docs.sixfab.com/projects/ai-hat-plus/choose-ai-hat-plus-project/): All projects on the AI HAT+.
- [Squirrel detector](https://docs.sixfab.com/projects/ai-hat-plus/build-squirrel-detector-sprinkler-trigger/): Another project with one detector model in Frigate.
- [Boss Detector](https://docs.sixfab.com/projects/ai-hat-plus/get-person-alert-camera-boss-detector/): The boss detector project.
- [Sixfab Model Zoo](https://docs.sixfab.com/edge-ai/ai-model-deployment/sixfab-model-zoo/): Pre-compiled `.dxnn` models.
- [Compile your own model](https://docs.sixfab.com/edge-ai/ai-model-deployment/custom-models-dxnn-sdk/workflow/): Build a `.dxnn` model.

## 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](https://github.com/sixfab/sixfab-dx-frigate/releases/tag/bird-species-id-v1.0.0).

Credits: [Frigate NVR](https://github.com/blakeblackshear/frigate) and NABirds.
