Questions tagged [leptonica]

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

148 questions
0
votes
0 answers

access color data array from leptonica::PIX (c++)

I'm loading an image file into memory using leptonica library, I tried to print all the color bytes: int main() { PIX* pix = pixRead("e:/white.png"); // an empty image for testing // print all the pixel color for(int row=0; rowh; row++) { …
aj3423
  • 2,003
  • 3
  • 32
  • 70
0
votes
1 answer

read tiff image tesseract and leptonica

I want to read tiff file. And I save txt each .png files which is in tiff file. If I use below code, I cannot save each page with its name. How can I do ? (Cpp code) // Open input image with leptonica library Pix *image =…
user2362956
0
votes
1 answer

VS2008 Project to VS2012 upgrade fails

Hello i want to build the leptonica library with vc 11 so i downloaded this leptonica vs2008 project and tried to open it with my vs2012, the solution was starting upgrade with message: One-way upgrade Visual Studio will automatically make…
0
votes
1 answer

Pix, struct Pix, or PIX in Leptonica

I've been able to successfully use the "Pix" type with Tesseract (see http://code.google.com/p/tesseract-ocr/wiki/APIExample), yet only "struct Pix" and "PIX" are defined in pix.h (of the Leptonica library). "Pix" (no "struct" keyword) seems to not…
Dustin Oprea
  • 9,673
  • 13
  • 65
  • 105
0
votes
1 answer

Does converting from Pix to Bitmap modify the pix

I have an Android AsyncTask that repeatedly converts Pix to Bitmap using Leptonica library's ReadFile.readBitmap(bitmap) method.I am performing this conversion after any image processing operation is completed and a Pix object is obtained from it. I…
vamsiampolu
  • 6,328
  • 19
  • 82
  • 183
0
votes
1 answer

gcc linker can't find any library cross-reference under cygwin

I can compile two projects (leptonica and tesseract) under Cygwin successfully (with provided configure+make). Also, I can link simple "hello world" project against leptonica library successfully. But when I try to link project against tesseract,…
Suzan Cioc
  • 29,281
  • 63
  • 213
  • 385
0
votes
1 answer

What does this following expression mean?

This expression is taken from an inbuilt function "l_setDataByte" in Leptonica(an Image-Processing library). Here is the link: http://tpgit.github.io/Leptonica/arrayaccess_8c_source.html (Line-260 here) *(l_uint8 *)((l_uintptr_t)((l_uint8 *)line +…
0
votes
1 answer

Unable to make boxfile (or open tiff) in Tesseract

I'm following these instructions for training the Tesseract OCR engine for a new font. However, when trying to make the box file, I get an error. This is the command I use: H:\Documents\TesseractTraining>tesseract eng.helvetica.exp0.tif…
Oskar Birkne
  • 803
  • 7
  • 18
0
votes
1 answer

convert between NSImage and Leptonica Pix

I'm working on a Cocoa OS X program to clean up scanned pages and would like to use Leptonica's library to do the heavy lifting. I've found some info in this post, this one, and this one. I can certainly get a CGImage from the NSImage and can…
bbrownd
  • 525
  • 1
  • 6
  • 14
-1
votes
1 answer

Could not find a package configuration file provided by "Leptonica"

I am trying to generate a visual studio 2019 C++ project from the tesseract 4.1.1 source code. Ultimately, I want to include a tesseract C++ project in my custom solution that consumes OCR results. When I follow these steps: Download and extract…
DLitt
  • 3
  • 1
  • 4
-1
votes
1 answer

ImageIO.write not working after LeptUtils.convertPixToImage

I create some app which use Tessaract and before use OCR I use Leptutils to remove horizontal lines from image. In Eclipse all works fine, but when I export in jar file, programm stucks on ImageIO.write. This function is done under its own threath.…
-1
votes
1 answer

Convert 32bpp image to 8bpp in Leptonica

I've recently started working with leptonica Image processing API. But every API function seems to be taking input image of 8bpp and my images are 32bpp (or could be anything else). So is there any function in Leptonica which could convert my image…
BitKnight
  • 149
  • 7
-2
votes
1 answer

how can I get the same result of leptonica's pixReduceRankBinary2 and pixCloseBrick on openCV?

I am translating a go program that uses leptonica library to a python script that uses openCV, and I cant find a way to translate the following: img = pixReduceRankBinary2(img, 2, NULL); img = pixReduceRankBinary2(img, 2, NULL); img =…
Joe Cabezas
  • 1,397
  • 3
  • 15
  • 21
1 2 3
9
10