use case ยท practical object-detection ยท WASM q8 ยท 45.46 MB batch queue ยท CSV / COCO JSON Apache-2.0

Local Photo Audit & Inventory Counter

Drop a folder's worth of photos โ€” a room-by-room home inventory, a shop shelf walk-through, a site-safety sweep โ€” and RT-DETR R50vd counts every COCO object in each one, one image at a time in a Web Worker. Tick off a target checklist, then export the exact rows you see as formula-safe CSV, plain JSON, or COCO-style JSON. Photos never leave this device.

1 ยท Build the audit queue

Add curated scenes:

Adding the "Home interiors" scenes to the queueโ€ฆ

Images0
Done0
Queued / running0
Failed / cancelled0
Mean latencyโ€“
Objects โ‰ฅ threshold0
Audit queue โ€” select an image to preview its boxes
# Image Size Status Latency Remove
The queue is empty.

2 ยท Inventory & target checklist

Every image is analysed once at a 0.15 floor, so moving the threshold re-counts the whole batch instantly without re-running RT-DETR.

Target checklist

Per-class inventory across all finished images
Class COCO name Group Count Images Best score
Run the queue to build the inventory.

Export exactly what is shown

Exports are snapshotted from the current threshold at the moment you press the button. Box coordinates are in each photo's original pixels; spreadsheet formula prefixes (= + - @) are neutralised.

3 ยท Preview a photo

Select an image in the queue to preview it here.

How the audit works

  1. Each photo is drawn onto an opaque white canvas (bounded to 1280 px on the long edge) and its RGB pixels are transferred to the RT-DETR worker.
  2. The worker runs pipeline("object-detection", "onnx-community/rtdetr_r50vd") with q8 weights on CPU WASM and returns every box scoring โ‰ฅ 0.15 โ€” RT-DETR's one-to-one matching means no NMS pass is needed.
  3. Boxes are scaled back to the photo's original pixel grid, so CSV and COCO JSON coordinates line up with the file you dropped.
  4. The queue runs strictly one image at a time; Stop discards the in-flight result and leaves the rest queued for later.
Show the code โ€” batch inventory + target checklist aggregation
Show the code โ€” COCO-style JSON exporter with canonical category ids