Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qusetion about these two parameters' difference: text_threshold and low_text #1013

Open
JeremyGe07 opened this issue May 10, 2023 · 2 comments

Comments

@JeremyGe07
Copy link

JeremyGe07 commented May 10, 2023

I have a question regarding the parameters of the readtext method for Text Detection. There are two parameters, text_threshold and low_text, described as follows:

text_threshold (float, default = 0.7): Text confidence threshold.
low_text (float, default = 0.4): Text low-bound score.

My intuition is that the value of text_threshold should be higher than the value of low_text. Since the confidence scores of the text regions that to be saved are already higher than text_threshold, they should certainly be higher than low_text as well. I'm not quite clear on the distinction between these two parameters. Thanks for your answer.

@poojatambe
Copy link

Hi, same issue facing.
There is no clear idea about low_text (Text low-bound score) indicates. Is it text detection minimum confidence value?

By changing values of low_text and text_threshold the OCR output changes. How to choose correct values to get correct OCR detection on different resolution images and small text size?

@jepperaskdk
Copy link

I don't know what it represents, but it is being used as a threshold here:
https://github.com/JaidedAI/EasyOCR/blob/master/easyocr/craft_utils.py#L27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants