VehicleGenome — build status

Last verified: 2026-11-30, on the VPS itself.

What runs right now

piece status where
FastAPI service + operator UI running, port 8090 app/main.py, web/
Make/model head — CLIP + logistic probe, gated cascade to VLM working, 0.779 make+model core/mm_classifier.py, models/car_mm_probe.npz
Video ingest + track grouping working, 5/5 tracks on a 5-vehicle clip core/video.py
Hotlist, alerts (with cooldown), audit log, retention purge working core/ops.py
Live camera page (HTTPS) working on https://IP:8443/live web/live.html
Vehicle detection — one box per car (YOLOv5n ONNX) working core/vehicle_detector.py
Plate detection (YOLOv9-t ONNX) working core/alpr_engine.py
Plate OCR (CCT-xs v2 global) working core/alpr_engine.py
Vehicle fingerprint (CLIP B/32 ONNX, 512-d) working core/clip_encoder.py
Colour descriptor + VLM attributes working core/fingerprint.py
Sighting store, cosine + fuzzy plate + description search working, seeded gallery core/store.py, core/attributes.py
Evaluation harness working, reports/metrics.json eval/run_eval.py
Literature review (4,984 words, 51 refs) done docs/LIT_REVIEW.md
Feasibility + business model (4,861 words) done docs/FEASIBILITY_BUSINESS.md
Conference paper (LaTeX + PDF) 8 pages, compiles clean, numbers filled from reports/metrics.json paper/main.tex, paper/main.pdf

Public URL: http://91.99.95.87:8090/ (port is open through the provider firewall).

Measured results (all real, on this 4-vCPU box, no GPU)

Plate detection — OpenALPR benchmark, 443 frames, IoU ≥ 0.5 precision 0.923 · recall 0.998 · F1 0.959 · mean best IoU 0.852

Plate OCR — end-to-end, same 443 frames, exact string match exact 0.896 · character accuracy 0.977 · CER 0.023 by region: br 0.974 · eu 0.935 · us 0.838

Vehicle fingerprint / re-ID — 13 identities, 39 probes rank-1 0.821 (CI 0.673–0.910) · rank-5 1.000 · pos/neg cosine gap 0.069

Description search (plate-free) — self-caption protocol, 13 identities / 13 probes top-1 0.538 · top-3 0.692 (query = the model's own caption of the probe vehicle)

Multi-vehicle decomposition — YOLOv5n COCO; on a 5-car frame the pipeline returns 5 records (3 with plates, 2 plate-less but searchable by appearance/description), ~1.4 s total on 4 vCPU.

External baseline — Tesseract 5.3.4 on the same 442 crops: 0.136 exact / 0.553 CER vs 0.898 / 0.021.

Calibration — ECE 0.0939 over 442 reads; T=2.75 cuts held-out ECE 0.0983 -> 0.0595.

Ablation — appearance-only re-ID 0.833; adding colour drops it to 0.667 (within noise at n=12).

Robustness — 120 GT frames per condition: F1 0.948 clean, 0.956 low light, 0.960 blur, 0.948 JPEG q20, 0.797 at 45% scale. OCR exact 0.899 clean -> 0.529 blur (char acc still 0.752).

Gallery scale — 400 identities: rank-1 0.833 (12 probes), margin 0.053.

Tests — pytest tests -q -> 14 passed. Caught a live 500 in /api/search/plate.

Latency — p50 124 ms detect+OCR (8.1 fps), p95 253 ms; ~0.6 s per single-vehicle sighting warm, ~1.4 s for a 5-vehicle frame.

Honest gaps

  1. No Arabic / GCC plate data. The OCR head is a Latin-script global model. Measured on 3 real Saudi plate images (data/saudi_probe/, raw output reports/saudi_probe.json): plate localised 3/3, plate read correctly 0/3 — the model returns 62511 / 135TTJ / 4734AGJ and mislabels the region as Armenia/Georgia, because it only sees Latin glyphs and hallucinates the rest. The detector generalises; the recogniser does not. This is the single biggest technical risk for the Saudi market and the first thing to fix with a local collection.
  2. Re-ID separation is thin. CLIP B/32 clusters vehicles tightly; ranking works but the margin is small. A metric-learning head trained on local pairs is the obvious next step.
  3. Attributes are not accuracy-measured. No human attribute labels exist in the public sets we could download; we report VLM-vs-descriptor colour agreement (0.70) only.
  4. Daytime, third-party imagery only. No night/IR, no dust, no heat-haze frames.
  5. No production hardening: no auth, no retention policy, no watchlists/alerts, no multi-camera track stitching.

How to reproduce

cd /root/VehicleGenome
.venv/bin/python eval/run_eval.py            # ~10 min, rewrites reports/metrics.json
.venv/bin/python scripts/ingest.py <folder>  # seed the gallery