Installation on Raspberry Pi 4
-
currently tested on debian buster 64 bit and python 3.7 (https://forums.raspberrypi.com/viewtopic.php?f=117&t=275370)
-
install requirements in pi_number_plate_detection and in yolo directory (if there are problems with torch: pytorch/vision#5919 (comment), works with torch 1.10.0 and torchvision 0.11.1)
-
run "sudo apt update -y"
-
run "sudo apt install tesseract-ocr" and "sudo apt install libtesseract-dev" (tesseract-ocr/tesseract#1799 (comment))
-
update tesseract to v5 (maybe by: https://techviewleo.com/install-and-use-tesseract-ocr-on-debian/)
-
On error:"Tesseract couldn't load any languages! Could not initialize tesseract." -> exchange file eng.traineddata in "/usr/share/tesseract-ocr/5/tessdata/" with current on git via "wget https://github.com/tesseract-ocr/tessdata/raw/main/eng.traineddata" answered here: (https://stackoverflow.com/a/49030935/18002090)
-
run main.py to start the app
-
for autostart setup systemd service