Questions tagged [leptonica]

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

148 questions
0
votes
1 answer

Tesseract error: count > 0:Error:Assert failed:in file serialis.cpp, line 115

All, I successfully installed tesseract 4.0.0-beta and leptonica-1.75.3. But when I try to test the installation by test their example image, tesseract /home/tairen/tesseract-ocr/testing/eurotext.tif stdout I got the error as: count >…
tairen
  • 379
  • 3
  • 9
0
votes
2 answers

Removing borders (lines) from image

I have this image (some information was deleted from this on purpose) What I need is some kind of way to remove the borders(lines) around the text. I am doing OCR on these images and the lines are really in the way for text recognition. Also…
Tomkis90
  • 31
  • 6
0
votes
0 answers

How to install tesseract in cygwin?

I am trying to use tesserect in cygwin but facing installation issues. I am not good at linux but i know basic commands to get my work done. I used the following link to install the tesserect: How to build Tesseract on Cygwin but I am stuck at…
0
votes
1 answer

Struggling to create leptonica 1.74 visual studio project

I'm really struggling right now trying to build 1.74 version of leptonica as a Visual Studio project. I have followed the official leptonica instructions from here http://www.leptonica.com/source/README.html But I get following errors while running…
Olja Muravjova
  • 117
  • 1
  • 7
0
votes
1 answer

tesseract / tesserocr / leptonica packages fails in Python application while deploying on Bluemix

I am trying to deploy a Python application for Image recognition which uses tesseract, tesserocr with leptonica. But I get the following error while deploying it on Bluemix. Complete output from command /app/.heroku/python/bin/python -u -c "import…
0
votes
1 answer

How can I build a project with CMake?

I've downloaded a source of leptonica-1.74.4 I need lib, dll and *.h files for using with tesseract lib. As I understood firstly I have to build this source with CMake and then I'll get VS files. (Or maybe lib and dll???) I've never work with…
Nika_Rika
  • 613
  • 2
  • 6
  • 29
0
votes
0 answers

Undefined symbols for architecture x86_64: "_pixFindSkew"

I installed Tesseract-OCR-iOS using Cocoapods and imported in the .m file. Tesseract is working, but I can't use any Leptonica functions declared in the allheaders.h file. What am I missing here?
0
votes
1 answer

tesseract compile issue: leptonica_OUTPUT_NAME is not set

I am trying to compile the source code of Tesseract Open Source OCR Engine (https://github.com/tesseract-ocr/tesseract). But when running cmake, I always get the following error: CMake Error: The following variables are used in this project, but …
camino
  • 10,085
  • 20
  • 64
  • 115
0
votes
2 answers

CMake and external dependency

I'd like to add an external dependency to my project. The one I'm trying to add is the Leptonica library as a submodule. My project has the following directory structure: |root CMakeLists.txt |-bin |-build |-buildsystem |-executable …
Witnes
  • 165
  • 3
  • 13
0
votes
1 answer

Tesseract 4.00.00alpha compilation

I installed tesseract 4.00.00alpha and leptonica in ubuntu 16.04 x86. When i am using the following command, tesseract -v The output is tesseract 4.00.00alpha leptonica-1.74 libjpeg 8d (libjpeg-turbo 1.4.2) : libpng 1.2.54 : libtiff 4.0.6 :…
0
votes
0 answers

Python Tesserocr with Leptonica Windows 10

I'm trying to install tesserocr package in Windows 10. It gives error as under: tesseract_ocr.cpp(463) : fatal error C1083: Cannot open include file: 'leptonica/allheaders.h': No such file or directory Any solution?? Thanks
Developer
  • 1
  • 1
0
votes
1 answer

installed tesserocr(python) can't see leptonica

I have installed leptonica and tesseract in $HOME/local and tesseract is working properly, then tesserocr python package with: CPPFLAGS="-I/home/user/local/include /home/user/local/lib" pip install tesserocr and when I want to invoke it I get…
quester
  • 534
  • 5
  • 18
0
votes
1 answer

leptonica - get dimensions (height/width)

How to get height and width from a pix? Pix *image = pixRead((input).c_str());
clarkk
  • 27,151
  • 72
  • 200
  • 340
0
votes
3 answers

Convert 32bit rgb image to 8 bit rgb C++

I want to convert uint32_t image data of w x h to uint8_t image. How should I convert the image. I want to convert leptonica's PIX to opencv Mat. I would want to know the hard way using the Bitwise operators. The pixels are packed as AARRGGBB. Also…
Anubhav Rohatgi
  • 458
  • 1
  • 6
  • 16
0
votes
1 answer

Convert a windows BITMAP to a PIX (unsigned char buffer)

I'm taking a screenshot of a window in order to proccess it with Leptonica and later do some OCR with Tesseract The problem is, performance wise I would like to avoid writing and reading the BMP to the disc and just work in memory instead. This is…
netik
  • 1,736
  • 4
  • 22
  • 45