0

I want to extract and print only the bold text from an image using any OCR tesseract, easyOCR etc. Thanks in advance

import easyocr
import cv2

from matplotlib import pyplot as plt
import numpy as np

IMAGE_PATH = 'captcha4.JPG'

reader = easyocr.Reader(['en'])
result = reader.readtext(IMAGE_PATH)
print(result)

Below is the output i am getting

[([[3, 21], [19, 21], [19, 45], [3, 45]], 'B', 0.9924401414986086), ([[32, 18], [72, 18], [72, 44], [32, 44]], 'IdE', 0.08095396599328475), ([[92, 2], [218, 2], [218, 50], [92, 50]], 'EP', 0.612884916567028)]

1 Answers1

0

Hello I'm not familiar with openocr. However I think to output the text you will already need a trained architecture (or the trained parameters). What you are getting as output are the bounding boxes of your image.

Dharman
  • 30,962
  • 25
  • 85
  • 135
Sunshine
  • 181
  • 1
  • 3
  • 15