软件方面,用到的linux motion
官网的介绍如下:Motion 可以监视视频信号并且能够检测视频信号中的图片帧有没有较大的改变,通俗说法就是可以检测监视中的视频内容是否有所变化。
Motion is a program that monitors the video signal from one or more cameras and is able to detect if a significant part of the picture has changed.
Or in other words, it can detect motion.
按照官方教程在树莓派里安装Motion,然后需要做一些设置。