Sarkal / python-tesseract

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

the program crashed sometimes in win vista #31

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. install the py-tesseract lib
2. copy the sample
3. run

What is the expected output? What do you see instead?
it works sometimes. but it crashed most times.
"A problem caused the program to stop working correctly. Please close the 
program."

What version of the product are you using? On what operating system?
python-tesseract-0.7.6.win32-py2.7.exe
my os is win vista.

Please provide any additional information below.

it seems an issue which related to memory leak.
did we make a clean up in the back ground?

code:

import tesseract

api = tesseract.TessBaseAPI()
api.Init(".", "eng", tesseract.OEM_DEFAULT)
api.SetVariable("tessedit_char_whitelist", "0123456789")
api.SetPageSegMode(tesseract.PSM_AUTO)
print tesseract.ProcessPagesWrapper('rand.png',api)

Original issue reported on code.google.com by matt.sou...@gmail.com on 6 Oct 2012 at 2:56

GoogleCodeExporter commented 8 years ago
I'm having this same problem with a Windows 7 machine. The problem seems to be 
on the "ProcessPagesWrapper" function.

Original comment by anilton....@gmail.com on 28 Nov 2012 at 4:39

GoogleCodeExporter commented 8 years ago
try using tesseract.ProcessPagesBuffer

Original comment by FreeT...@gmail.com on 4 Dec 2012 at 2:52

GoogleCodeExporter commented 8 years ago
set python.exe to be compatible to "windows xp service pack 3" 

Original comment by FreeT...@gmail.com on 7 Jan 2013 at 8:25

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by FreeT...@gmail.com on 24 Jan 2013 at 6:00