diff --git a/backend/visual_qc_apps/text_readability/app.py b/backend/visual_qc_apps/text_readability/app.py index 675abd1..5d282b8 100755 --- a/backend/visual_qc_apps/text_readability/app.py +++ b/backend/visual_qc_apps/text_readability/app.py @@ -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"]