Add text-over-product overlap detection to text_readability prompt

Adds critical check for marketing text overlapping product or product
packaging (e.g., translucent containers, decorative elements). Text
overlapping product area caps score at 4-5/10, triggering Fail under
L'Oreal's strict grading override.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
nickviljoen 2026-04-09 10:19:48 +02:00
parent ff112c830e
commit fe22f0e7b9

View file

@ -43,6 +43,7 @@ If OCR LAYOUT MEASUREMENTS are provided at the end of this prompt, use the compu
c. Elements obscuring or partially covering marketing text
d. Text extending beyond visible boundaries or cropped by edges
e. Text placed over complex/busy backgrounds without proper contrast treatment (shadow, overlay, box, etc.)
f. TEXT OVERLAPPING PRODUCT OR PRODUCT PACKAGING (CRITICAL): Marketing text (headlines, body copy, titles) must NOT overlap or cover the product, its packaging, or any surrounding product elements (e.g., translucent packaging, decorative product containers, product silhouettes). Text should be positioned with clear separation from the product area. If marketing text extends over or sits on top of any part of the product or its surrounding packaging, this is a significant layout flaw score 4-5/10 maximum. Compare: text placed cleanly beside or around the product (correct) vs text that visually overlaps any product element (incorrect).
=== STEP 3: DETECT HIDDEN OR INVISIBLE TEXT (CRITICAL) ===
4. Actively scan for text that may be INVISIBLE or HIDDEN due to colour matching:
@ -75,7 +76,7 @@ The key distinction: a product-only shot has NO SPACE or LAYOUT designed for mar
=== PASS/FAIL CRITERIA ===
- "Pass" if ALL marketing text elements are clear, readable, properly spaced, and no hidden/invisible text detected
- "Fail" if ANY marketing text is difficult to read, overlapping, obscured, poorly contrasted, hidden/invisible, or missing
- "Fail" if ANY marketing text is difficult to read, overlapping, obscured, poorly contrasted, hidden/invisible, missing, OR overlapping the product/product packaging
YOUR OUTPUT MUST BE a JSON code block:
{
@ -83,6 +84,7 @@ YOUR OUTPUT MUST BE a JSON code block:
"readability_score": "High", "Medium", or "Low",
"text_elements_found": ["List each marketing text element you identified"],
"hidden_text_check": "Pass" or "Fail" or "Suspected — [describe what appears hidden]",
"text_product_overlap": "Pass" or "Fail — [describe which text overlaps which product element]",
"issues_found": ["List specific problems found"],
"score": 1-10,
"recommendations": ["Recommendation 1", "Recommendation 2"]