코드는 라즈베리파이에서 작동

LicensePlateDetection

version
python 3.9
kernel 6.0.12

Data resource

Plate Detection

Number Detection 데이터셋 > 자동차 차종/연식/번호판 인식용 영상

Prerequisite

chmod +x install_cv4.5.1_rasbian.sh
chmod +x install_tensorflowlite2.6.0_rasbian.sh
./install_cv4.5.1_rasbian.sh
./install_tensorflowlite2.6.0_rasbian.sh
pip3 install https://github.com/google-coral/pycoral/releases/download/v2.0.0/tflite_runtime-2.5.0.post1-cp39-cp39-linux_armv7l.whl

Model train

tensorflow tutorial

plate detect train

number_detect train

Start program with inserting module

sudo insmod gpio_driver.ko
sudo insmod seg_driver.ko
chmod +x termproject_v3
sudo ./termproject_v3

Input

keyboard input = 'c'

Result

keyboard input = 'd'

python3 TFLite_detection_image_license.py --modeldir= --labels=labelmap.txt --image=test_license2.png --save_results --noshow_results --graph=detect_plate.tflite

python3 TFLite_detection_image.py --modeldir= --labels=labelmap2.txt --image=./results/test_license2_crop0.png --save_results --noshow_results --graph=detect_number2.tflite

Quit program with removing module

keyborad input = 'q'

sudo rmmod gpio_driver.ko
sudo rmmod seg_driver.ko