Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update libtesseract-dev from 4.1.1 to 5.3.0 when building libOpenCvSharpEx.so in Ubuntu 20 or 22.04 #1543

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

n0099
Copy link
Contributor

@n0099 n0099 commented Mar 8, 2023

#1448 (comment):
libtesseract-dev from the default source of Ubuntu 22.04 and 20.04 is still in 4.1.1, and the latest version provided by @AlexanderP 's PPA is 5.3.0

Note any end user who using libOpenCvSharpEx.so will have to install the corresponding version of libtesseract-dev from PAA too even if they haven't any usages on OpenCvSharp.Text.OCRTesseract since libtesseract.so.5 is not statically linked into libOpenCvSharpEx.so.
I'm not touching windows build since not familiar with MSVC.

This also fixes #881

@n0099
Copy link
Contributor Author

n0099 commented Mar 9, 2023

I don't know why some critical symbol is missing in GitHub Actions environment, it just works fine for me when using Dockerfile to build.
https://github.com/shimat/opencvsharp/commit/8501d7dabb3a41caad3d82b3f7196632881f6cf1/checks/11862616015/logs

2023-03-08T20:26:09.3772265Z /usr/bin/ld: .//libOpenCvSharpExtern.so: undefined reference to `tesseract::TessBaseAPI::Recognize(ETEXT_DESC*)'
2023-03-08T20:26:09.3772684Z /usr/bin/ld: .//libOpenCvSharpExtern.so: undefined reference to `tesseract::TessBaseAPI::Init(char const*, char const*, tesseract::OcrEngineMode, char**, int, GenericVector<STRING> const*, GenericVector<STRING> const*, bool)'
2023-03-08T20:26:09.3772813Z collect2: error: ld returned 1 exit status
2023-03-08T20:26:09.3784329Z ##[error]Process completed with exit code 1.
2023-03-08T20:26:09.3853002Z Post job cleanup.

@netcorefan1
Copy link

Any chance to get this update for Windows too? I'm trying to compile the wrapper, but without success because the library is old and the referenced packages have been deleted from mirrors.
Although I don't know if and how many other dependencies could fails when trying to link a build done through the official vcpkg repo, the latest tesseract could at least fix a good amount.

Copy link

stale bot commented Mar 17, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Mar 17, 2024
@n0099
Copy link
Contributor Author

n0099 commented Mar 17, 2024

up

@stale stale bot removed the wontfix label Mar 17, 2024
@fpellet
Copy link

fpellet commented Mar 28, 2024

@shimat how can i help merge this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OCR Tesseract: "Warning: Invalid resolution 0 dpi. Using 70 instead."
4 participants