/ANPR-Indonesian

ANPR Indonesian

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Automatic-Number-Plate-Recognition-Using-K-NN-Algorithm-on-Raspberry-Pi-4

Automatic number plate recognition for indonesian plate (white on black)

Method:

Vehicle detection using the Viola-Jones Algorithm, determining the location of the number plate using the contour of the license plate and number plate recognition using the K-NN algorithm.

Prerequest

  • python==3.6
  • opencv-python==4.1.1.26
  • numpy==1.17.3
    or install using
    pip install -r requirements.txt

How to run (Linux):

  • Image
    `python DETECT2.py
  • Video
    `python detectvd.py

Retrain

Retrain process will update classifications.txt and flattened_images.txt files
python GenData.py -d = <train_image>
example :
python GenData.py -d = train_image/train2.png
note: Just input base on marked object one by one and press esc to exit the training process

Check the model

python TrainAndTestData.py -d = train_image/train2.png

Result

vlcsnap-2020-09-10-10h12m08s321