Spaces:
Sleeping
Sleeping
Commit History
-
Add violation rules, NETRA UI overhaul, MongoDB challan store, and model weights
- Illegal parking: zone-based polygon detection (image) + dwell-time tracker (video) - Seatbelt non-compliance: absence-based YOLO detection on car crops - Wrong-side driving: motion-based video tracker + model-based image path (gated on weight file) - Red-light running: stop-line crossing detection with enforcement flag - TrOCR plate OCR: replaced EasyOCR with microsoft/trocr-base-printed, targeted per-offending-vehicle - MongoDB challan store: best-effort Atlas connection, two_wheeler/four_wheeler folder hierarchy - NETRA command-center UI: navy palette, blueprint grid, SensorFusion tri-modal panel, violation modal - Multi-file sequential upload on Analyze page - Records page: data-driven type filter, no Review column - Include yolov8n.pt, helmet_yolo11n_v2_best.pt, seatbelt.pt (all ≤7MB); removed 224MB of unused weights Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>f184c04
-
Integrate weather-adaptive edge preprocessor into the pipeline
har2312 +1: Claude Opus 4.8Wire DynamicTrafficPreprocessor (ultimate_edge_preprocessor.py) into the upload pipeline as the front-end cleaning step: - Detect scene condition (FOG/NIGHT/DAY-RAIN) and feed the cleaned 640x640 letterboxed frame to detection, violation rules, annotation and evidence. - Run ANPR on the full-resolution, weather-corrected frame instead — detection boxes are mapped back from 640x640 to original pixels (letterbox_params / unletterbox_bbox) so plate detail isn't lost to downscaling. - Preserve the UI quality report via preprocessor.assess() (no double-cleaning). - Log the condition: terminal print, evidence-image label, metadata, and a new weather_condition field on the /api/upload response. - Share the enhancement chain between the 640 and full-res paths (_apply_chain) and make matplotlib a lazy import so the headless backend can import the class. - Guard against undecodable uploads with an HTTP 400. Tooling/docs: - config.py puts the repo root on sys.path so the root-level mo…58a8d53 -
plate recog by TrOCR and frontend and some other things updated
f09c2db
-
basic architecture defined
5fdeef5