Linked Questions

53 votes
7 answers
172k views

Use pytesseract OCR to recognize text from an image

I need to use Pytesseract to extract text from this picture: and the code: from PIL import Image, ImageEnhance, ImageFilter import pytesseract path = 'pic.gif' img = Image.open(path) img = img....
Smith John's user avatar
  • 1,065
38 votes
4 answers
87k views

Detect text region in image using Opencv

I have an image and want to detect the text regions in it. I tried TiRG_RAW_20110219 project but the results are not satisfactory. If the input image is this: it is producing this as output: Can ...
Meenal Goyal's user avatar
12 votes
3 answers
23k views

Remove background text and noise from an image using image processing with OpenCV

I have these images For which I want to remove the text in the background. Only the captcha characters should remain(i.e K6PwKA, YabVzu). The task is to identify these characters later using ...
Himanshu Poddar's user avatar
9 votes
3 answers
13k views

Get orientation pytesseract Python3

I want to get the orientation of a scanned document. I saw this post Pytesseract OCR multiple config options and I tried to use --psm 0 to get the orientation. target = pytesseract.image_to_string(...
lads's user avatar
  • 1,185
9 votes
5 answers
16k views

Highly inconsistent OCR result for tesseract

This is the original screenshot and I cropped the image into 4 parts and cleared the background of the image to the extent that I can possibly do but tesseract only detects the last column here and ...
codefreaK's user avatar
  • 3,634
6 votes
1 answer
15k views

How to extract text or numbers from images using python

I want to extract text (mainly numbers) from images like this I tried this code import pytesseract from PIL import Image pytesseract.pytesseract.tesseract_cmd = r'C:\Program Files\Tesseract-OCR\...
Hosam Gamal's user avatar
6 votes
1 answer
3k views

How to improve OCR with Pytesseract text recognition?

Hi I am looking to improve my performance with pytesseract at digit recognition. I take my raw image and split it into parts that look like this: The size can vary. To this I apply some pre-...
tepsupek's user avatar
4 votes
3 answers
2k views

How to extract decimal in image with Pytesseract

Above is the image ,I have tried everything I could get from SO or google ,nothing seems to work. I can not get the exact value in image , I should get 2.10 , Instead it always get 210. And it is not ...
PankajKushwaha's user avatar
4 votes
1 answer
6k views

pytesseract improving OCR accuracy for blurred numbers on an image

Example of numbers I am using the standard pytesseract img to text. I have tried with digits only option 90% of the time it is perfect but above is a example where it goes horribly wrong! This ...
Callum MacEwan's user avatar
4 votes
3 answers
5k views

Tesseract OCR having trouble detecting numbers

I am trying to detect some numbers with tesseract in python. Below you will find my starting image and what I can get it down to. Here is the code I used to get it there. import pytesseract import cv2 ...
C Holley's user avatar
3 votes
1 answer
4k views

Bad character recognition with Pytesseract OCR for images with table structure

I use a code to locate text boxes and create a rectangle around them. This allows me to rebuild the grid around the table structure in the image. However, even if the text box detection works very ...
Slowly-'s user avatar
  • 35
0 votes
2 answers
4k views

Python Extract number from simple Image

I have the following image lower = np.array([175, 125, 45], dtype="uint8") upper = np.array([255, 255, 255], dtype="uint8") mask = cv2.inRange(image, lower, upper) img = cv2....
Nicolas Rey's user avatar
6 votes
3 answers
2k views

Recognizing digits with OpenCV and Python (Simple digit OCR)

So I'm trying to create a program that can see what number an image is and print the integer in the console. (I'm using python 3) For example that the program recognizes that the following image (an ...
kaci's user avatar
  • 209
1 vote
2 answers
7k views

Python number recognition (on colored screen)

I searched for image recognition using python. It seems there is no tutorial about Extracting Numbers from colored background so I followed THIS TUTORIAL import cv2 import matplotlib.pyplot as plt ...
wert trew's user avatar
1 vote
1 answer
5k views

Pytesseract not working sometimes on perfectly clear Images

I have very high resolution Engineering drawings/Circuit diagrams which contain text in a number of different regions. The aim is to extract text from such Images. I am using pytesseract for this ...
Soumadiptya Chakraborty's user avatar

15 30 50 per page