首页 > 解决方案 > tesseract 用盒子弄乱图像上的数据

问题描述

我有一张图片,其中一些数字出现在盒子里在此处输入图像描述

我尝试了很多变化

(thresh, im_bw) = cv2.threshold(im_gray, 128, 255, cv2.THRESH_BINARY | cv2.THRESH_OTSU)
im_bw = cv2.threshold(im_gray, thresh, 255, cv2.THRESH_BINARY)[1]
pytesseract.image_to_data(im, output_type=Output.DICT,lang='eng+eng_1+eng_2+por+fra+spa',config='--psm 11')

我仍然无法正确检测到“29010”。需要帮助我们该怎么做。

标签: pythontesseract

解决方案


推荐阅读