This program is designed to monitor and count the number of people entering and exiting a space in real time
i have used github copilot for basic debugging and error solving
This program is designed to monitor and count the number of people entering and exiting a space in real time
i have used github copilot for basic debugging and error solving
Final polish: accurate-only pipeline + YOLOv11 custom backend support + clean compact UI.
What was improved in this update:
Also removed temporary testing artifacts from final output:
Current final build is stable for webcam/RTSP inputs with manual door-line calibration and reliable IN/OUT counting.
Setup no longer asks for performance profile; accurate mode is always used.
Update: local video playback is now a core camera source for the final project.
What changed in this follow-up:
Log in to leave a comment
cleaned junk code.
Pre-release cleanup and merge stage.
Pulled in the polished app structure:
This stage is basically the last checkpoint before packaging docs/license and calling it done.
Log in to leave a comment
improved code to make it smooth.
Performance-focused pass.
What I changed:
Tradeoff is obvious: a bit less accurate when people move fast, but much smoother on weak hardware. For this project, stable realtime view is more important than perfect per-frame detection.
Log in to leave a comment
improved active track count and event log print format.
Worked on counting quality and visibility.
Changes in this stage:
get_active_persons, reset_counts)Annoying part: when a few people cross together, nearest-neighbor still swaps IDs sometimes. Not fully solved yet, but output is easier to debug now because logs are clearer.
Log in to leave a comment
camera selecting ability and door selecting ability.
Usability pass: removed hardcoded assumptions.
Implemented setup flow:
Mouse callback logic was annoying at first (line would jump because drag state was wrong). Fixed by handling LBUTTONDOWN/MOVE/UP carefully.
This stage feels like a real app now, not just a dev prototype.
Log in to leave a comment
In / out printed with fixed door line at mid-frame.
Built a basic nearest-neighbor tracker and connected it to a fixed door line at mid-frame.
Now it can print IN / OUT events and keep counters on screen.
Big issue today: jitter around the line created fake crossings. I didn’t fully solve it here, but at least track aging/removal is in place so stale IDs don’t pile up forever.
Log in to leave a comment
person detection.
Added YOLO person detection. The first run looked like a hang, but it was just downloading model weights.
Current behavior:
Still rough. Box flicker is obvious and FPS drops on slower machines, but this is enough to visually verify detections before I touch tracking.
Log in to leave a comment
Check this https://github.com/B4rtekk1/YOLO Custom self trained Yolo model
webcam opening.
Started from scratch and forced myself to keep it tiny: just open webcam, show frames, exit on ESC.
I wasted a bit of time because camera index 0 didn’t work on first try (USB cam was on 1). I added the index prompt so I don’t keep editing code every run.
No ML yet, no counting yet. Just confirmed OpenCV loop is stable and cleanup (release + destroyAllWindows) is working.
Log in to leave a comment