当前位置:网站首页>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()
边栏推荐
- 【招聘岗位】软件工程师(全栈)- 公共安全方向
- mysql8.0JSON_CONTAINS的使用说明
- How to make a second clip of our media video without infringement
- 【学习笔记】图的连通性与回路
- Photoshop插件-动作相关概念-非加载执行动作文件中动作-PS插件开发
- leetcode:881. 救生艇
- 基于TI DRV10970驱动直流无刷电机
- Long list optimized virtual scrolling
- 浅谈Dataset和Dataloader在加载数据时如何调用到__getitem__()函数
- Section - left closed right open
猜你喜欢

Drive brushless DC motor based on Ti drv10970
![[summary of leetcode weekly competition] the 81st fortnight competition of leetcode (6.25)](/img/d7/f49bca8da2ce286c18508325985990.png)
[summary of leetcode weekly competition] the 81st fortnight competition of leetcode (6.25)

How can non-technical departments participate in Devops?

Countermeasures of enterprise supply chain management system in UCA Era

Chow Tai Fook fulfills the "centenary commitment" and sincerely serves to promote green environmental protection

Microframe technology won the "cloud tripod Award" at the global Cloud Computing Conference!

可视化任务编排&拖拉拽 | Scaleph 基于 Apache SeaTunnel的数据集成

一键更改多个文件名字

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

Thymeleaf 模板的创建与使用
随机推荐
Mongdb learning notes
Postgresql 13 安装
微帧科技荣获全球云计算大会“云鼎奖”!
CYCA少儿形体礼仪 宁波市培训成果考核圆满落幕
一键更改多个文件名字
如何将电脑复制的内容粘贴进MobaXterm?如何复制粘贴
直播预告|如何借助自动化工具落地DevOps(文末福利)
[learning notes] connectivity and circuit of graph
裁员下的上海
通过npm 或者 yarn安装依赖时 报错 出现乱码解决方式
NBA赛事直播超清画质背后:阿里云视频云「窄带高清2.0」技术深度解读
面试突击62:group by 有哪些注意事项?
LeetCode_ 2 (add two numbers)
How to open an account of qiniu securities? Is it safe to open an account?
729. 我的日程安排表 I :「模拟」&「线段树(动态开点)」&「分块 + 位运算(分桶)」
World Environment Day | Chow Tai Fook serves wholeheartedly to promote carbon reduction and environmental protection
【学习笔记】阶段测试1
What about SSL certificate errors? Solutions to common SSL certificate errors in browsers
TS所有dom元素的类型声明
CPU设计实战-第四章实践任务二用阻塞技术解决相关引发的冲突