Ready-to-use Google Colab file: https://colab.research.google.com/drive/1_8Ic31j422YjWGMxzDx0SRIINVQkYad5?usp=sharing
- License plate part "detect_plate.py"
github.1.mp4
- Line crossing cars counter part "detect_cross.py"
traf.2._Trim.1.mp4
Features
- Count license plates or cars if they cross the line on the screen and take shots of their plates and send them to the database
- On the database, license plates get applied super-resolution process for better vision
- Code can run on Both (CPU & GPU)
- Download the project files by link: https://drive.google.com/drive/folders/1i2m9rY8wdYdGmz3jo65C1zOcR2O-trln?usp=sharing
- make sure the project files are referenced correctly in colab notebook (
%cd /content/drive/MyDrive/yolo_Car/yolov7
parts): https://colab.research.google.com/drive/1_8Ic31j422YjWGMxzDx0SRIINVQkYad5?usp=sharing - You are good to go!
%cd /content/drive/MyDrive/yolo_Car/yolov7
!python detect_plate.py --weights /content/drive/MyDrive/yolo_Car/plate/weights/best.pt --conf 0.1 --source /content/drive/MyDrive/yolo_Car/Plate.mp4 --video_frame 10
%cd /content/drive/MyDrive/yolo_Car/yolov7
!python detect_cross.py --weights "yolov7.pt" --conf 0.1 --source /content/drive/MyDrive/yolo_Car/traf.mp4 --video_frame 2