Comments (12)
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.
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.
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.
Thanks for your help!
Original comment by [email protected]
on 22 Mar 2013 at 6:18
from python-tesseract.
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.
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.
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.
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.
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.
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.
The problem should be fixed .
Original comment by [email protected]
on 25 Apr 2014 at 4:36
- Changed state: Done
from python-tesseract.
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)
- fails on python build HOT 5
- Import Error (DLL load failed: The specified module could not be found) HOT 18
- ..._tesseract.so: undefined symbol: _ZN9tesseract16TessTextRendererC1Ev HOT 4
- APP CRASH HOT 2
- Leptonica 1.71 breaks python-tesseract 0.9-0.3 HOT 5
- Python-tesseract on raspberry pi HOT 24
- 64bit crashes Python HOT 4
- Executing the #ri.BoundingBox(level,x1,y1,x2,y2) command for either words or characters
- Building on Centos 7: invalid conversion from ‘const Pix*’ to ‘Pix*’ HOT 9
- Parameter Requirment HOT 1
- self training combine multi-box HOT 1
- Memory leak HOT 3
- Will it be on PyPI? HOT 1
- import error on Mac OS X 10.9.5 HOT 13
- tesseract has no attribute pixRead HOT 10
- python-tesseract for python 3.x version windows 64b HOT 3
- Fails to compile on Ubuntu Trusty with OpenCV 3
- cvSetData error on import HOT 2
- Can't install on OSX
- python compatibility to win7 not avalaible in win7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-tesseract.