https://github.com/davidyslu/NumberPlateRecognition
Recognize the number plate using TensorFlow in Python
https://github.com/davidyslu/NumberPlateRecognition
cnn-model python recognition tensorflow
Last synced: 10 months ago
JSON representation
Recognize the number plate using TensorFlow in Python
- Host: GitHub
- URL: https://github.com/davidyslu/NumberPlateRecognition
- Owner: yungshenglu
- License: gpl-3.0
- Created: 2018-07-12T06:41:41.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-03-27T04:47:27.000Z (over 7 years ago)
- Last Synced: 2024-11-13T23:07:45.208Z (over 1 year ago)
- Topics: cnn-model, python, recognition, tensorflow
- Language: Python
- Homepage:
- Size: 2.58 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Number Plate Recognition with TensorFlow
This repository is going to implement a simple number plate recognition using CNN model with TensorFlow. Please notice that this program can **only** recognize the pattern of the number plate as follow:

* More information about [number plate recognition with Tensorflow](http://matthewearl.github.io/2016/05/06/cnn-anpr/)
---
## File Structure
```bash
NumberPlate_Recognition # This is ./ in this repository
|--- input/ # Input image of number plate
|--- output/ # Output image of number plate's recognition
|--- common.py
|--- detect.py
|--- model.py
```
---
## Prerequisite
* Before executing, you need to install the following packages
* Install **OpenCV** using `pip`
```bash
$ [sudo] pip install opencv-python
```
* Install **TensorFlow** using `pip`
```bash
$ [sudo] pip install -U tensorflow
```
* When installing **TensorFlow**, you may meet the following problems. However, if install successfully, you can follow the execution
* Error message: `launchpadlib 1.10.3 requires testresources, which is not installed.`
```bash
$ [sudo] pip install launchpadlib
```
* Error message: `Cannot uninstall 'enum34'. ...`
```bash
$ sudo apt-get remove python-enum34
```
---
## Execution
> **NOTICE:** The image of number plate should be placed in the folder `./input/`
* Execution
```bash
# Make sure your current directory is "src/"
$ python detect.py t1.jpg weights.npz
$ python detect.py t2.jpg weights.npz
```
* Open the folder `./out/` to see the result of recognition. The filename of the result will same as the input file.
```bash
$ ls out/
t1.jpg t2.jpg
```
---
## References
* [TensorFlow](https://www.tensorflow.org/)
* [opencv-python 3.4.1.15](https://pypi.org/project/opencv-python/)
* [THE MNIST DATABASE](http://yann.lecun.com/exdb/mnist/)
---
## Contributor
> **NOTICE:** You can follow the contributing process [CONTRIBUTING.md](CONTRIBUTING.md) to join me. I am very welcome any issue!
* [David Lu](https://github.com/yungshenglu)
---
## License
[GNU GENERAL PUBLIC LICENSE Version 3](LICENSE)