- Newest
- Most votes
- Most comments
Hi, thank you for the feedback. Here is the PDF link.
https://drive.google.com/file/d/16OU0sjhid7sbV_uNUVPQZoa9fiN0MJTc/view?usp=sharing
I think the issue might be the text is too small for it to be read. Thank you!
answered a year ago
The "box" symbols (■■■■) in your OCR output are likely due to several factors when processing multilingual content, particularly Chinese characters.
When Amazon Nova or other foundation models encounter characters they cannot confidently recognize or that fall outside their training data, they may output placeholder symbols like boxes. This is especially common with:
- Complex or stylized Chinese fonts
- Low-resolution or low-contrast text
- Characters that might be rare or uncommon in the model's training data
For improving multilingual OCR quality with Amazon Nova Pro, consider these approaches:
Image preprocessing:
- Increase contrast and resolution of your images before sending to the model
- Convert images to grayscale to reduce complexity
- Ensure proper DPI (300+ recommended for OCR)
- Consider image denoising if the PDF contains artifacts
Prompt engineering:
- Be more specific about the languages in your prompt, e.g., "OCR this image and extract all Chinese and English text"
- You might try instructing the model to transliterate characters it's unsure about rather than using placeholder boxes
Alternative approaches:
- Amazon Textract might provide better results for document-based OCR tasks, especially when combined with custom vocabulary features
- For mixed-language documents, you could try processing the document twice - once optimized for English and once for Chinese - then merge the results
The issue isn't with your JSON payload structure or the basic approach, but rather with the inherent challenges of multilingual OCR, particularly with Chinese characters that have complex structures. Amazon Nova Pro does support multilingual OCR, but performance can vary based on font style, image quality, and character complexity.
For dense or stylized Chinese text, you might need to segment the document and process different regions with specialized approaches or consider using language-specific OCR solutions in combination with foundation models.
Sources
Using Amazon Nova for Multimodal RAG - Amazon Nova
Nova Lite Batch Inference Error: Document Format | AWS re:Post
Hi,
My personal experience is that you have to "reduce the complexity" for sophitiscated and large texts. Basically, you have to divide in chunks (pages or less) instead of giving the full PDF. In the case of Chinese characters, some preprocessing may help: contrast improvement, etc.
If possible (i.e. not confidential), could you share a couple ot those pdfs to allow more precise guidance ?
Best,
Didier
Relevant content
asked 3 years ago

Your link doesn't seem to work. To confirm your diagnosis, you can submit just an image to Nova with a zoomed cropping of the small chars. Best, DIdier