senthilmm / python-tesseract

Automatically exported from code.google.com/p/python-tesseract
0 stars 0 forks source link

64bit crashes Python #61

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I use 64bit Python 2.7, so I downloaded and installed provided 64bit Windows 
build (which BTW is dead link, but updated version can be found on bitbucket)

1. Running the first example, it crashes Python (as in attachment)
So it wants me to put it in my %TESSDATA_PREFIX% to be able to load lang data 
and load it manually? - I just wont do that.

2. 64bit Windows installer is of very low quality, not just that all properties 
are set to some default values, but it ships with cv2 module (13MB) without 
even noticing me about it. Then _tesseract.pyd links to opengl32.dll - but why?

3. Doesn't it support numpy arrays? Can't it read PIL image? Is deprecated cv 
api and buffer io only way to load image data?

4. Current state of repository defeats my will to even try to build manually.

Cheers

Original issue reported on code.google.com by klo...@gmail.com on 18 Jul 2014 at 10:48

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
> So it wants me to put it in my %TESSDATA_PREFIX% to be able to load lang data 
and load it manually? - I just wont do that.

Actually above wont work. Instead use this if needed:

import os
os.chdir(os.path.dirname(os.environ['TESSDATA_PREFIX']))

before doing any calls to tesseract.

Original comment by klo...@gmail.com on 19 Jul 2014 at 12:38

GoogleCodeExporter commented 9 years ago
or put tessdata folder inside the program folder

Original comment by FreeT...@gmail.com on 19 Jul 2014 at 6:30

GoogleCodeExporter commented 9 years ago
how to call this in a program?

Original comment by becker.b...@gmail.com on 4 Dec 2014 at 8:11