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

Question #115

Closed
apiszcz opened this issue Jul 11, 2020 · 7 comments
Closed

Question #115

apiszcz opened this issue Jul 11, 2020 · 7 comments
Labels
PR WELCOME need contribution from coder

Comments

@apiszcz
Copy link

apiszcz commented Jul 11, 2020

If multiple languages are passed fin for detection ['a', 'b', 'c']
Is it possible to get the detected language type returned in the the readtext response?

@rkcosmos
Copy link
Contributor

Not quite understand. Do you want a feature for detecting language?

@apiszcz
Copy link
Author

apiszcz commented Jul 12, 2020

Sorry, probably my lack of understanding. When initializing easyocr a list of languages are supplied
reader = easyocr.Reader(['sk','en'])
The result set provides the bounding box, UNICODE text and score. I am wondering if there are multiple languages specified in the constructor if the language used for the detection record should be in the result.

NOW:
bounding box, UNICODE text, score

MAYBE?
bounding box, UNICODE text, score, language (e.g. 'en')

Language detection should not be required since we now what detector is being applied to the image (I think).

Thanks.

@rkcosmos
Copy link
Contributor

Sure, it's easily doable by checking UNICODE text against characters in each language. I will add 'PR WELCOME' tag to this and wait for coder who want to contribute.

@rkcosmos rkcosmos added the PR WELCOME need contribution from coder label Jul 13, 2020
@apiszcz
Copy link
Author

apiszcz commented Jul 13, 2020

chardet may be related.

https://pypi.org/project/chardet/

@Biswasahu7
Copy link

When it reading from image every time it is reading 1 to i else |. Please advice how we can improve it

@arkya-art
Copy link
Contributor

Can I take up this issue and work on it? @rkcosmos can you guide me if possible for this

arkya-art added a commit to arkya-art/EasyOCR that referenced this issue Aug 26, 2021
rkcosmos added a commit that referenced this issue Sep 11, 2021
@rkcosmos rkcosmos closed this as completed Mar 2, 2022
@rokopi-byte
Copy link

Why has been marked has solved? There are several issues like #683 and this #572 . The function simply does not work because it looks for txt files in a folder (hardcoded) named characters. Who is in charge of creating those txt files and what sould they contain?

I made a small colab here

In addition.. looking at the code it looks like it's only able to deal with chinese and english.. maybe we can just polyglot for that ? It works pretty wel..

thuc-moreh pushed a commit to moreh-dev/EasyOCR that referenced this issue Jul 5, 2023
thuc-moreh pushed a commit to moreh-dev/EasyOCR that referenced this issue Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR WELCOME need contribution from coder
Projects
None yet
Development

No branches or pull requests

5 participants