当前位置:网站首页>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()
边栏推荐
- Talking about how dataset and dataloader call when loading data__ getitem__ () function
- 开挖财上的证券账户可以吗?安全吗?
- useMemo,memo,useRef等相关hooks详解
- 浅谈Dataset和Dataloader在加载数据时如何调用到__getitem__()函数
- anaconda使用中科大源
- PHP - fatal error: allowed memory size of 314572800 bytes exhausted
- 有一个强大又好看的,赛过Typora,阿里开发的语雀编辑器
- STM32+BH1750光敏传感器获取光照强度
- dynamic programming
- Share 20 strange JS expressions and see how many correct answers you can get
猜你喜欢

Solution of commercial supply chain collaboration platform in household appliance industry: lean supply chain system management, boosting enterprise intelligent manufacturing upgrading

CPU design related notes

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

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

MongDB学习笔记

日化用品行业智能供应链协同系统解决方案:数智化SCM供应链,为企业转型“加速度”

729. 我的日程安排表 I :「模拟」&「线段树(动态开点)」&「分块 + 位运算(分桶)」

Photoshop插件-动作相关概念-ActionList-ActionDescriptor-ActionList-动作执行加载调用删除-PS插件开发

How does redis implement multiple zones?

Online electronic component purchasing Mall: break the problem of information asymmetry in the purchasing process, and enable enterprises to effectively coordinate management
随机推荐
CPU设计实战-第四章实践任务二用阻塞技术解决相关引发的冲突
SSL证书错误怎么办?浏览器常见SSL证书报错解决办法
网上电子元器件采购商城:打破采购环节信息不对称难题,赋能企业高效协同管理
FR练习题目---简单题
Differences between IPv6 and IPv4 three departments including the office of network information technology promote IPv6 scale deployment
NBA赛事直播超清画质背后:阿里云视频云「窄带高清2.0」技术深度解读
729. My schedule I: "simulation" & "line segment tree (dynamic open point) &" block + bit operation (bucket Division) "
手写promise与async await
实现一个博客系统----使用模板引擎技术
【华为机试真题详解】字符统计及重排
[learning notes] stage test 1
我这边同时采集多个oracle表,采集一会以后,会报oracle的oga内存超出,大家有没有遇到的?
webRTC SDP mslabel lable
长列表优化虚拟滚动
Drive brushless DC motor based on Ti drv10970
做自媒體視頻二次剪輯,怎樣剪輯不算侵權
mysql8.0JSON_CONTAINS的使用说明
2022年国内正规的期货公司平台有哪些啊?方正中期怎么样?安全可靠吗?
Principle and performance analysis of lepton lossless compression
Install and configure Jenkins