- Newest
- Most votes
- Most comments
The "box" symbols (□/■■■) in your OCR output when processing Chinese text are likely due to several factors related to both Amazon Nova's capabilities and the nature of the content you're processing.
Amazon Nova does have some limitations with multilingual image understanding. The models can struggle with multilingual images, particularly with complex scripts like Chinese characters. This is especially true when:
- The text is too small in the images - which appears to be the case in your shared PDF
- The Chinese characters have complex structures or stylized fonts
- There's low contrast between text and background
- The characters might be rare or uncommon in the model's training data
These box symbols typically appear when the OCR model cannot confidently recognize certain characters and outputs placeholder symbols instead.
To improve your results:
Image preprocessing recommendations:
- Increase the text size by cropping to relevant sections while preserving context
- Convert images to grayscale to reduce complexity
- Enhance contrast to make text more distinct
- Consider increasing resolution beyond 300 DPI (try 450-600 DPI)
- Apply image denoising if the PDF contains artifacts
Prompt engineering:
- Be more specific about languages in your prompt (explicitly mention Chinese and English)
- You might try instructing the model to transliterate characters it's unsure about rather than using placeholders
Alternative approaches:
- Process the document in smaller chunks rather than full pages
- Consider using Amazon Textract as an alternative, which might handle multilingual OCR differently
For your specific PDF, the text appears quite small, which is likely a major factor in the OCR challenges. Increasing the relative size of the text regions before processing could significantly improve results.
Sources
Why does my Bedrock Nova OCR still output “box” symbols instead of clean text in rebuilt PDFs? | AWS re:Post
Image understanding limitations - Amazon Nova
answered a year ago
Relevant content
asked 5 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 17 days ago
