Closed fxmarty closed 3 years ago
add_margin
is an extra margin in addition to the output from text detection. Text detection is deep learning-based algorithm and may introduce its own small margin.
I see, seems very reasonable. Thank you for your help.
When setting
add_margin=0
(not sure about other cases), some boxes detected witheasyocr.detect
still have a border while some don't, as illustrated below.How to reproduce
Download
Execute
Then execute
and
This returns
and
As you can see, the first one has borders, while the second do not.
I guess it is not too big of an issue, and it can be solved manually, but still, it is not expected behavior here.
Thank you!