Comments (8)
Confirmed. Since Tesseract 5.3.4, C++17 is required.
So in setup.py we should make another case distinction...
from tesserocr.
Are you sure your system is not miss configured and/or outdated? e.g. I did not see python 3.8 for a long time (actually 3.11 is already in bugfix stage).
I use tesserocr on windows, opensuse, rasberianpi and I do not remember problem regarding c++17.
Anyway #343 does no cause any harm.
from tesserocr.
@zdenop this has nothing to do with Python versions, obviously. (And no, Python 3.8 is not EOL just yet.)
As you well know, a C++17 compiler is required with Tesseract now. The Tesserocr build still only used C++11 setting. So even newer compilers would have misbehaved AFAIK.
from tesserocr.
@bertsky : I did not write Py3.8 is EOL. I asked if you can check that your system is not misconfigured or outdated.
Tesseract required c++17 for several years. AFAIK -std=c++17
is need only when your code is using c++17 features (as far as I see tesserocr does not)
Your issue claims "does not build on current Tesseract anymore" however github action run 5 months ago (for 2.6.2 release) states something else https://github.com/sirfz/tesserocr/actions/runs/6456160629 (yes also it build wheel for python8 without problem). So either we should improve github action or you should fix your system...
from tesserocr.
@zdenop the build status from 5 months ago is irrelevant. Up until a week ago, the CI would install Tesseract 5.3.3. As the issue says, this starts happening with 5.3.4. It's also happening with g++ 11.
@sirfz could you please make a new release on PyPI so installing tesserocr via pip works again?
from tesserocr.
There were no changes in tesseract or tesserocr runtime code regarding C++17 vs C++14 in the last months...
C++17 code is located in the training tools, which are not used in tesserocr. And yes it is there for more than a year so the build status from 5 months ago regarding your claim is relevant.
from tesserocr.
I understand from @zdenop that your issue was unrelated to the C++ version used to build tesserocr as the lib would still successfully compile with C++14.
In any case, I guess the change is welcome and v2.6.3 has been published on Pypi.
from tesserocr.
Yes, this change is ok (in line with the current Tesseract build where it is needed).
from tesserocr.
Related Issues (20)
- 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
- `GetDatapath` can't find the default path that tesseract should find on windows HOT 7
- `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
- Problem with API HOT 2
- Allow to show tesseract and leptonica messages (easily) HOT 2
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.