- Start mit Clean Image von Raspberry (Raspbian Buster Lite - Minimal image based on Debian Buster)
1.1 Infos
diskutil list
diskutil unmountDisk /dev/disk2
sudo dd bs=1m if=path_of_your_image.img of=/dev/disk2 conv=sync
sudo dd bs=1m if=/Users/tluscre1/Documents/Studium.Local/PREN_STAGING/2019-07-10-raspbian-buster-lite.img of=/dev/disk2 conv=sync
Progress = press Ctrl+T
activate ssh
touch /Volumes/boot/ssh
cp ~/Documents/Studium.Local/PREN/hslu-pren-raspi-install/config/molly_wpa_supplicant.conf /Volumes/boot/wpa_supplicant.conf
disk eject
diskutil eject /dev/disk2
connect to pi
ssh pi@192.168.1.xx
username and password
user = pi
pass = raspberrypi
Deploy bin script
sftp pi@192.168.1.129 <<END
mkdir install
cd install
lcd /Users/tluscre1/Documents/Studium.Local/PREN/hslu-pren-raspi-install/bin
lpwd
put *
END
cd $HOME/install
touch molly_install.log
./01_molly_install.sh > molly_install.log
cd $HOME/install
./02_molly_install.sh > molly_install.log
tail -f molly_install.log
-
Auf dem Pi unter "/home/pi" einen Ordner "install" erstellen
-
Ganzen Inhalt dieses Ordners auf Pi "/home/pi/install" kopieren und 'sudo ./rpi_install.sh' starten
3.1. Um ein Log zu erhalten, start mit 'sudo ./rpi_install.sh | tee rpi_install.log'
- Installation startet und installiert: Updates, Sensor Libraries, OpenCV4, Tesseract4
Die OpenCV4 Compilation dauert ca 2h, alternativ kann via pip Opencv3.4 installiert werden, das ist precompiled
- Manuell noch die Custom Tesseract library für Numbers nachladen
https://github.com/Shreeshrii/tessdata_shreetest
Check if not already installed (kapitel in bearbeitung)
sudo apt-get install g++ # or clang++ (presumably)
sudo apt-get install autoconf automake libtool
sudo apt-get install pkg-config
sudo apt-get install libpng-dev
sudo apt-get install libjpeg8-dev
sudo apt-get install libtiff5-dev
sudo apt-get install zlib1g-dev
Follow these Instructions:
https://github.com/tesseract-ocr/tesseract/wiki/Compiling-%E2%80%93-GitInstallation