product-recognition-demo/recognization/data/packshots/source/ocr-reads.json
tngo 68061635d9 Enroll from a repo data dir; read packshots in every orientation
Two enrollment defects, both found by trying to enroll real packshots.

`rebuild_catalog.py` crashed on every successful run: the report referenced
`small` but the call to `below_pyramid_floor` was missing, so the pyramid-floor
check the enrollment protocol asks for never ran and the tool died with a
NameError after writing the catalog.

The name/OCR check read one orientation. A packshot whose identifying text runs
vertically - the やまや めんたいマヨネーズ image reads 明太手屋さんが only when
rotated - was refused as a mismatch, which is the worst failure this check has:
it rejects good data while claiming to validate it. `best_orientation_text`
tries all four right-angle rotations and picks the one that explains the most of
the catalog name, not the one that reads the most characters, because the
upright pass returns stray kana that concatenate longer than the real read.

The regression test goes through `audit`, not the helper: the bug was that
`audit` called a single-orientation read, and a helper unit test would have
passed on the broken code. Verified to fail before the fix and pass after.

Data now lives in the repo, not /tmp:

  data/packshots/source/   packshots as downloaded, with ATTRIBUTION.json
  data/evaluations/        per-session run artifacts, so a number in
                           DECISION.md traces to the run that produced it

sku_l09 is re-sourced at 1000x1000 from Matsukiyo's Rakuten image, replacing
the 305px view that the README documents as the reason l09 wins facings it
should not.
2026-09-29 02:33:47 +09:00

1 line
No EOL
1.3 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{"sku_l01.jpg": "卵を使って いない キューピーエッグケア e 乳成分 えび かに くるみ 特定原材料8品目不使用 そば 落花生 305g", "sku_l02.jpg": "機能性表示食品届出番号J1501 キューピー 血圧ケア アマニ油 マヨネーズ α-リノレン酸 商品中30% アマニ油配合 200g 食生活は、主食、主菜、副菜を基本に、食事のバランスを。", "sku_l03.jpg": "Spicy: 辛さとコクのおいしさ キューピー からしアヨネーズ ピリジと おいしい ® 200g", "sku_l05.jpg": "2つの製法で味わうコク コレステロール ゼロ キューピーゼロ ノンコレステロール カロリー 70第 当社マヨネーズ比 310g", "sku_l06.jpg": "機能性表示食品届出番号J1507 キューピー 内臓脂肪ケア フィツテ ローズヒップ由来 ティリロサイド 210g カロリー 50カット 兆社マヨネーズ比 食生活は、主食、主菜、副菜を基本に、食事のバランスを。", "sku_l09.jpg": "とれて3日以方の 各長算たまごとい。 ピュアセレクト コクうま カロリーカット 05 360g", "sku_l11.jpg": "キューピー New! 卵黄ならではのコクとうま味 ※写真はイメージです。 カロリー 50% カット 当社マヨネーズ比 ® 400g"}