Closed asennoussi closed 10 years ago
1) Do you use Python 3 or Python 2 ? 2) Is your installation of Pyocr up-to-date ? (print(pyocr.VERSION) should display "(0, 2, 2)")
I'm using Python 2.7.3 I have just installed pyocr 0.2.2
Hm, weird. Works for me.
1) How did you install Pyocr exactly? 2) Which OS / GNU/Linux distribution do you use ?
When I use the command print(pyocr.VERSION) it said AttributeError: 'module' object has no attribute 'VERSION' I'm using Debian
I will try to reinstall it and I'll be back to you
What you can try also:
from pyocr import pyocr
But you shouldn't have to import it this way.
Reinstallation made it work correctly ! but recognition for numbers is really poor though , it reads 6 as a 5 , can I improve the results ?
My example
Recognition quality depends on a lot of things but not Pyocr itself, so I won't be able to help you much for that. Maybe you can try training Tesseract for the texts you're trying to make it read. I'm just not how you can integrate your training easily with Pyocr.
Good luck.
Hello guys ! I've created a test file in a separate folder : my code
and I get this error message
any Idea ?