5d12855fad
added object detection code base on yolov5 machine vision model. also added a stat file so motion and object detection values can be monitored in real time if used with the 'watch' command.
20 lines
361 B
Bash
20 lines
361 B
Bash
#!/bin/sh
|
|
|
|
apt update
|
|
apt install -y cmake g++ wget unzip git ffmpeg libavcodec-dev libavformat-dev libavutil-dev libswscale-dev
|
|
cd ./src
|
|
if [ -d "./opencv" ]
|
|
then
|
|
cd ./opencv
|
|
git pull origin
|
|
cd ..
|
|
else
|
|
git clone https://github.com/opencv/opencv.git
|
|
fi
|
|
cd ..
|
|
mkdir -p ./.build-opencv
|
|
cd ./.build-opencv
|
|
cmake ../src/opencv
|
|
make -j4
|
|
make install
|