UB-Mannheim / tesseract

Tesseract Open Source OCR Engine (main repository)
Apache License 2.0
3.07k stars 434 forks source link

how to build a alone tesseract5 cli use for windows xp #71

Closed WingDust closed 1 month ago

WingDust commented 1 year ago

Current Behavior

how to build a alone tesseract5 cli use for windows xp Can get me a tutorial

Expected Behavior

No response

Suggested Fix

No response

tesseract -v

No response

Operating System

No response

Other Operating System

No response

uname -a

No response

Compiler

No response

CPU

No response

Virtualization / Containers

No response

Other Information

No response

stweil commented 1 year ago

Did you try the latest installer? Maybe it still works with Windows XP (although that is no longer a supported Windows version).

WingDust commented 1 year ago

@stweil https://digi.bib.uni-mannheim.de/tesseract/tesseract-ocr-w32-setup-v5.0.0-alpha.20190623.exe i install it in windows xp but run tesseract.exe f.png a -c dotproduct=sse get

image

if i try tesseract.exe f.png a a.txt will be nothing image

stweil commented 1 year ago

That version works as expected even on Windows XP. Tesseract does not always find text, especially for images with a single word. Did you also try the latest Tesseract version?

WingDust commented 1 year ago

@stweil which version

stweil commented 1 year ago

The latest version is 5.3.1. See https://github.com/UB-Mannheim/tesseract/wiki/.

WingDust commented 1 year ago

@stweil for w32 only have 5.3.0

WingDust commented 1 year ago

@stweil I try https://digi.bib.uni-mannheim.de/tesseract/tesseract-ocr-w32-setup-5.3.0.20221222.exe ,but get

GetTickCount64 error with KERNEL32.dll image

WingDust commented 1 year ago

@stweil can help ?

stweil commented 1 year ago

I am afraid no. Windows XP only works with old versions of Tesseract.

luweitest commented 5 months ago

I tried all builds from version 3 to 5, none of them works in my WinXP SP3. version 3.05 displays error of NtCreateFile API failure, which is typical for non-XP exe: 1 And the newest 5.3 displays a info "Ctrl+C to exit". Only version 3.02 build of sourceforge from original tesseract-OCR works for me.

HomeStayMom commented 1 month ago

If you're having trouble installing tesseract-ocr-w64-setup-5.4.0.20240606 on Windows 11, there's an essential step after downloading: you must add the Tesseract path to the system environment variables. Normally, you'd locate the executable, typically at "C:\Program Files\Tesseract-OCR\tesseract.exe", and add its directory to the PATH. On Windows 11, you need to add "C:\Program Files\Tesseract-OCR" to your system environment variables. After this, open a new Command Prompt window and run tesseract --help to confirm everything is set up correctly. Hope this helps!

stweil commented 1 month ago

That's not necessary. If you open the Tesseract command line, the PATH is set automatically.

I try to avoid setting the global PATH environment variable because it slows down each program execution. And there is also a length limit for it.

stweil commented 1 month ago

I close this issue because there is nothing we can do.