Built a real-time intrusion detection pipeline using YOLOv8n
defined an ROI polygon (red zone) detect person bboxes per frame
assigned IDs via simple tracking (centroid/IOU) → green if outside, red if inside
added basic debounce to avoid alert spam frame skipping for latency
still tuning for shadows, occlusion, and camera angle edge cases
Checkout below