Questions tagged [leptonica]

Leptonica is open source software used for image processing and analysis.

148 questions
1
vote
0 answers

rotate Leptonica Pix

I am using tesseract-android-tools api. I need to rotate image as a pix before calling tesseract for result. I try to use Rotate.rotate(Pix pixs, float degrees, boolean quality) After saving rotated image, I can see that just the content has…
andrej
  • 101
  • 1
  • 7
1
vote
0 answers

Does OpenCV have a function that does thinning/thickening while preserving topology?

I'm looking for an implementation of thickening and thinning of 1-bit color bitmaps such that the topology, or connectivity, of the images is not altered. That is, if you do thickening just using dilation, two blobs that are near to each other may…
jwezorek
  • 8,592
  • 1
  • 29
  • 46
1
vote
1 answer

Omit Leptonica Library from Tesseract

Working on an OCR project, I am trying to figure out if there is any way or possibility to omit Leptonica Library from Tesseract and maybe replace it with OpenCV. Already have OpenCV on the C layer and planning to combine that with Tesseract.
Alma
  • 75
  • 1
  • 6
1
vote
1 answer

Use Tesseract in CMAKE project

I am trying to compile a cmake project that requires Tesseract and OpenCV. Everything is being done in Ubuntu 20.04. But I have been struggling to get it compiled. I compiled Tesseract from source and have been going through several SO posts and…
Keivan
  • 673
  • 7
  • 15
1
vote
0 answers

Golang for Windows tesseract-ocr 4.0 dev compilation error

I would like to use golang package for tesseract-ocr, so i have followed exactly the installation instructions. I have installed tesseract-ocr 4.0 dev for Windows, but unfortunately i get the following error when i try to run the git example #…
asimkon
  • 915
  • 1
  • 14
  • 21
1
vote
1 answer

It is possible to use the TessAPI1.TessPDFRendererCreate API of tess4J without needing to create physical files?

I am using the Tesseract Java API (tess4J) to convert Tiff images to PDFs. This works nicely, but I am forced to write both the source Tiff image and the output PDF to local filestore as actual physical files in order to use the…
Jon H
  • 394
  • 3
  • 17
1
vote
2 answers

Leptonica on Windows + Visual Studio

I have followed the following steps for installing Leptonica on Windows with Visual Studio 3. Building on Windows (a) Building with Visual Studio 1. Download the latest SW (Software Network https://software-network.org/) …
Perl Del Rey
  • 959
  • 1
  • 11
  • 25
1
vote
1 answer

Tesseract in QT

This is the first time I am asking a question here. I want to use Tesseract API in QT. My idea was to design a programme using QT that would read aloud messages (QSpeech) from Telegram Desktop version (not that important). Tesseract came across as…
1
vote
1 answer

Tesseract & Opencv Program image issue show some errors

when i run the exe then show the some errors in tesseract using opencv OCR. Tesseract : 4.0.0 Laptonica : 1.74.4 Libpng : Libpng1636 Zlib : zlib1211 I use the steps of github project i provide link of that :…
1
vote
1 answer

apt install libleptonica-dev fails

Im trying to use Tesseract-OCR for in a program and am having issues installing. Following the instructions on here When I try the command sudo apt-get install libleptonica-dev I get ubuntu@ubuntu:~/tesseract$ sudo apt install libleptonica-dev …
Chris
  • 155
  • 6
1
vote
1 answer

Want to convert org.bytedeco.javacpp.lept.PIX to byte[] and Buffered Image

I want to write a utility which converts org.bytedeco.javacpp.lept.PIX to byte[] and BufferedImage. I have tried the following: 1) using Java2DFrameUtils but it inverts my image colors ( 1-> 0 and 0-> 1) with the code: LeptonicaFrameConverter c =…
1
vote
4 answers

Not Able To Use PixConverter.ToPix Leptonica C#

I wanted to convert a bitmap to Leptonica.Pix.. So after I did a search I found someone who had the same problem here: Tesseract .NET Process image from memory object So the solution to this problem was to use PixConverter.ToPix() method. My…
mkabbanii
  • 59
  • 2
  • 10
1
vote
1 answer

Leptonica OpenCV Java convert Mat to Pix and vise versa

I use the following lept4j and OpenCV Maven dependencies: net.sourceforge.lept4j lept4j 1.9.0
alexanoid
  • 24,051
  • 54
  • 210
  • 410
1
vote
1 answer

Error looking up function 'pixaConvertTo8Color': when using lept4j

I am using tess4j in Linux to use OCR in java and involved lept4j. When using code as below Pix pix = Leptonica1.pixRead(image.getPath()); will get the error as java.lang.UnsatisfiedLinkError: Error looking up function 'pixaConvertTo8Color':…
Shawn Chen
  • 73
  • 8
1
vote
1 answer

Tesseract simple image with text recognition, Help wanted to convert/transform image

Hello I'm trying to use OCR tesseract to recognize some letters in a image. I did a convert using imagemagick and image seems to be good but its not enough The original images: The command used with imagemagick to convert convert input.jpg -fuzz…
J. Metal
  • 11
  • 2