Closed GoogleCodeExporter closed 9 years ago
either memory leak or tesseract failed to parse the image.
Very likely be memory leak because you stated that retrying will just work.
If so, send me the source code and/or the images that caused the problem
Original comment by FreeT...@gmail.com
on 22 Mar 2013 at 4:53
Apparently tesseract failed to parse the image.
While saving some images for testing I found out that the script was always
failing on the same images. Images are from screen-shots so they seem to differ
slightly every time even though the script crops them exactly the same every
time.
I raised the contrast and now all the images pass. Still, if tesseract fails to
parse an image it exits with segmentation fault which isn't too nice.
I attached one image that fails.
Original comment by seppo.er...@gmail.com
on 22 Mar 2013 at 5:53
Attachments:
as stated in Example 3 on the frontpage
#### you may need to thicken the border in order to make tesseract feel happy
to ocr your image #####
Otherwise, you may need to use
try:
doSomething()
except:
pass
or
try:
doSomething()
except Exception:
pass
Original comment by FreeT...@gmail.com
on 22 Mar 2013 at 6:08
Thanks for your help!
Original comment by seppo.er...@gmail.com
on 22 Mar 2013 at 6:18
I have made some changes in the codes. Hope it will help prevent the
Segmentation fault from happening.
https://python-tesseract.googlecode.com/files/python-tesseract_0.8-1.7_amd64.deb
Original comment by FreeT...@gmail.com
on 25 Mar 2013 at 2:13
Still segfaults if tesseract cannot find anything from the image, same
backtrace. It is not bothering me too much any more since I found out that
using:
api.SetPageSegMode(tesseract.PSM_SINGLE_WORD)
instead of tesseract.PSM_AUTO greatly improves the detection rate. It can even
find the '0.25' in attached image even though the contrast is really poor.
BTW, 0.8-1.7 added opencv-2.4 as a dependency which is only available from
PPAs/experimental for Ubuntu/Debian.
Original comment by seppo.er...@gmail.com
on 25 Mar 2013 at 8:47
Attachments:
Any news there? This is really annoying as long as it crashes python
interpreter. Any ideas how to stop this?
Original comment by daniil...@gmail.com
on 9 Jun 2013 at 11:51
I continue to have this segmentation fault occur as well, is this project dead
or is there some life still here?
Original comment by dcfair...@gmail.com
on 25 Mar 2014 at 11:25
can you send me a sample code that could trigger the crash. Will look into it.
Original comment by FreeT...@gmail.com
on 26 Mar 2014 at 12:50
Try this version pls
https://drive.google.com/file/d/0BxR8J6QWLdsVSVplcl8xQWZIUjg/edit?usp=sharing
Original comment by FreeT...@gmail.com
on 23 Apr 2014 at 2:02
The problem should be fixed .
Original comment by FreeT...@gmail.com
on 25 Apr 2014 at 4:36
Original issue reported on code.google.com by
seppo.er...@gmail.com
on 22 Mar 2013 at 3:58