- Setup
Презентация: https://docs.google.com/presentation/d/1QTjIc7SYYPDvMjUz48SvLBXkPsa0FZaft1zA4e31U6g/edit?usp=sharing
$ sudo apt-get install -y wget git cmake build-essential
$ git clone <repo_path>
$ ./setup.sh # installs all required deps
- Simple processing
$ cd 1.Simple
$ cmake -DOpenCV_DIR=../opencv-build/
$ make
$ ./simple ../lena.png
- Live video
$ cd 2.Live
$ cmake -DOpenCV_DIR=../opencv-build/
$ make
$ ./live
- Face detection
$ cd 3.FaceDetect
$ cmake -DOpenCV_DIR=../opencv-build/
$ make
$ ./facedetect ../lena.png
- Edges - device
$ cd 3.FaceDetect
$ cmake -DCMAKE_TOOLCHAIN_FILE=../edison.toolchain.cmake -DOpenCV_DIR=../opencv-build-board/
$ make
scp ./facedetect root@192.168.2.15:/home/root/
scp ../lena.png root@192.168.2.15:/home/root/
$ ssh root@192.168.2.15 "/home/root/facedetect /home/root/lena.png"
- FaceDetect - device
$ cd 3.FaceDetect
$ cmake -DCMAKE_TOOLCHAIN_FILE=../edison.toolchain.cmake -DOpenCV_DIR=../opencv-build-board/
$ make
scp ./facedetect root@192.168.2.15:/home/root/
scp ../lena.png root@192.168.2.15:/home/root/
$ ssh root@192.168.2.15 "/home/root/facedetect /home/root/lena.png"
- Общее
Сессия screen для работы с устройством: sudo screen /dev/ttyUSB0 115200