EasyOCR icon indicating copy to clipboard operation
EasyOCR copied to clipboard

It does not see the upper most line of text.

Open PietFourie opened this issue 7 months ago • 2 comments

If I OCR the attached image it does not see or orc the top line. It just ignores it. Maybe there is a "margin" problem?

Image

PietFourie avatar May 24 '25 14:05 PietFourie

Can you send your code?

populated avatar Jun 04 '25 12:06 populated

Working for me:

import easyocr
reader = easyocr.Reader(['en'], verbose=False, gpu=False) # this needs to run only once to load the model into memory
result = reader.readtext('doesnt_see_margin_text.png', detail=0)
print(result)

Output:

['Birgit Pfitzmann, Christoph Auer; Michele Dolli, Ahmed $ Nassar; and Peter', 'Staar: 2022. DocLayNet: A Large Human-Annotated Dataset for Document-', 'Layout Analysis', 'Proceedings of the 28th ACM SIGKDD Conference on', 'Knowledge Discovery and Data', "(KDD '22), August 14-18, 2022,", 'Wash', 'ington, DC; USA ACM, New York', 'NY', 'USA,', 'pages https:/ /doi.org/10.1145', '3534678.3539043', "Mining'"]

brownsloth avatar Jun 21 '25 15:06 brownsloth