Clone repo and install requirements.txt in a Python>=3.7.0 environment, including PyTorch>=1.7.
git clone https://github.com/cakiryusuff/Car-Plate-Detection.git # clone
cd Car-Plate-Detection
pip install -r requirements.txt # install
Then you should download tesseract to your computer from here https://github.com/UB-Mannheim/tesseract/wiki after that You should show path of tesseract.exe on Plate-Detection.py
pytesseract.pytesseract.tesseract_cmd = "C:/Program Files/Tesseract-OCR/tesseract.exe" #Right Here
model = torch.hub.load('', 'custom', path='best1500.pt', source='local')
cap = cv2.VideoCapture("PexelsVideos2103099.mp4") #You can change video from here
Now you can execute Plate-Detection.py
python Plate-Detection.py
Results be like: