【问题标题】:Extracting Only Bold Text from an image using any OCR使用任何 OCR 从图像中仅提取粗体文本
【发布时间】:2021-09-04 18:27:55
【问题描述】:

我想使用任何 OCR tesseract、easyOCR 等仅从 image 中提取和打印 粗体 文本。 提前致谢

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)

下面是我得到的输出

[([[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)]

【问题讨论】:

标签: python opencv ocr


【解决方案1】:

你好我不熟悉openocr。但是,我认为要输出文本,您已经需要经过训练的架构(或经过训练的参数)。您得到的输出是图像的边界框。

【讨论】:

  • 请添加更多详细信息以扩展您的答案,例如工作代码或文档引用。
猜你喜欢
  • 2013-09-01
  • 1970-01-01
  • 2013-05-07
  • 1970-01-01
  • 2021-09-24
  • 2018-09-07
  • 1970-01-01
  • 2021-07-07
  • 1970-01-01
相关资源
最近更新 更多