Comments (7)
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:
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.
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.
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.
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.
What version of tesseract did you build against? (tesserocr.tesseract_version()
), v2.6.2 binary wheels are built against 5.3.3
from tesserocr.
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.
@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)
- macos metal: #include "leptonica/allheaders.h" HOT 12
- Failure to build with python:3.11-buster HOT 2
- Failed to init API, possibly an invalid tessdata path: ./ HOT 3
- ImportError: dlopen HOT 4
- Publish wheels for aarch64 HOT 2
- symbol not found in flat namespace HOT 7
- `GetTextDirection` + `MapWordConfidences` crash python HOT 2
- in loop `GetChoiceIterator` crashs python if result is empty
- `MapWordConfidences` throw 'No text returned' when the result is empty
- ImportError: DLL load failed while importing tesserocr: The specified module could not be found. HOT 6
- Side effects of running tesserocr-recognize as a worker HOT 1
- Can't directly use image_to_text for invalid path for tessdata. HOT 2
- Segfault when used with PyMuPDF (aka fitz) HOT 1
- tesserocr.tesseract_version() Missing Libaries HOT 2
- can't ocr anything with 2.6.2 HOT 2
- Missing support for Tesseract5? HOT 18
- No definition found for "tesserocr" HOT 2
- user patterns are not considered HOT 4
- does not build on current Tesseract anymore HOT 8
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 tesserocr.