Giter Club home page Giter Club logo

Comments (12)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 24, 2024
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 [email protected] on 22 Mar 2013 at 4:53

from python-tesseract.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 24, 2024
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 [email protected] on 22 Mar 2013 at 5:53

Attachments:

from python-tesseract.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 24, 2024
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 [email protected] on 22 Mar 2013 at 6:08

from python-tesseract.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 24, 2024
Thanks for your help!

Original comment by [email protected] on 22 Mar 2013 at 6:18

from python-tesseract.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 24, 2024
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 [email protected] on 25 Mar 2013 at 2:13

from python-tesseract.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 24, 2024
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 [email protected] on 25 Mar 2013 at 8:47

Attachments:

from python-tesseract.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 24, 2024
Any news there? This is really annoying as long as it crashes python 
interpreter. Any ideas how to stop this?

Original comment by [email protected] on 9 Jun 2013 at 11:51

from python-tesseract.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 24, 2024
I continue to have this segmentation fault occur as well, is this project dead 
or is there some life still here?

Original comment by [email protected] on 25 Mar 2014 at 11:25

from python-tesseract.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 24, 2024
can you send me a sample code that could trigger the crash. Will look into it.

Original comment by [email protected] on 26 Mar 2014 at 12:50

from python-tesseract.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 24, 2024
Try this version pls
https://drive.google.com/file/d/0BxR8J6QWLdsVSVplcl8xQWZIUjg/edit?usp=sharing

Original comment by [email protected] on 23 Apr 2014 at 2:02

from python-tesseract.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 24, 2024
The problem should be fixed .

Original comment by [email protected] on 25 Apr 2014 at 4:36

  • Changed state: Done

from python-tesseract.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 24, 2024
Do you have any downloads for Windows with Python 2.7? I am having the same 
error.

Original comment by [email protected] on 28 Apr 2015 at 9:30

Attachments:

from python-tesseract.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.