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.
This commit is contained in:
parent
443a1957a9
commit
68061635d9
63 changed files with 63861 additions and 3 deletions
14
recognization/data/packshots/source/ATTRIBUTION.json
Normal file
14
recognization/data/packshots/source/ATTRIBUTION.json
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"sku_l04": {
|
||||
"url": "https://m.media-amazon.com/images/I/61yWDtDjDuL.jpg",
|
||||
"product": "やまや めんたいマヨネーズタイプ 200g",
|
||||
"source_page": "https://www.amazon.co.jp/dp/B0197VWHRG",
|
||||
"notes": "Exact 200g product; major-retailer pack shot. Manufacturer: 株式会社やまやコミュニケーションズ."
|
||||
},
|
||||
"sku_l07": {
|
||||
"url": "https://m.media-amazon.com/images/I/91ugfvmpCvL.jpg",
|
||||
"product": "丸和油脂 ラッキーマヨネーズ 200g",
|
||||
"source_page": "https://www.amazon.co.jp/dp/B0BHQW3VVP",
|
||||
"notes": "Exact 200g product; major-retailer pack shot. JAN/part number 4978931401615, corroborated by Yahoo Shopping listing."
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue