Git Product home page Git Product logo

Comments (8)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 27, 2024
This brings more problems than just installing.
APT says I have both python-tesseract and tesseract-ocr packages broken because 
the leptonica dependency, and even the system update wants to remove these 
packages because of it.
Running linux mint 12

Original comment by [email protected] on 9 Mar 2012 at 11:23

from python-tesseract.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 27, 2024
You're right actually, this is not a good solution. But it shows that the 
packages *could* easily depend on the stock libleptonica package and work.

What I ended up doing was patching the debs provided here to depend on 
libleptonica rather than leptonica.

To do that, run the following commands for each .deb file (replacing 
packagename below with the package name):

#extract package contents
dpkg-deb -x pkgname.deb pkgname;
#extract CONTROL file from deb
dpkg-deb --control pkgname.deb pkgname/DEBIAN;
#replace leptonica dependency with libleptonica
sed -i "s/leptonica/libleptonica (>= 1\.68)/g" pkgname/DEBIAN/control;
#rebuild package with correct dependencies
dpkg -b pkgname pkgname.deb;

that will give you nice deb packages depending on libleptonica rather than 
leptonica


Original comment by [email protected] on 9 Mar 2012 at 11:43

from python-tesseract.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 27, 2024
Works like a charm. Thanks a lot!

Original comment by [email protected] on 9 Mar 2012 at 3:44

from python-tesseract.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 27, 2024
Interesting workaround...

Anyhow, I have fixed the problem. 

Thanks anyway

Original comment by [email protected] on 12 Apr 2012 at 3:42

from python-tesseract.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 27, 2024
Interesting workaround...

Anyhow, I have fixed the problem. 

Thanks anyway

Original comment by [email protected] on 12 Apr 2012 at 3:42

from python-tesseract.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 27, 2024
Interesting workaround...

Anyhow, I have fixed the problem. 

Thanks anyway

Original comment by [email protected] on 12 Apr 2012 at 3:42

from python-tesseract.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 27, 2024
Interesting workaround...

Anyhow, I have fixed the problem. 

Thanks anyway

Original comment by [email protected] on 12 Apr 2012 at 3:42

from python-tesseract.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 27, 2024
Tesseract-ocr is now included in the download list
http://code.google.com/p/python-tesseract/downloads/list

Original comment by [email protected] on 12 Apr 2012 at 3:42

  • Changed state: Fixed

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.