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:
parent
383ff9cf2d
commit
0e23425ef0
74 changed files with 158 additions and 767 deletions
|
|
@ -36,22 +36,23 @@ MAX_RETRIES = 4
|
|||
# Shelf photos of the categories the catalog covers: drinks and dairy, rice
|
||||
# crackers and snacks, sauces and condiments.
|
||||
QUERIES = [
|
||||
"supermarket shelf Japan",
|
||||
"Japanese supermarket beverages shelf",
|
||||
"Japanese convenience store drink shelf",
|
||||
"milk shelf Japan",
|
||||
"drink shelf Japan",
|
||||
"Japanese supermarket snack shelf",
|
||||
"rice crackers Japan shop",
|
||||
"せんべい 売り場",
|
||||
"飲料 棚 スーパー",
|
||||
"牛乳 棚",
|
||||
"スーパーマーケット 陳列",
|
||||
"Japanese grocery store interior",
|
||||
"Japanese supermarket dairy",
|
||||
"菓子 棚",
|
||||
"supermarket drinks Japan",
|
||||
"Japanese supermarket soft drinks",
|
||||
# the catalog's own products first: drinks, dairy, rice crackers
|
||||
"野菜生活100",
|
||||
"伊藤園 1日分の野菜",
|
||||
"Japanese vegetable juice shelf",
|
||||
"Japanese milk cartons supermarket",
|
||||
"meiji oishii milk",
|
||||
"せんべい 棚",
|
||||
"Japanese rice cracker shop display",
|
||||
"Japanese confectionery shelf",
|
||||
"Japanese supermarket beverage aisle",
|
||||
"Japanese convenience store refrigerator drinks",
|
||||
"Japanese supermarket dairy case",
|
||||
"スーパー 飲料 陳列",
|
||||
"お菓子 売り場",
|
||||
"Japanese snack aisle supermarket",
|
||||
"Japanese supermarket shelves drinks bottles",
|
||||
"Japanese supermarket interior shelves",
|
||||
]
|
||||
|
||||
PERMISSIVE = ("cc0", "cc-by", "cc by", "public domain", "pd-", "attribution")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue