product-recognition-demo/recognization/code
tngo fd72251160 feat: add Van's real baseline lane and stop size tokens naming products
Two review findings, both confirmed by measurement.

1. The evaluator had no always-argmax lane, so every "vs Van" claim compared
   against the *gated* matcher, which is not Van's contract - the original demo
   answered every crop with its best-scoring SKU and had no accept line. The new
   'van' lane is that contract: same scores, no gate. Against it the local lane
   wins both axes at both resolutions (full 61%/77% vs 52%/29%; live 59%/95% vs
   57%/32%), but the live coverage margin is one facing, not seven, and the 95%
   figure is live-resolution only - at full resolution the same lane reads 77%
   with 11 false accepts and a hub alarm.

2. A crop reading only "400g" scored 0.667 on three SKUs, above TEXT_ACCEPT, so
   the text lane named a product from a size line. The fill-in job now requires
   two non-digit bigrams; the veto is unchanged, so "65%" still contradicts a
   local answer. The raw OCR read travels with the ranking through
   score_crop_lanes for that check.

Tests: 3 for the size gate (policy + live) and the van lane's own row. Removing
the gate fails all three. Suite 276 -> 280.
2026-09-28 23:12:44 +09:00
..
web
__init__.py
app.py feat(identity): local-feature matcher plus text lane as the default backend 2026-09-28 22:27:21 +09:00
bench_engine.py
bench_identity.py
build_store_from_shelf.py fix: require explicit safe shelf enrollment paths 2026-09-28 13:41:43 +09:00
collect_shelf_images.py
detector.py
empty_shelf_detector.py
engine.py feat: add Van's real baseline lane and stop size tokens naming products 2026-09-28 23:12:44 +09:00
eval_external_images.py
eval_identity.py feat: add Van's real baseline lane and stop size tokens naming products 2026-09-28 23:12:44 +09:00
eval_live.py docs: name the local lane in the evaluators' own lane vocabulary 2026-09-28 22:34:06 +09:00
feature_matcher.py
finetune_identity.py fix: refuse unavailable gallery and pin head trainer 2026-09-28 14:41:57 +09:00
gallery.py feat(identity): local-feature matcher plus text lane as the default backend 2026-09-28 22:27:21 +09:00
identity.py feat(identity): local-feature matcher plus text lane as the default backend 2026-09-28 22:27:21 +09:00
identity_lanes.py feat: add Van's real baseline lane and stop size tokens naming products 2026-09-28 23:12:44 +09:00
inventory.py
live.py feat: add Van's real baseline lane and stop size tokens naming products 2026-09-28 23:12:44 +09:00
ocr.py feat: add bounded crop evidence and keyed gallery cache 2026-09-28 15:49:34 +09:00
rebuild_catalog.py fix: read --shelf-tags before the catalog swap 2026-09-28 23:03:08 +09:00
reconcile.py
record.py fix: record and require the walk identity backend 2026-09-28 14:42:03 +09:00
shelf_map.py
stream_client.py
tag_cards.py
tags.py fix: bind tag projection to each frame origin 2026-09-28 14:41:49 +09:00
test_api.py feat(identity): local-feature matcher plus text lane as the default backend 2026-09-28 22:27:21 +09:00
test_engine.py feat: add Van's real baseline lane and stop size tokens naming products 2026-09-28 23:12:44 +09:00
test_eval_live.py fix: record and require the walk identity backend 2026-09-28 14:42:03 +09:00
test_gallery.py fix: serialize gallery inference so Metal cannot be entered twice 2026-09-28 17:22:55 +09:00
test_identity.py refactor: delete the legacy session model 2026-09-28 17:47:50 +09:00
test_live.py feat: add Van's real baseline lane and stop size tokens naming products 2026-09-28 23:12:44 +09:00
test_ocr_tags.py fix: bind tag projection to each frame origin 2026-09-28 14:41:49 +09:00
test_real_model.py
test_rebuild_catalog.py fix: read --shelf-tags before the catalog swap 2026-09-28 23:03:08 +09:00
test_reconcile.py
test_record.py fix: record and require the walk identity backend 2026-09-28 14:42:03 +09:00
test_shelf_map.py
test_tag_cards.py
test_tag_identity.py
test_tracking.py
tracking.py
train.py
transport.py