-
Notifications
You must be signed in to change notification settings - Fork 7
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
Screen-OCR Documentation Need #15
Comments
You can pass any of the following keyword arguments to screen-ocr/screen_ocr/_screen_ocr.py Lines 93 to 102 in ef2dcd1
screen-ocr/screen_ocr/_screen_ocr.py Lines 166 to 174 in ef2dcd1
Please note that some of the arguments in the first set only apply to one backend or another. It is unclear from your question whether you plan to use winrt or tesseract -- you will need to choose one or the other, and the former only works on Windows. If you do want to use tesseract, currently there is no way to directly override the config that gets passed to pytesseract, although it wouldn't be too difficult to plumb this through if that's what you need. Here is where the call to pytesseract actually happens: screen-ocr/screen_ocr/_tesseract.py Lines 45 to 46 in ef2dcd1
|
Thank you for your answer. |
Got it. WinRT has very minimal configuration options: https://learn.microsoft.com/en-us/uwp/api/windows.media.ocr.ocrengine?view=winrt-22621 |
Thanks for your help. But I don't understand why it's not output in order. For example, a table consisting of rows and columns with +/- numbers, winrt printout later some columns are ahead of other numbers. The same image on the tesseract with block config parameter, it will be printout in order.. |
I'm assuming you are referring to the ordering in the screen-ocr/screen_ocr/_screen_ocr.py Lines 440 to 448 in ef2dcd1
If you want to do your own order, you are welcome to check the bounds of the OcrLines and concatenate these however you want, using a separate function. |
Thanks. :-) |
Hello?
I've encountered screen-ocr[winrt] and I'm going to try it.
like.. lang=language, psm=6..etc.. used by tesseract.. How do I set the config parameter with screen-ocr??
I want to control parameters that psm, lang... ect.
If the block area is recognized using ocr_reader.read_screen(area),
the string is not output continuously.
Depending on the +/- number value or color of the letter, the order is not continuous and the order is mixed up.
I want to solve this problem.
Like using config parameter in tesseract..
What is the definition of kwargs in create_quality_reader(cls, **kwargs)?
I'd appreciate it if you could show me an example of how to use it.
I'm asking because I can't figure it out even if I look at the example.
thank U.
The text was updated successfully, but these errors were encountered: