An open API service indexing awesome lists of open source software.

https://github.com/rinaldipakpahan/anpr-indonesian

ANPR Indonesian
https://github.com/rinaldipakpahan/anpr-indonesian

computer-vision knn-algorithm number-plate-recognition

Last synced: 22 days ago
JSON representation

ANPR Indonesian

Awesome Lists containing this project

README

        

# 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 = `

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](https://user-images.githubusercontent.com/26915668/93845632-c0b6fd80-fccb-11ea-8275-08d1cc20fff6.png)