环境要求: python >=3.6 pytorch >=1.7
直接运行detect_plate.py 或者运行如下命令行:
python detect_plate.py --detect_model weights/plate_detect.pt --rec_model weights/plate_rec_color.pth --image_path images --output result
python detect_plate.py --detect_model weights/plate_detect.pt --rec_model weights/plate_rec_color.pth --video test.mp4
视频文件为test.mp4 保存为result.mp4
车牌检测训练链接如下:
车牌识别训练链接如下: