Security Camera Script running on Raspberry Pi
sudo apt-get install \
python3 \
python3-picamera \
python3-requests
# opencv-3.x
wget https://github.com/mt08xx/files/raw/master/opencv-rpi/libopencv3_3.4.4%2Brpi01-20181119.2_armhf.deb && \
sudo apt install -y ./libopencv3_3.4.4+rpi01-20181119.2_armhf.deb && \
sudo ldconfig && \
rm ./libopencv3_3.4.4+rpi01-20181119.2_armhf.deb
-
Clone
git clone https://github.com/yhino/security-cam-pi.git
-
Create
run.sh
, It's easy to copyrun.sh.sample
cp run.sh.sample run.sh
-
Change the "YOUR-SLACK-TOKEN" and "YOUR-SLACK-CHANNEL" in
run.sh
-
Install pretrained model
mkdir -p models && \ (cd models && \ wget https://github.com/rdeepc/ExploreOpencvDnn/raw/master/models/frozen_inference_graph.pb && \ wget https://raw.githubusercontent.com/rdeepc/ExploreOpencvDnn/master/models/ssd_mobilenet_v2_coco_2018_03_29.pbtxt )
Run simple.
/your-install-dir/run.sh
When want to run debug mode,
DEBUG=on /your-install-dir/run.sh