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

Use Tesseract 5.4.1 api instead of 5.3.3 command line (pass bmp in memory, not in files) #8853

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

Conversation

ArturAlekseev
Copy link

Change TesseractDownloadUrl in DownloadTesseract5.cs to: "http://www.arturalekseev.ru/Files/tesseract541.zip" before compile (move it to your/github location).
Compiled exe for testing: https://disk.yandex.ru/d/9tllVB6vYem46w

Tesseract 5.3.3 command line distribution is replaced with Tesseract 5.4.1 dlls.
5.4.1 dlls are compiled using "vcpkg install tesseract:x64-windows" method from here: https://tesseract-ocr.github.io/tessdoc/Compiling.html#windows.
Additional files are:
* "version.txt" that is used for version check. So we can replace old version with new on update to the same folder Tesseract5 (you can remove 5.3.3 version from User\AppData\Roaming\Subtitle Edit).
* TesseractApi.dll - custom dll with minimum functionality from https://tesseract-ocr.github.io/tessdoc/APIExample.html first example written as exported functions.

You should change TesseractDownloadUrl in DownloadTesseract5.cs before compile.
@ArturAlekseev
Copy link
Author

ArturAlekseev commented Sep 30, 2024

I'v updated zip file with tesseract (not all dlls were there). It worked for me because I had tesseract 5.4.1 installed. Now I don't and you don't need to have it installed. If anyone can compile tesseract version 3 to dll with lib file. I can make changes for version 3 too.

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.

1 participant