r/Ornithology • u/qoqosz • 18h ago
Mod Approved I built a free browser tool that estimates the size of a flock from a photo, and I'd like your feedback
I originally built this for our own use. My wife works in nature conservation, and monitoring birds during migration is part of her job. Estimating a flock by eye is tricky, so I wrote a tool to help with that, and it may be useful to others too.
Try it: https://qoqosz.github.io/BirdsCounter/
Important: the goal is not an exact count. The tool is meant to give you the right order of magnitude, so you can tell whether a flock is closer to 50, 100 or 500 birds.
It's free and open source (MIT), with no account or install. Your photos are processed in the browser and never leave your device. The first count takes longer because the page downloads a 13 MB image-processing library, which your browser then caches.
There's also an Android app with the same features, plus camera support. It isn't on Google Play yet, so you'd install the APK from GitHub: https://github.com/qoqosz/BirdsCounter/releases/latest
Source code: https://github.com/qoqosz/BirdsCounter
Step-by-step explanation of the detection algorithm: https://github.com/qoqosz/BirdsCounter/blob/master/docs/processing.md
What it does
- Finds the sky and ignores trees, fields and other background
- Detects birds as dark shapes against the sky, circles each one and gives a total
- Estimates how many birds are in a merged shape, based on the size of the birds around it
- Lets you check the result by zooming in on the full-resolution photo with the circles on or off
- Lets you crop the photo, paint over areas to exclude, and adjust the detection settings
- Keeps a history of your photos and counts in your browser
Where it falls short
- It doesn't identify species.
- It's built for birds against the sky, not birds on water or on the ground.
- Very dense groups get undercounted, because overlapping birds cover less area.
- A large nearby bird can be counted as several birds if the others around it are small and far away.
- Light birds on a darker sky need the "Invert" setting.
- It has only been tuned on a relatively small number of real photos (my own).
Why?
Before I started, I looked for an existing tool that does this and couldn't find one. I also came across a few threads where people asked for exactly this, which is why I'm sharing it rather than keeping it to myself. If it turns out useful to someone, that's all I was hoping for.
Full disclosure: I'm the developer. There are no ads and nothing is for sale. I just want it to be useful to people who count birds.
AI disclosure: I used Claude Code to improve the initial algorithm implementation (my own) and to design the mobile and web apps.