当前位置:网站首页>Reconnaissance des caractères easycr
Reconnaissance des caractères easycr
2022-07-05 14:45:00 【Le ciel et l'homme en un Peng】
import easyocr
import cv2
import os
reader = easyocr.Reader(['en'],model_storage_directory="./easyOCRModel")
path = r"D:\BUFFER\Pycharm\RecognitionOCR\images\ROI_Images"
# path = r"D:\BUFFER\Pycharm\RecognitionOCR\images\rudeOCR"
for filename in os.listdir(path): # listdirLe paramètre pour est le chemin du dossier
img_path = path + '\\' + filename
# print(filenames)
img_orig = cv2.imread(img_path, 1)
# cv2.imshow("image", img_orig)
# cv2.waitKey()
result = reader.readtext(img_path)
if result and result[0][2] >= 0.90:
print(img_path)
print(result[0][1])
print(result[0][2])
# str_j = 'python {}! format {}!'.format(666, 999)
ocr_possible = ' {}-{}!'.format( result[0][1], result[0][2])
cv2.putText(img_orig, ocr_possible , (2, 20), cv2.FONT_HERSHEY_SIMPLEX, 0.75, (0, 0, 255), 2)
cv2.imshow("image", img_orig)
cv2.waitKey()
边栏推荐
- SaaS multi tenant solution for FMCG industry to build digital marketing competitiveness of the whole industry chain
- Thymeleaf th:classappend attribute append th:styleappend style append th:data- custom attribute
- Pointer operation - C language
- be careful! Software supply chain security challenges continue to escalate
- How to choose the appropriate certificate brand when applying for code signing certificate?
- Shanghai under layoffs
- Fonctions communes de thymeleaf
- ASP. Net large takeout ordering system source code (PC version + mobile version + merchant version)
- STM32+BH1750光敏传感器获取光照强度
- [detailed explanation of Huawei machine test] character statistics and rearrangement
猜你喜欢

ASP. Net large takeout ordering system source code (PC version + mobile version + merchant version)

Intelligent supply chain collaboration system solution for daily chemical products industry: digital intelligent SCM supply chain, which is the "acceleration" of enterprise transformation

直播预告|如何借助自动化工具落地DevOps(文末福利)

CYCA少儿形体礼仪 宁波市培训成果考核圆满落幕

申请代码签名证书时如何选择合适的证书品牌?

PyTorch二分类时BCELoss,CrossEntropyLoss,Sigmoid等的选择和使用

Talking about how dataset and dataloader call when loading data__ getitem__ () function

Selection and use of bceloss, crossentropyloss, sigmoid, etc. in pytorch classification

【学习笔记】阶段测试1

How to choose the appropriate certificate brand when applying for code signing certificate?
随机推荐
Topology visual drawing engine
【学习笔记】阶段测试1
webRTC SDP mslabel lable
Matrix chain multiplication dynamic programming example
js亮瞎你眼的日期选择器
How to protect user privacy without password authentication?
Principle and performance analysis of lepton lossless compression
PHP - fatal error: allowed memory size of 314572800 bytes exhausted
Topology可视化绘图引擎
How can non-technical departments participate in Devops?
Selection and use of bceloss, crossentropyloss, sigmoid, etc. in pytorch classification
TS所有dom元素的类型声明
用 Go 跑的更快:使用 Golang 为机器学习服务
黑马程序员-软件测试-10阶段2-linux和数据库-44-57为什么学习数据库,数据库分类关系型数据库的说明Navicat操作数据的说明,Navicat操作数据库连接说明,Navicat的基本使用,
SaaS multi tenant solution for FMCG industry to build digital marketing competitiveness of the whole industry chain
【NVMe2.0b 14-9】NVMe SR-IOV
Thymeleaf th:classappend属性追加 th:styleappend样式追加 th:data-自定义属性
[summary of leetcode weekly competition] the 81st fortnight competition of leetcode (6.25)
美国费城发生“安全事故” 2名警察遭枪杀
面试突击62:group by 有哪些注意事项?