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

Local OCR (supersedes #119, fixes #116) #136

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

kathawala
Copy link

@kathawala kathawala commented Aug 24, 2020

Adds the ability for users to use a local (i.e. on-machine) OCR engine to drive OCR related functions (extract_text_ocr / find_text_on_screen_ocr / etc). This is for the case in which a user has not signed up on the Automagica Portal but still wishes to use OCR functionality (previously an error was thrown in this case).

This requires local installation of an OCR engine (namely tesseract), and as such a new dependency is added (pytesseract a library for interfacing with tesseract).

Because there is an extra step to get this working, I've also added instructions on how to do this in the docs.

I've tested this on Linux (latest Ubuntu and Arch) and Windows and Mac. If there are tests set up, I'd be happy to write tests for this functionality (but I couldn't find any tests).

I have also signed and sent the contributors agreement

Supersedes #119

Fixes #116

@kathawala kathawala changed the title Local ocr Local OCR (supersedes #119, fixes #116) Aug 24, 2020
Farhan Kathawala added 5 commits August 30, 2020 23:08
Currently, the OCR portion works on Linux. Requires local installation
of `tesseract` package (an OCR utility and dependency for `pytesseract`)

Still needs further testing on Windows, Mac OS X, other Linux distros.

Also needs documentation about how to enable local OCR capabilities.
There is also a new extra parameter (scale_up) for OCR related functions.
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

Successfully merging this pull request may close these issues.

Add local OCR rather than only through the Automagica Portal service
1 participant