Leptonica is open source software used for image processing and analysis.
Questions tagged [leptonica]
148 questions
4
votes
1 answer
Teaching OCR to understand NSA and FISC redactions
I'm maintaining an archive of the heavily redacted documents coming out of the Foreign Intelligence Surveillance Court.
They come with big sections of text that look like this:
And when the OCR tries to work with this, you get text…

mlissner
- 17,359
- 18
- 106
- 169
4
votes
0 answers
handwriting recognition for isolated arabic
I develop an application in Android OS for recognizing handwritten isolated arabic character using Tesseract OCR. I have tried it but in some case Tesseract cannot recognize handwritten isolated arabic character with connected character, So I want…
3
votes
2 answers
unresolved external symbol _png_init_io referenced in function _pixReadStreamPng
Under Windows 7, I have dowloaded and unzipped leptonica.zip, and then followed the steps (in order to run Cmake successfully) :
cd leptonica
mkdir build
cd build
set…

Carlo Benussi
- 165
- 1
- 14
3
votes
3 answers
How to send file as stream from python to a C library
I am trying to use Leptonica (C library) from within python. The library has a pixRead method that takes absolute path to an image file as a parameter. Currently I'm successfully calling this from python like this:
leptonica =…

Adam
- 109
- 1
- 6
3
votes
1 answer
How to install leptonica+tesseract on Windows without Visual Studio to use in Anaconda?
I wanted to perform text recognition from images and I want to use Python. I installed Anaconda. Now I want to install Tesseract but I also need to install Leptonica. I did not find any clear instruction how to do it in windows. For Leptonica I do…

Viktoriia
- 85
- 1
- 2
- 10
3
votes
1 answer
Leptonica fails all regression tests
When I try installing building Leptonica 1.72 downloaded from their website: http://www.leptonica.com/download.html using the default installation route:
./configure
make
make check
I got 64/67 tests failed. I looked into this problem and installed…

Georgi Georgiev
- 187
- 11
3
votes
1 answer
Leptonica - unable to write image after applying otsu threshold
I am trying to save an image to jpeg after processing with leptonica. I am using python with ctypes and my code is:
import ctypes
leptlib = "liblept.so"
leptonica = ctypes.cdll.LoadLibrary(leptlib)
filename = "IMAG0724.jpg"
img =…

ajrasp
- 75
- 1
- 2
- 10
3
votes
0 answers
Memory growth during image editing
I'm trying to fetch an image of PDF page and edit it. Everything works fine, but there is an huge memory growth. Profiler says that there is no any memory leak. Also profiler says that 90% memory allocated at UIGraphicsGetCurrentContext() and …

free334
- 51
- 5
3
votes
1 answer
Using Leptonica for Character Segmentation
I'm trying to figure out how to use the segmenter provided by the Leptonica library for document analysis. I've been looking at pageseg.c but I don't think I completely understand it :(!
If I take an image and load it as a PIX datatype, do I call…

Kerren
- 429
- 1
- 5
- 15
3
votes
1 answer
Android Tesseract & Leptonica OCR. Read individual box and char
I'm working with Tesseract on Android, and I have the following code to extract the string and the boxes read from an image:
TessBaseAPI baseApi = new TessBaseAPI();
baseApi.init(tess_path, "eng");
baseApi.setImage(bitmap);
String recognizedText =…

user2021731
- 53
- 1
- 4
2
votes
0 answers
CMake warning: CMake Targets may link only to libraries. CMake is dropping the item
I am making an anpr algorithm that requires tesseract to decode the image to text. When running cmake .. inside my build dir, I get a warning saying:
┌──(user㉿MacBookArch)-[~/dev/anpr/build]
└─$ cmake ..
-- Configuring done
CMake Warning at…

Snakehater
- 145
- 1
- 9
2
votes
3 answers
System.DIINotFoundException: Failed to find library "leptonica-1.80.0.dll" for platform x86
I'm running an automated application in WinForms and using Tesseract, when I run on localhost it works perfectly, but when I publish or export the bin folder to another computer, it shows me this error:
System.DIINotFoundException: Failed to find…

Guilherme Zanetti
- 83
- 1
- 6
2
votes
0 answers
How to build tesseract4.0 from source code in windows using cmake?
I already tried the pre-compiled Leptonica binary link but I read here that I have to build this from source only. So I tried building Leptonica from source.
I downloaded the source code of Leptonica from this…

Muskan Agarwal
- 378
- 5
- 19
2
votes
2 answers
how to get leptonica version from API
I have a small program where I use leptonica.. But how can I check which version installed?
#include

clarkk
- 27,151
- 72
- 200
- 340
2
votes
0 answers
JVM crash - Problematic frame: [libc.so.6+0x14e156]
I started facing the following JVM crashes during my integration test build:
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f74e1add156, pid=17603, tid=0x00007f743ff9e700
#
# JRE version: Java(TM)…

alexanoid
- 24,051
- 54
- 210
- 410