我正在尝试从车辆牌照中获取字符。 但是很少有像这样的错误预测
我得到的输出是UP74 BD 3465
,这是错误的。有许多例子将B
预测为8
等等
import matplotlib.pyplot as plt
import cv2
import easyocr
from pylab import rcParams
from IPython.display import Image
rcParams['figure.figsize'] = 8, 16
reader = easyocr.Reader(['en'])
output = reader.readtext(path)
for i in range(len(output)):
print(output[i][-2])
首先,我建议您阅读关于OCR图像增强的主题:LINK
其次,在与上述主题相同的意义上,您可以在裁剪感兴趣区域(ROI)后,使用
Thresholding
、Gaussian Filtering
和Histogram Equalization
来解决此特定图像的问题,因此输出图像将如下所示:输出将是:
相关问题 更多 >
编程相关推荐