Leptonica is open source software used for image processing and analysis.
Questions tagged [leptonica]
148 questions
0
votes
1 answer
Tesseract Training - Error reading radical code table data/langdata/radical-stroke.txt
I've tried to train Tesseract OCR on specific font, based on polish language model (pol) and my own "ground truth" text - it may be important, that the one generated by me does not contain all chars from polish charset, because in my application of…

JP JP
- 1
- 2
0
votes
0 answers
Convert pixel values in thermal image with embedded metadata
I am capturing thermal images using a FLIR Lepton 3.5 thermal camera and ESP32 WROVER E module. I am getting the pixel values that I can see on the serial monitor. Then I convert these pixel values into thermal images using Python code. But when I…
0
votes
0 answers
Valgrind Memory check complains on TessBaseAPI
Working on memory leaks, just faced that valgrind memcheck sees serious leak on TessBaseAPI initialization call.
Update:
official Tess Sample gets warning from valgrind
https://tesseract-ocr.github.io/tessdoc/Examples_C++.html
api4->Init
is there…

JamesQReader
- 1
- 2
0
votes
0 answers
STM32f4 interfacing with thermal camera
We are interfacing FLIR lepton 3.5 thermal camera with STM32f407VET6 to capture thermal image.
In our system, the AGC is disabled by default, we enabled VSYNC using I2C protocol.
Currently the code is reading packet number and printing it on…
0
votes
0 answers
C# - Failed to find library "leptonica-1.80.0.dll" for platform x64
I am creating a console application using Tesseract 5.2.0
below is my code for the same.
System.Drawing.Bitmap img = new System.Drawing.Bitmap(convertedFile);
//TesseractEngine engine = new TesseractEngine(convertedFile, "eng",…

Ibrahim shaikh
- 235
- 2
- 15
0
votes
1 answer
Tesseract does not work within a Docker image with ubuntu 20.04 called from within a Java Spring App
I want to call tesseract from a Java Spring Boot application running on Ubuntu 20.04 in a Docker Image. Tesseract fails with the following log entry:
java.lang.UnsatisfiedLinkError: Error looking up function 'boxaSizeConsistency':…

SirNight
- 1
0
votes
0 answers
Tesseract character recognition and C++
I read single characters with C++ and tesseract/leptonica.
Below is chunk I use.
is it possible to improve accuracy to use some special function, in case if I read only one character.
Of course I have openCV mat with cropped image to fit the…

JamesQReader
- 1
- 2
0
votes
0 answers
I tried to build something, but this error came and I couldn't get SW also
By not providing "FindSW.cmake" in CMAKE_MODULE_PATH this project has asked
CMake to find a package configuration file provided by "SW", but CMake did
not find one.
Could not find a package configuration file provided by "SW" with any of
…
0
votes
1 answer
Build tesseract as DLL Dynamic link library
I'm using this .NET wrapper https://github.com/charlesw/tesseract and I wanted to update the included tesseract and leptonica DLLs but after a long google search I was not able to generate them from the original tesseract and leptonica github…

Seltix
- 69
- 3
- 13
0
votes
2 answers
How does one link and include lib-leptonica in a cross platform make file?
I have the following cmake command:
include(FindPkgConfig)
# ditto for tesseract
pkg_search_module(LEPT lept)
find_library(
LEPT
NAMES leptonica liblept liblept-dev lept
HINTS ${LEPT_INCLUDE_DIRS}…

Chris
- 28,822
- 27
- 83
- 158
0
votes
0 answers
Installing and using Leptonica library on Windows with Visual Studio
What I did:
Downloaded sw, leptonica source and cmake.
Executed 'ms build' in leptonica source directory -> '.sw' folder.
Build a visual studio project from the leptonica source with cmake -> 'build' folder.
Opened the project and build it (debug,…

Created
- 87
- 1
- 13
0
votes
4 answers
leptonica/allheaders.h is missing for tesseocr installation on M1 macs with homebrew
i was trying to install normcap for OCR reading of images but i got into an error and don't understand how to solve it.
PC - Macbook M1 chipset
homebrew 3.1.7 installed and working fine.
CommandLinetools 12.5 have been installed(Apple).
Leptonica…

Danta
- 1
- 3
0
votes
1 answer
Tesserocr installation on Mac M1
I have tried a lot, but still, I don't know why unable to install Tesserocr and leptonica on Mac M1. the error is here, thanks for your help.
ERROR: Command errored out with exit status 1:
command: /Users/mahdiseify/opt/anaconda3/bin/python -u -c…

mseify
- 3
- 2
0
votes
1 answer
how to get VERSION installed of LEPTONICA from console?
I'm at CentOs 8 and I installed http://www.leptonica.org/source/leptonica-1.80.0.tar.gz in this form:
wget http://www.leptonica.org/source/leptonica-1.80.0.tar.gz
tar xzvf leptonica-1.80.0.tar.gz
cd leptonica-1.80.0
./configure
make && make…

B UTP
- 11
- 3
0
votes
1 answer
Error compiling Leptonica (for Tesseract) on IBMi (AS400,iSeries) for Power PC
I am trying to compile Tesseract so I can run it on IBMi 7.3 (AS400, iSeries, System/i) which has a Power PC architecture. I haven't done any C compiling with makefiles for decades so I found and am following these instruction (with thanks) and am…

M. A. Wheadon
- 101
- 1
- 8