python - 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”。需要帮助我们该怎么做。
解决方案
推荐阅读
- html - 如何在保持角度不变的情况下创建响应式线性渐变?
- mysql - 在 MySQL 中存储配置的最佳方式
- git - jenkins 在推送新提交时触发所有旧 git 提交的构建。我在詹金斯使用 GITScm 插件
- python - 带有 plotly 和 python 的单一统计信息
- java - 读取java中的excel文件,不包括第一行
- ios - Parse Nested Object using Object Mapper in Swift 4
- c# - C# MD5 hash function return weird result?
- react-native - 如何设置每个活动选项卡的标题和设置标题?
- c# - EntityFramework - 带有匿名对象的 .Select() 投影引发异常,我不确定如何解释
- elasticsearch - Histogram over fixed range of dates (i.e. fixed number of buckets) even when data is absent