A simple license plate number recognizer/extractor. Based on Nicholas Renotte's ANPR Tutorial
- Anaconda (v4.5.11) => for the virtual environment, can use alternatives
- Ubuntu 18.04 on WSL2
- OpenCV
- GPU for use in PyTorch
- Proper GPU drivers (for NVIDIA, see here)
- (Optional) A dispaly server for running GUI programs designed for the X Window System (e.g. VcXsrv)
- VS Code with WSL link
For new environemnt
conda create --name <env-name> --file requirements.txt
or, for existing (hopefully sparse) environments
conda install --file requirements.txt
That should be it!
If PyTorch complains about GPU compatibility, try the following for RTX 3000 series NVIDIA GPUs:
conda install pytorch torchvision cudatoolkit=11 -c pytorch-nightly
python main.py -i <inputfile>
Where inputfile
is the path to your image.
There are some example images in the images
directory.