VehicleGenome turns an ordinary roadside camera into a vehicle-intelligence sensor: it reads the plate, describes the vehicle, and computes an appearance signature that re-identifies the same car across cameras — even when the plate is unreadable.
# POST /api/analyze (one frame, 4 vCPU) { "plate": "30N4616", "plate_conf": 0.9998, "region": "Vietnam", "colour": { "dominant": "black" }, "attributes": { "make": "Lexus", "model": "IS", "body_type": "sedan" }, "fingerprint": "clip-b32 · 512-d", "matches": [0.94, 0.71, 0.43], "timing_ms": { "detect_ocr": 559, "total": 2493 } }
Each frame becomes a sighting: a plate string, a vehicle description, and a 512-dimension appearance vector stored next to it. Everything downstream — search, alerts, re-identification — is a lookup over those records.
End-to-end single-stage detector localises plates in the frame, including multi-vehicle scenes and oblique angles.
Compact convolutional-transformer recogniser trained for plate typography — outperforms generic OCR on character confusions (0/O, 1/I, 8/B).
The vehicle crop is embedded into a 512-d space plus a dominant-colour palette, so the same car can be matched when the plate fails.
A vision LLM adds make, model, body type and distinctive marks — human-readable evidence for an operator's review queue.
Built to answer one question: can a Flock-style capability be delivered on cheap hardware, in a market where the incumbent is not present?
Detection confidence, per-character OCR confidence, and country/region prediction returned for every plate in the frame.
512-d CLIP embedding + colour palette + VLM attributes, stored with the sighting so later frames can be compared.
Cosine similarity search over the sighting gallery returns the most similar vehicles with scores — no plate required.
Levenshtein-tolerant lookup so a single OCR error (30N4616 → 30N46I6) still finds the sighting.
Drop a clip or open the camera. Frames are sampled, detections are grouped into tracks, and one car driving past is one event — not forty rows. Open the camera console →
YOLO finds each vehicle separately, plates are assigned to the box that contains them, and every vehicle gets its own record — not one record per photo.
Plate covered, bent or dirty? Query by what a person would say: gray plate, broken bumper, bicycle rack, sticker.
ONNX models, no GPU, no cloud round-trip for detection. Optional LLM call is the only network dependency and it can be switched off.
A single FastAPI service serves the API and the operator UI. Models run in-process on ONNX Runtime; sightings persist to SQLite.
camera frame
│
▼
┌──────────────────┐ ┌──────────────────┐ ┌──────────────────┐
│ YOLOv9-t plate │──▶│ CCT-xs OCR │──▶│ plate string │
│ detector (ONNX) │ │ (ONNX) │ │ + confidences │
└──────────────────┘ └──────────────────┘ └────────┬─────────┘
│ vehicle crop │
▼ │
┌──────────────────┐ ┌──────────────────┐ │
│ CLIP ViT-B/32 │──▶│ 512-d embedding │ │
│ vision (ONNX) │ │ + colour palette │ │
└──────────────────┘ └──────────────────┘ │
│ │
│ optional (network, disable-able) │
▼ ▼
┌──────────────────┐ ┌──────────────────┐
│ Qwen2.5-VL │ make/model/body/colour │ sighting record │
│ via OpenRouter │─────────────────────────▶│ SQLite + blobs │
└──────────────────┘ └────────┬─────────┘
│
┌───────────────────┴────────────────┐
▼ ▼
cosine search (re-ID) Levenshtein plate search
Upload a vehicle photo and get the plate, the fingerprint, the attributes and the nearest matches in the gallery — measured end to end, on this machine.