Giter VIP home page Giter VIP logo

Comments (7)

nijel avatar nijel commented on May 26, 2024 1

Neither of #331, #330, or #329 should change the behavior.

Anyway, I don't think the CI workflow builds Windows wheels, so I don't see how --no-binary could make a difference there.

For Linux, the default tesseract prefix seems to be /usr/local while distros will use /usr as default, so using system library could behave differently here. As the changed behavior is observed since 2.6.1 (introduction of binary wheels), so may be broken for the binary wheels since the beginning and changing the default prefix here will fix that:

PREFIX="${PREFIX:-/usr/local}"

I actually remember seeing this issue after upgrading to 2.6.1, but as we wanted to introduce dynamic downloading of the trained data anyway, this was just a reason to do that upon the upgrade without investigating the root cause.

from tesserocr.

darnox avatar darnox commented on May 26, 2024

The same is true on Linux. It has been working fine with tesserocr==2.6.0, but since tesserocr==2.6.1, the package has stopped discovering the default tessdata paths.

from tesserocr.

sirfz avatar sirfz commented on May 26, 2024

tesserocr relies on tesseract's GetDatapath function to get the default data path and doesn't make any assumptions itself. Not sure if it's an issue with the way the CI binary is built or with the newer tesseract versions. Did you try pip install --no-binary tesserocr tesserocr and see if you get the same behavior?

from tesserocr.

darnox avatar darnox commented on May 26, 2024

Indeed, it's seems like a problem with the binary. Installation with pip install --no-binary tesserocr tesserocr works just fine, even on the newest version of tesserocr.

from tesserocr.

sirfz avatar sirfz commented on May 26, 2024

What version of tesseract did you build against? (tesserocr.tesseract_version()), v2.6.2 binary wheels are built against 5.3.3

from tesserocr.

darnox avatar darnox commented on May 26, 2024
tesseract 5.3.2
 leptonica-1.79.0
  libgif 5.1.4 : libjpeg 8d (libjpeg-turbo 2.0.3) : libpng 1.6.37 : libtiff 4.1.0 : zlib 1.2.11 : libwebp 0.6.1 : libopenjp2 2.3.1

from tesserocr.

sirfz avatar sirfz commented on May 26, 2024

@nijel do you have any idea what could cause the difference in behavior by the binaries built in our CI pipeline?

from tesserocr.

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.