This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
iot:spz [2022/01/20 15:55] – Jan Forman | iot:spz [2022/01/20 15:55] (current) – Jan Forman | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== OpenALPR (get image) ====== | ||
+ | < | ||
+ | while [ 1 ] | ||
+ | do | ||
+ | wget --quiet http:// | ||
+ | status=$(alpr -c eu -p cz -n 5 -j / | ||
+ | if [ " | ||
+ | curl --header " | ||
+ | fi | ||
+ | sleep 2 | ||
+ | done</ | ||
+ | < | ||
+ | #!/bin/bash | ||
+ | nohup / | ||
+ | </ | ||
+ | |||
+ | ====== Install OpenALPR ====== | ||
+ | < | ||
+ | sudo add-apt-repository ppa: | ||
+ | sudo apt-get update | ||
+ | sudo apt install -y libtool m4 automake cmake pkg-config libopencv-dev liblog4cplus-1.1-9 liblog4cplus-dev build-essential libcurl4 libcurl4-openssl-dev beanstalkd | ||
+ | |||
+ | cd /usr/src | ||
+ | wget https:// | ||
+ | tar -xvzf 1.82.0.tar.gz | ||
+ | cd leptonica-1.82.0 | ||
+ | ./ | ||
+ | ./configure | ||
+ | sudo make | ||
+ | sudo make install | ||
+ | |||
+ | cd /usr/src | ||
+ | wget https:// | ||
+ | tar -xvzf 4.1.3.tar.gz | ||
+ | cd tesseract-4.1.3/ | ||
+ | ./ | ||
+ | ./configure --enable-debug LDFLAGS=" | ||
+ | sudo make | ||
+ | sudo make install | ||
+ | sudo ldconfig | ||
+ | tesseract --version | ||
+ | |||
+ | cd /usr/src | ||
+ | git clone https:// | ||
+ | cd openalpr/ | ||
+ | mkdir build | ||
+ | cd build | ||
+ | cmake -DCMAKE_INSTALL_PREFIX: | ||
+ | make && sudo make install | ||
+ | </ | ||
+ | |||
+ | ===== openalpr.conf ===== | ||
+ | < | ||
+ | contrast_detection_threshold = 0.3 | ||
+ | skip_detection = 0 | ||
+ | max_plate_width_percent = 100 | ||
+ | max_plate_height_percent = 100 | ||
+ | </ | ||
+ | |||
+ | ===== alrpd.conf ===== | ||
+ | < | ||
+ | [daemon] | ||
+ | country = eu | ||
+ | pattern = cz | ||
+ | stream = rtsp:// | ||
+ | site_id = plzen | ||
+ | company_id = company | ||
+ | store_plates = 0 | ||
+ | store_plates_location = /opt/ | ||
+ | analysis_threads = 2 | ||
+ | topn = 1 | ||
+ | upload_data = 1 | ||
+ | upload_address = https:// | ||
+ | </ |