The objective is to count the plates using object detection and object tracking. The repository used the PyimageSearch Simple Object Tracking code frome here. The object detection model used is pre-trained Faster R-CNN model trained on Detectron2 framework and a custom dataset.
We encourage you to use conda environment. Once you create an environment use follwoing command to get the environment ready
pip install -r requirements.txt
Follow instruction given in PlateCount_FasterRCNN.ipynb file for training the model. You can use the data from the roboflow account provided in the file.
Run the command to test on an Image
python test_images2.py
Run the command to test on a Video
python test_video.py
Make sure to provide right path of video, model file and image file in the script.
- Make sure the environment is properly installed
- Provide complete path of the model file
- Detectron2 installation will take time. Be patient.