Hwarinn66/Dense-Object-Counter ? reverse-engineered prompt

Reverse engineered prompt

Build me a local Python web app that can count dense objects from a live camera feed, using either an IP Webcam phone stream or a USB webcam.

I want a simple dashboard that always shows the live preview, lets me set a counting area on the image, and then automatically takes a snapshot and counts objects after the scene has been still for a few seconds. It should support just one class, object, and save the counted snapshots and results locally with timestamps. If there is no trained model yet, the app should still open and show the camera feed, but make it clear that counting is unavailable instead of faking results.

Please include a basic counting mode for testing, plus support for a custom trained detection model later. Keep it local only, with a clean web UI, auto reconnect for the camera, and a reset button to clear the current count without stopping the camera. If you need to look up current docs online for the camera or model parts, feel free to do that.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab