[Vision AI] Dynamic Lane Boundary Extraction & Geometric IoU Intrusion Criterion (#2)
· 2 min read

📌 Key Takeaways (TL;DR)
- Problem: Dashcam footage contains heavy pavement specular reflection, tar cracks, and road shadows that induce false lane lines; simple coordinate checking cannot reliably catch the exact moment of lane encroachment.
- Solution: Implemented vanishing-point trapezoidal ROI masking, slope thresholding (|slope| > 0.5), and a 7-frame temporal moving average queue. Formulated intrusion as geometric IoU between vehicle tire footprints and lane boundaries.
- Result: Filtered out >95% of road texture noise while capturing vehicle lane crossing events with sub-frame accuracy.
