feat: a live path that uses the enrolled store, and a demo server a phone can reach

The live session scored crops with the matcher regardless of the configured identity
backend, so a live scan used the old mechanism while the still path used the enrolled
gallery - measured, the matcher accepts look-alikes and cannot say "unknown", which is
exactly what a real shelf needs it to do. score_crop now routes to the gallery, and
the decision uses a similarity scale (accept at 0.60 with a 0.04 margin) rather than
inlier-count thresholds that mean nothing on a cosine.

The synthetic walk is gone: demo.py, demo_replay.py, the /v1/demo endpoints and the
walk benchmark are deleted, and the app's frame source is the camera on a device (the
single-image replay stays for the simulator, which has no camera).

stock-demo merges both demo shelves (27 products, 62 views, trained head) so one
server recognises either image, and run-demo-server.sh starts it bound to 0.0.0.0 and
prints the exact URL to put in Config.xcconfig.

Verified over the LAN with 1280x960 frames: 40 frames in 5.3s, 9 products recognised
on demo image 1.

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
kiyo9w 2026-09-25 10:51:57 +09:00
parent 383ff9cf2d
commit 0e23425ef0
74 changed files with 158 additions and 767 deletions

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

View file

@ -0,0 +1,28 @@
SKU_ID,product_name,receipt_date,expiration_date,number_in,number_out,number_on,image_link,price
sku_m01,小岩井 低脂肪牛乳,2026-09-25,2026-10-20,24,8,16,'',186
sku_m02,荻山酪農 カフェ・オ・レ,2026-09-25,2026-10-20,24,8,16,'',397
sku_m03,丹那 3.6牛乳,2026-09-25,2026-10-20,24,8,16,'',214
sku_m04,木次 ミルクコーヒー,2026-09-25,2026-10-20,24,8,16,'',195
sku_m05,木次 パスチャライズ牛乳,2026-09-25,2026-10-20,24,8,16,'',240
sku_m06,キスキ ブラウン・スイス牛乳,2026-09-25,2026-10-20,24,8,16,'',254
sku_m07,丹那 飲んでやさしいヨーグルト,2026-09-25,2026-10-20,24,8,16,'',225
sku_m08,農場3.7牛乳 特選,2026-09-25,2026-10-20,24,8,16,'',216
sku_m09,MINOR FIGURES OAT,2026-09-25,2026-10-20,24,8,16,'',300
sku_m10,北海道 低脂肪乳,2026-09-25,2026-10-20,24,8,16,'',214
sku_m11,タカナシ 低温殺菌牛乳,2026-09-25,2026-10-20,24,8,16,'',396
sku_m12,RUDE HEALTH Oat Organic,2026-09-25,2026-10-20,24,8,16,'',400
sku_m13,小岩井 無脂肪牛乳,2026-09-25,2026-10-20,24,8,16,'',178
sku_m14,きすき ノンホモ牛乳,2026-09-25,2026-10-20,24,8,16,'',198
sku_k01,明治 おいしい牛乳,2026-09-25,2026-10-15,48,20,28,'',198
sku_k02,ゆうパック 優良牛乳,2026-09-25,2026-10-15,48,20,28,'',130
sku_k03,酪農家限定 低温殺菌牛乳,2026-09-25,2026-10-15,48,20,28,'',248
sku_k04,北海道牛乳,2026-09-25,2026-10-15,48,20,28,'',178
sku_k05,MEGMILK,2026-09-25,2026-10-15,48,20,28,'',158
sku_k06,毎日牛乳,2026-09-25,2026-10-15,48,20,28,'',168
sku_k07,タカナシ 低温殺菌牛乳,2026-09-25,2026-10-15,48,20,28,'',258
sku_k08,タカナシ 殺菌低脂肪牛乳,2026-09-25,2026-10-15,48,20,28,'',198
sku_k09,毎日骨太,2026-09-25,2026-10-15,48,20,28,'',148
sku_k10,カルシウム入り低脂肪乳,2026-09-25,2026-10-15,48,20,28,'',145
sku_k11,無脂肪牛乳,2026-09-25,2026-10-15,48,20,28,'',138
sku_k12,低脂肪牛乳,2026-09-25,2026-10-15,48,20,28,'',120
sku_k13,ミルク,2026-09-25,2026-10-15,48,20,28,'',260
1 SKU_ID product_name receipt_date expiration_date number_in number_out number_on image_link price
2 sku_m01 小岩井 低脂肪牛乳 2026-09-25 2026-10-20 24 8 16 '' 186
3 sku_m02 荻山酪農 カフェ・オ・レ 2026-09-25 2026-10-20 24 8 16 '' 397
4 sku_m03 丹那 3.6牛乳 2026-09-25 2026-10-20 24 8 16 '' 214
5 sku_m04 木次 ミルクコーヒー 2026-09-25 2026-10-20 24 8 16 '' 195
6 sku_m05 木次 パスチャライズ牛乳 2026-09-25 2026-10-20 24 8 16 '' 240
7 sku_m06 キスキ ブラウン・スイス牛乳 2026-09-25 2026-10-20 24 8 16 '' 254
8 sku_m07 丹那 飲んでやさしいヨーグルト 2026-09-25 2026-10-20 24 8 16 '' 225
9 sku_m08 農場3.7牛乳 特選 2026-09-25 2026-10-20 24 8 16 '' 216
10 sku_m09 MINOR FIGURES OAT 2026-09-25 2026-10-20 24 8 16 '' 300
11 sku_m10 北海道 低脂肪乳 2026-09-25 2026-10-20 24 8 16 '' 214
12 sku_m11 タカナシ 低温殺菌牛乳 2026-09-25 2026-10-20 24 8 16 '' 396
13 sku_m12 RUDE HEALTH Oat Organic 2026-09-25 2026-10-20 24 8 16 '' 400
14 sku_m13 小岩井 無脂肪牛乳 2026-09-25 2026-10-20 24 8 16 '' 178
15 sku_m14 きすき ノンホモ牛乳 2026-09-25 2026-10-20 24 8 16 '' 198
16 sku_k01 明治 おいしい牛乳 2026-09-25 2026-10-15 48 20 28 '' 198
17 sku_k02 ゆうパック 優良牛乳 2026-09-25 2026-10-15 48 20 28 '' 130
18 sku_k03 酪農家限定 低温殺菌牛乳 2026-09-25 2026-10-15 48 20 28 '' 248
19 sku_k04 北海道牛乳 2026-09-25 2026-10-15 48 20 28 '' 178
20 sku_k05 MEGMILK 2026-09-25 2026-10-15 48 20 28 '' 158
21 sku_k06 毎日牛乳 2026-09-25 2026-10-15 48 20 28 '' 168
22 sku_k07 タカナシ 低温殺菌牛乳 2026-09-25 2026-10-15 48 20 28 '' 258
23 sku_k08 タカナシ 殺菌低脂肪牛乳 2026-09-25 2026-10-15 48 20 28 '' 198
24 sku_k09 毎日骨太 2026-09-25 2026-10-15 48 20 28 '' 148
25 sku_k10 カルシウム入り低脂肪乳 2026-09-25 2026-10-15 48 20 28 '' 145
26 sku_k11 無脂肪牛乳 2026-09-25 2026-10-15 48 20 28 '' 138
27 sku_k12 低脂肪牛乳 2026-09-25 2026-10-15 48 20 28 '' 120
28 sku_k13 ミルク 2026-09-25 2026-10-15 48 20 28 '' 260