Questions tagged [easyocr]

EasyOCR is a Python package that provides a language-aware OCR based on PyTorch.

Links:

90 questions
1
vote
2 answers

ImportError: cannot import name 'model_urls' from 'torchvision.models.vgg'

I have imported easyocr before. Yesterday I created a virtual environment to run a program on Jupyter terminal. Since today I am facing this error everytime I try to import easyocr. Any help would be appreciated. ImportError …
Nil_07
  • 106
  • 1
  • 8
0
votes
0 answers

EasyOCR not recognizing dot and "y" for x and y values

Easyocr is not recognizing the x and y values consistently. I have mutiple images which contains same text in images. But I am not getting consistent results having similar text box in all images. img_path = os.path.join(path, filename) #…
0
votes
0 answers

How to Use Custom Detection and Recognition Models with EasyOCR?

I'm working on a project that involves text extraction from images using the EasyOCR library in Python. I've been using the library's default detection and recognition models, but now I want to integrate my own custom detector and transformer-based…
INNA
  • 1
  • 2
0
votes
0 answers

Error involving "inhomogeneous shape" for easyocr despite the images having the same size

I want to read text from a PDF in Chinese, each page of which are pictures instead of text that can be copied out. Firstly I save each page of the PDF with the following code: pdf = pdfium.PdfDocument(fi) num_pages = len(pdf) for…
Aqqqq
  • 816
  • 2
  • 10
  • 27
0
votes
0 answers

OCR Python Pytesseract and EasyOCR speed and possible optimization

I'm comparing OCR tools in Python to convert pdf to text and I've been using pdf2image along with pytesseract and easyOCR in order to convert them to txt files. They both take a while, pytesseract taking around 3-4 seconds per page and easyOCR…
0
votes
0 answers

EasyOCR missing some text

I'm just start using easyocr for text detection but I found that some text were missing. For example this 1 and 2 per attached image. I try to do the pre processing by dilate the text which is not working. Also changing min_size to < 10 in…
0
votes
0 answers

What are the benefits of a custom OCR model?

I'm creating a python program that requires the use of an OCR since this program has to read and interpret Image text. I'm using EasyOCR for this project and it's been working quite well so far. The image gets processed before the OCR reads it, and…
0
votes
0 answers

EasyOCR cannot classify simple, preprocessed black-on-white text

I need to detect single characters as part of a bigger project, but seem to have hit a roadblock. This is what I have to work with: I've already done a bit of preprocessing to get to this stage (removing the background, skewing, warping, etc),…
0
votes
0 answers

When using OpenCV version4.5.5.64, I get an an error because cv2.imshow() function is not present. But if I upgrade the OpenCV, the code does not run

I am using OpenCV version 4.5.5.64 in which it shows me an error saying cv2.imshow() function is not implemented. But if I upgrade the OpenCV to the latest version, the code does not run and gives me an error. The below code is giving me this…
0
votes
0 answers

Easyocr is running fine in the python code, but throwing error when converted into an exe file

This is my python code: import easyocr cropped_image_path = 'D:\\Desktop\\screens\\screens\\1.png' reader = easyocr.Reader(['en']) easy_results = reader.readtext(cropped_image_path) print(easy_results) print("Extracted text is: ",…
Test One
  • 1
  • 1
0
votes
0 answers

Can't use DBnet in EasyOCR

I am trying to use DBnet model with EasyOCR, through using: reader = Reader(['ar'], gpu = False,detect_network = 'dbnet18') EasyOCR has downloaded the model, however, when detecting text I got the following…
AAA
  • 305
  • 1
  • 7
0
votes
0 answers

Problem in detecting Date and time from image using easy OCR and Tessaract

I am trying to detect Date and time from the below image. Both easyOCR and Tessaract are not detecting correctly. I need to detect 2023/05/16 06:40:50 like in below image but easyOCR is detecting it as 2023/057716 06:40850 and Tessaract detecting it…
0
votes
0 answers

How to downgrade easyocr versions using pip?

I currently have easyocr 1.7.0 but I need to downgrade to 1.6.2, how can I force pip to install this version of easyocr? I tried to uninstall my current version of easyocr but I don't know how to, and if I install easyocr again, it will install the…
cc10
  • 1
0
votes
0 answers

Recognizing text that is rotated in an image

I detected the text in my image using EASYOCR and used TESSERACT to do the recognition, but the text that is rotated could not be detected. How I can detect rotated text? I used this code: # # Text detection with easyocr and recognition with…
0
votes
0 answers

slow EasyOCR process once deployed

EasyOCR works well and is quick on localhost but is extremely slow and never finishes once deployed on digital ocean(Ubuntu 22.10). I have two versions. 1: One where i download the model storage_directory 2: Without downloading but directing to path…
Redstain
  • 157
  • 2
  • 10