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 itscontent 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的车牌定位和识别视频和图片下载链接: