This project includes a client-side web page that runs license plate detection and OCR directly in the browser using onnxruntime-web.
web/index.htmlweb/app.jsweb/models/yolo-v9-t-384-license-plates-end2end.onnxweb/models/cct_xs_v1_global.onnx
Serve the workspace as static files (required so the browser can fetch the ONNX file):
cd /workspaces/lic
python3 -m http.server 8000Open:
http://localhost:8000/web/
Option A (file upload):
- Upload an image.
- Optionally drag on the preview to crop to the plate region.
- Click Run Detect + OCR.
Option B (webcam capture):
- Click Start camera and allow camera access.
- Click Capture frame to move the current webcam frame into the OCR canvas.
- Optionally drag to crop.
- Click Run Detect + OCR.
Inference runs entirely in the browser via JavaScript ONNX Runtime (wasm execution provider). The detector finds plate bounding boxes, then each crop is passed to OCR.