Recent

Author Topic: New Tesseract4Delphi project  (Read 1007 times)

salvadordf

  • Jr. Member
  • **
  • Posts: 77
    • BriskBard
New Tesseract4Delphi project
« on: January 30, 2026, 06:42:07 pm »
Hi,

I just released the Tesseract4Delphi project at GitHub.

Tesseract4Delphi uses the Tesseract project to recognize text in images (OCR) and it's based in the TTesseractOCR4 project made by Damian Woroch.

It's updated to the latest Tesseract version 5.5.2. The 32 bit and 64 bit binaries are included.

It's required to install the Microsoft Visual C++ 2017 Redistributable package.

At this moment it only has a simple OCR demo for Windows but my intention is to add Linux support with Lazarus and more demos.


https://github.com/salvadordf/Tesseract4Delphi
Maintainer of the CEF4Delphi, WebView4Delphi, WebUI4Delphi and WebUI4CSharp projects

salvadordf

  • Jr. Member
  • **
  • Posts: 77
    • BriskBard
Re: New Tesseract4Delphi project
« Reply #1 on: February 01, 2026, 07:24:44 pm »
The latest version added Linux support using Lazarus.  :D
Maintainer of the CEF4Delphi, WebView4Delphi, WebUI4Delphi and WebUI4CSharp projects

CM630

  • Hero Member
  • *****
  • Posts: 1766
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: New Tesseract4Delphi project
« Reply #2 on: February 02, 2026, 08:19:08 am »
Thanks for sharing. When I try to run the demo in Windows (7 and 11) I get:

Quote
Error loading org.sw.demo.danbloomberg.leptonica-1.86.0.dll
Error code: 0x000000C1

Error loading google.tesseract.libtesseract-main.dll
Error code: 0x000000C1

EDIT: I occurs to run winth the 64bit Lazarus. I opened the sample image, and it got recognised. Then I opened an image of mine, and when I press “Recognize” absolutely nothing happens.
« Last Edit: February 02, 2026, 08:28:45 am by CM630 »
Лазар 4,8 32 bit (sometimes 64 bit); FPC3,2,2

salvadordf

  • Jr. Member
  • **
  • Posts: 77
    • BriskBard
Re: New Tesseract4Delphi project
« Reply #3 on: February 04, 2026, 04:47:55 pm »
The binaries included in this project were built in Windows 11.

If your application needs to run in Windows 7 you will have to build the Tesseract project in Windows 7.

I just wrote this Wiki page about running Tesseract in older Windows versions:
https://github.com/salvadordf/Tesseract4Delphi/wiki/Before-you-run-the-demos

The latest Tesseract4Delphi version checks if the Microsoft Visual C++ 2017 Redistributable package is installed and that error shouldn't happen now.

The latest demos also include a Mode option and several language models. This should be useful if the language in the image is not English.
Maintainer of the CEF4Delphi, WebView4Delphi, WebUI4Delphi and WebUI4CSharp projects

CM630

  • Hero Member
  • *****
  • Posts: 1766
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: New Tesseract4Delphi project
« Reply #4 on: February 04, 2026, 07:35:39 pm »
The app does not run in Lazarus 32 bit neither in Win 7, nor in Win 11 (in case I have been unclear).
There are two folders with DLL (named "32" and "64"), so I suppose that there is something wrong with the 32 bit versions of org.sw.demo.danbloomberg.leptonica-1.86.0.dll  google.tesseract.libtesseract-main.dll or they are not linked properly.
Лазар 4,8 32 bit (sometimes 64 bit); FPC3,2,2

 

TinyPortal © 2005-2018