python编程基于yolov5的车牌定位和识别系统

车牌识别行业已具备一定的市场规模,在电子警察、公路卡口、停车场、商业管理、汽修服务等领域已取得了部分应用。

import glob 
# Contains all .txt files except our listof classes
txt_files = [file for file inglob.glob('images/*.txt') if file != 'images/classes.txt']
# Read every .txt file and store it'scontent into variable curr
for file in txt_files:
   with open(file, 'r') as f:
       curr = f.read()     
# Replace class index 15 with 1 and storeit in a variable new
new = curr.replace('15 ', '1 ') 
# Once again open every .txt file and makethe replacement
for file in txt_files:
   with open(file, 'w') as f:
       f.write(new) 

效果图:

效果视频:

python 基于yolov5的车牌定位和识别视频和图片

下载链接:

python基于YOLOV5的车牌定位和识别源码可识别视频和图片-互联网文档类资源-CSDN下载

猜你喜欢

转载自blog.csdn.net/babyai996/article/details/121740184