different between heatmap and ocr output #1083
-
first, I want to say thank you for this awesome repo that you guys make is really wonderful. but I have some questions about the detection. I see some differences between heatmap and OCR output in huggingface space. as you can see in the heatmap they can detect all the words, but in OCR output there is some word that is not detected, thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Hi @RickyGunawan09 👋, Have you tested it with the last doctr release locally if the issue still exists ? (Because the HF Space demo runs on an older version of doctr) |
Beta Was this translation helpful? Give feedback.
-
@frgfm do you think we should pad inputs by default in the preprocessor if inputs are smaller as default size and afterwards scale the coords back to original? It seems to lead to better results in each case 🤔 |
Beta Was this translation helpful? Give feedback.
-
@felixdittrich92 I finally fix this using parameter preserve_aspect_ratio = True in ocrpredictor. if someone came across problem like this try using this param and see if this param fixes it or not. thank you 😄 |
Beta Was this translation helpful? Give feedback.
Hi @RickyGunawan09 👋,
thanks for reporting this 👍
Have you tested it with the last doctr release locally if the issue still exists ? (Because the HF Space demo runs on an older version of doctr)
If it would be possible could you share the original image ? So we could identify the problem on our own :)