About Egg Counter
Egg Counter is a custom-built automated counting system designed to eliminate manual egg tallying on small and mid-size poultry farms. It runs entirely on a Raspberry Pi 5 mounted at the egg collection point, using a wide-angle camera and a YOLO AI model to detect and count eggs as they pass — in real time, all day, every day.
How It Works
Camera captures live video
A Raspberry Pi Camera Module 3 Wide watches the egg conveyor or collection belt continuously. The system reads every frame and passes it to the AI model for analysis.
YOLO detects and tracks each egg
A trained YOLO model identifies eggs in every frame. Each detected egg is assigned a persistent tracker ID so it can be followed across frames without double-counting.
Line crossing triggers the count
A virtual counting line is drawn across the frame. Each time a tracked egg crosses that line, the count increments by one — exactly once per egg, regardless of speed or size.
Counts saved and displayed live
Counts are written to a local database in real time and pushed to the live web dashboard over WebSocket. Daily totals persist automatically — no manual logging needed.
Multi-House Support
Hold up an ArUco marker card to switch the active house between A and B. Each house keeps its own independent daily count. No buttons, no settings — just hold up the card.
Adjustments & Notes
Made a mistake or had a camera outage? Add a manual adjustment to any day's count with a reason. Every adjustment is logged so your history stays accurate.
Built to Be Tuned
30+ runtime settings cover everything from confidence threshold to region of interest to tracker stability filters — all editable live without restarting the system.
Video Recording
Optionally record raw or annotated video (with detection boxes and the count line overlaid) for later review or debugging.
Want to know more?
Get In Touch