Questions tagged [tesseract]

Tesseract is an OCR (Optical Character Recognition) engine originally developed at HP Labs and now available as an open source library with development sponsored by Google.

tesseract
Filter by
Sorted by
Tagged with
5 votes
2 answers
14k views

No module named pytesseract error

I am trying to use pytesseract for OCR, on a raspberry pi using Raspbian I have read several questions on this topic, but can't find an answer that works, they usually say to install pytesseract with ...
1 vote
0 answers
482 views

Solve Image CAPTCHA with CV2 and Tesseract OCR

I've been trying to solve the following captcha using cv2 to edit the picture and then using tesseract OCR to read the text in the image. Below is an example: So far I've tried the following code to ...
32 votes
2 answers
40k views

How can I run tesseract with multiple languages one time?

I have to analyzed a image which containing both English and Japanese texts. When I run tesseract by default (-l eng), some Japanese characters lost. Otherwise, if I run tesseract with japanese (-l ...
1 vote
0 answers
812 views

how to set pytesseract to solve captcha alphanumeric and 5 length

Hi everybody I'm using pytesseract and tesseract-ocr-w32-setup-v5.0.0-alpha and pytesseract in python 3.8, I did this code to try to recognize 5 alphanumeric characters: import pytesseract pytesseract....
7 votes
2 answers
10k views

Tesseract empty page

I use tesseract for detecting characters on image. try { using (var engine = new TesseractEngine(@"C:\Users\ea\Documents\Visual Studio 2015\Projects\ocrtTest", "eng", ...
1 vote
1 answer
3k views

Does tesseract-ocr perform any image pre-processing?

I am currently working with the Tesseract OCR engine and I'm using it in conjunction with OpenCV for pre-processing the image before sending it to the OCR engine. However, I was wondering if Tesseract ...
0 votes
0 answers
703 views

Java Tesseract improve text reading from image

I am trying to read text from a League of Legends chat screen. To achieve this, I created a java application using tesseract. However, the text returned is not completely correct. This is the code I'm ...
0 votes
0 answers
210 views

How to ocr text with white foreground using openCV and python tesseract

1st would like to thanks for taking look over here. Im trying to read text from image and using opencv and pytesserect lib. code cv2.waitKey(1000) img = cv2.imread("Receipt/12.jpeg") img_ = ...
0 votes
1 answer
2k views

Why pytesseract raise an error with Arabic language

I want to use pytesseract Arabic And I have ara.traineddata in my system /usr/share/tesseract/tessdata/ path and i have already installed tesseract package This is my code: import pytesseract from ...
0 votes
0 answers
29 views

Selective data reading from python using pdfminer or any other library

one of the pages of a pdf file which consists of 727 pages from which I have to read the data: I want to read the data marked within the red rectangle using pdfminer in python is there any specific ...
5 votes
1 answer
11k views

Pytesseract Improve OCR Accuracy

I want to extract the text from an image in python. In order to do that, I have chosen pytesseract. When I tried extracting the text from the image, the results weren't satisfactory. I also went ...
0 votes
1 answer
1k views

ERROR net.sourceforge.tess4j.Tesseract - Unable to load library 'gs': Native library (linux-x86-64/libgs.so) not found in resource path

<dependency> <groupId>net.sourceforge.tess4j</groupId> <artifactId>tess4j</artifactId> <version>3.2.1</version> </dependency> I am using ...
5 votes
4 answers
5k views

Clean text images with OpenCV for OCR reading

I received some images that need to be treated in order to OCR some information out of them. Here are the originals: original 1 original 2 original 3 original 4 After processing them with this ...
0 votes
1 answer
874 views

Extract relevant text from PDF files using python

Looking out to extract only the relevant text from whole PDF file using python and store the output data into particular columns of Excel. I have tried to solve it but not able to extract the ...
1 vote
2 answers
2k views

tesseract traineddata (tessdata_best version) file not working on Android devices

I am using the Tessdata_Best version of eng.traineddata file for my usecase. I perform further training on the default tessdata_best eng.traineddata, and use the newly generated eng.traineddata file ...
0 votes
1 answer
64 views

Recognize the pdf type

Is there any option in Apache Tika to check the pdf type: native pdf (pure) or scanned pdf? If not maybe I can somehow check it in a tesseract that is used under the hood by Tika
1 vote
1 answer
200 views

Deep learning -Detect features of an electric pole

I'm working on an app that have to detect all visible features of an electric pole with just 2 or 3 photos, Detect type of pole and features of it: pole 1 pole 2 Read useful text on the engrave (not ...
1 vote
1 answer
864 views

Post-process and read blurred digits - OpenCV / tesseract

My boss just gave me 9000 images showing a multi-meter output, and he wants me to read them all and write the voltage output on a text file for Monday morning! There's no way I can do it manually , so ...
0 votes
1 answer
620 views

Reasonable Tesseract OCR settings using Apache Tika…?

I'm using Apache Tika to do text extraction and I have to handle scanned PDF images. So I'm trying Tesseract, but I'm having problems finding any good resource on good default settings…? I'm also ...
0 votes
1 answer
69 views

Not able to recognize word using pytesseract.image_to_string

I am having an image with rotated text. I am getting the position for this text and cropping it and then I rotated this text. Till this I can see my text displayed perfectly. But now if I send this ...
0 votes
0 answers
284 views

Can't find 'Image' after installing Pillow?

Playing with PDF and images in my virtualenv, and I installed pdfminer-six, pypdf2, pytesseract and pdf2image with pip: $python3 -m venv testenv $source testenv/bin/activate $pip3 install pdfminer-six ...
0 votes
1 answer
1k views

R/Tesseract for multiple columns: How can I recognize different parts of a text?

I have scans of some thousand pages of an old swiss computer magazine and am going to make it public as a part of my Masters Thesis. But first I want to do an OCR with R/Tesseract on all the pages and ...
2 votes
0 answers
154 views

segmentation of an arabic word to characters python

I want to segment handwritten Arabic words into characters from a picture. I've already segmented the word to subword using python. Now I want to segment the subwords to characters and I don't know ...
0 votes
1 answer
203 views

Tesseract Failing on reasonably clear image

I have been trying out Tesseract OCR in combination with Open CV (EMGUCV C#) and I am trying to improve the reliability, one the whole it's been good and by apply various filters one at a time and ...
1 vote
0 answers
198 views

How to fine tune Tesseract 4.1.1?

I am trying to fine tune Tesseract, but I am not successful. I already have a .treineddata file provided with LSTM training. I already have .png and .box too ... How do I fine tune? I need to increase ...
3 votes
0 answers
976 views

tesseract return reversed words with arabic

hello everyone I'm trying to extract a license number plate from Tunisian cars so i decided to use tesseract to extract the numbers and word 'تونس' so before that i installed tesseract-OCR v5.0....
1 vote
0 answers
673 views

How do you enable "quiet mode" when using Tesseract OCR from C++?

I am statically linking to the Tesseract OCR engine on Windows from a command line program written in C++. I would like to initialize Tesseract such that if it is not a Debug build Tesseract does not ...
0 votes
1 answer
176 views

Store tesseract OCR traineddata on S3?

I have an app hosted on Heroku. I seek to extract text from various PDFs. I'm currently using tesseract for this. Since Heroku does not offer that much storage space and the .traineddata files are big ...
0 votes
1 answer
51 views

Python checking if the displayed format meets demanded format

I've been playing with Tesseract and I would like the text that is displayed after I run the program to be in a specific format, otherwise, I would like for the program to display an error, but still ...
5 votes
3 answers
21k views

Tess4J: Invalid memory access

I am trying to use Tess4J in my project to extract text from an image. I am getting the following error when I try run the OCR: Exception in thread "main" java.lang.Error: Invalid memory access ...
2 votes
1 answer
363 views

Can't make instance of tesseract::TessBaseAPI in c++

I installed tesseract and opencv using vcpkg on macos, everyhitng went fine. Now i'm trying to make a simple tesseract project with cmake but: tesseract::TessBaseAPI text_recognizer; throws: libc++...
0 votes
1 answer
1k views

Error when trying to use custom tessdata file

I have generated a box file from a png image then I followed this tutorial: https://pretius.com/how-to-prepare-training-files-for-tesseract-ocr-and-improve-characters-recognition/ to generate custom ...
1 vote
0 answers
385 views

I am getting a permission error with tesseract

Hello I have this code and getting this error: PermissionError: [WinError 5] import pytesseract import os import shutil pytesseract.pytesseract.tesseract_cmd="C:\\Users\\ekrem\\...
2 votes
0 answers
921 views

Is there a way in Tesseract to capture text meta-data along with text?

I am trying to figure out if text metadata like font-size, font-family, bold/italic etc. can be captured using Tesseract. Below is the code I used to try it but that did not work and returned "...
1 vote
1 answer
475 views

Tesseract .tr file empty

I'm trying to integrate text recognition into my app with TesseractOCR. I need it to learn a custom font. I have Tesseract installed on my Mac via Homebrew. I have a tiff file: eng.scout-cond.exp0....
1 vote
0 answers
420 views

Tesseract-OCR cannot capture '[' and ']'

I am trying to extract text part of an image using Tesseract-OCR and OpenCV in Python. I have attached a simple image as below. I have created this image on paint which means there is no noise or pre-...
0 votes
0 answers
408 views

Character recognition using Tesseract-OCR and OpenCV (Cannot capture '[' and ']')

I am trying to extract text part of an image using Tesseract-OCR and OpenCV in Python. I have attached an example image as below: It cannot capture '[' and ']' properly. The extraction output of this ...
0 votes
0 answers
488 views

Extract book title from image

I have many comics and I would like to extract their title using a webcam. I have made the code below : import cv2 import numpy as np import pytesseract from PIL import Image from pytesseract import ...
1 vote
0 answers
814 views

What's the architecture of the lstm engine in Tesseract 4+ OCR?

I have found that the model used in Tesseract 4+ LSTM is the same used in OCROpus the CLSTM project, available here: https://github.com/tmbdev/clstm. in the link below I found the info about the lstm ...
8 votes
4 answers
14k views

How to install tesserocr on windows?

I downloaded executable file of tesseract-OCR and installed it. On the other hand, I also downloaded a zipfile of leptonica from http://www.leptonica.com/download.html. It includes two directory that ...
4 votes
1 answer
3k views

Recognizing superscript characters using OCR

I've started a simple project in which it must get an image containing text with superscripts and then by using OCR (currently I'm using tesseract) it has to recognize the superscript characters + the ...
1 vote
1 answer
1k views

How to crop license plate from vehicles in a real time video file using python

I have build my custom object detection model using SSD-Mobilenet and Tensorflow. Now, I have to crop license plate number from the video file and display it along with the model name on top of the ...
0 votes
0 answers
149 views

pytesseract recognizing "P" as "J"

I'm trying to use pytesseract for reading single character images. The images look like the following: Recognition is working fine one every letter except the "P", that is always recognized ...
0 votes
1 answer
412 views

Unable to use equ.traineddata for tesseract (throes error) but hin,ben,eng works well

I have my tesseract installed at /usr/share/tesseract-ocr/ and is working fine wit hte tessdata directory at /usr/share/tesseract-ocr/4.0/tessdata. Because the equ.traineddata is not given with the ...
0 votes
0 answers
660 views

Tesseract OCR not working for java web application

I am trying to develop Java web Tesseract OCR application. Following code works perfectly : public class App { public String getImgText(String imageLocation) { ITesseract instance = new ...
0 votes
1 answer
2k views

Can I get datas from all images in a folder Python Tesseract?

import pytesseract pytesseract.pytesseract.tesseract_cmd = r'C:\Program Files\Tesseract-OCR\tesseract' print(pytesseract.image_to_string(r'D:\examplepdf2image.png')) I don't want to get just 1 image, ...
1 vote
1 answer
407 views

How can I improve text recognition accuracy with jTessBoxEditor?

I have been trying to extract data from scanned pdf documents. I have converted the pdf file into jpeg file (I have attached the image link below), cropped the words and numbers with different fonts, ...
0 votes
2 answers
2k views

tesseract.js recognize from axios stream response

My question is it possible to recognize from tesseract.js from axios response stream const axios = require('axios'); const { TesseractWorker } = require('tesseract.js'); const worker = new ...
2 votes
1 answer
781 views

PyTesseract not seeing some single-digit numbers in table

I have this image of a table I'm trying to parse it using PyTesseract. I've gotten pretty darn close using this code: from PIL import Image, ImageOps import pytesseract og_image = Image.open('...
1 vote
0 answers
636 views

Python tesseract extract data from image in proper column sequence

I'm trying to extract data from below image but i get the output in a very bad format and i'm having trouble to determine right column for right value programmatically.. My progress so far: I've ...

1
28 29
30
31 32
89