Comments (3)
Sounds like this line is returning None:
engine = ocr.OcrEngine.try_create_from_user_profile_languages()
This is a Windows API. You should be able to reproduce this by running the following in a Python REPL:
import winrt
import winrt.windows.media.ocr as ocr
engine = ocr.OcrEngine.try_create_from_user_profile_languages()
engine
If engine is None, then that confirms that this is the problem. I'm not sure why this would be. The documentation indicates that this could be because your configured language is not supported. Are you using some language other than English?
from screen-ocr.
Issue solved. The problem was in language pack.
For any one who faces this issue:
- Settings-> Time & Languages -> Languages
- select your language -> options
- Download speech, regional format, handwriting for your languages.
from screen-ocr.
Thank you for debugging this! Improved the error message to point here.
from screen-ocr.
Related Issues (14)
- WARNING: screen-ocr 0.1.0 does not provide the extra 'winrt' HOT 6
- ImportError: numpy.core.multiarray failed to import HOT 2
- Define to recognize only latin characters/words HOT 8
- Newer library awailable: winsdk HOT 2
- Screen-OCR Documentation Need HOT 6
- This module just OCRs the whole screen HOT 2
- winrt doesn't work well with a single digit? HOT 1
- Documentation missing. HOT 1
- Two different versions of 'screen_ocr' are downloaded during pip install HOT 5
- Multi-monitor support HOT 6
- Documentation Need HOT 4
- "No module named 'winrt'" regardless of backend HOT 1
- just select a rect rather than use radius HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from screen-ocr.