当前位置:   article > 正文

[原创]树莓派4B-bullseye系统实现火灾监控-开启视频监控_树莓派防火防盗报警系统实验

树莓派防火防盗报警系统实验

1.使用摄像头

https://blog.csdn.net/weixin_51245887/article/details/124692953

2.安装监控

安装Motion:sudo apt-get install motion

卸载Motion: sudo apt-get remove motion

3.编译安装Mjpg-Streamer

Github地址:https://github.com/mikite/mjpg-streamer

1、切换源和更新

1.1.首先:lsb_release -a 查看版本

2、切换源

https://blog.csdn.net/weixin_34382392/article/details/121432851

2.1 修改为清华国内源:

备份:sudo cp /etc/apt/sources.list /etc/apt/sources.list.old

cd /etc/apt/

sudo nano source.list

修改为:

deb [arch=armhf] http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ bullseye main non-free contrib rpi

deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ bullseye main non-free contrib rpi

cd /etc/apt/sources.list.d/raspi.list

修改为:

deb http://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ bullseye main

2.2 更新

sudo apt-get update

sudo apt-get upgrade

报错:The following signatures couldn’t be verified because the public key is not available

输入指令:

sudo apt-key adv –keyserver keyserver.ubuntu.com –recv-keys 9165938D90FDDD2E

3、安装依赖包:

dpkg: error processing package *** (–configure)错误解决办法

https://blog.csdn.net/dou3516/article/details/105120221

sudo apt-get install libjpeg8-dev #JPEG支持库

sudo apt-get install imagemagick

sudo apt-get install libv4l-dev

sudo apt-get install cmake #下载编译工具

sudo apt-get install git #用git下载软件

sudo apt-get install unzip #解压缩的软件

下载软件:

wget https://github.com/jacksonliam/mjpg-streamer/archive/master.zip

解压:

unzip master.zip

编译:

pi@raspberrypi:~ $ cd mjp*g-*

pi@raspberrypi:~/mjpg-streamer-master $ cd mjpg-*

pi@raspberrypi:~/mjpg-streamer-master/mjpg-streamer-experimental $ make

pi@raspberrypi:~/mjpg-streamer-master/mjpg-streamer-experimentalsudo $ make install

pi@raspberrypi:~/mjpg-streamer-master/mjpg-streamer-experimental $ cd $home

pi@raspberrypi:~ $

运行指令:

/usr/local/bin/mjpg_streamer -i “/usr/local/lib/mjpg-streamer/input_uvc.so -n -f 30 -r 1280×720” -o “/usr/local/lib/mjpg-streamer/output_http.so -p 8080 -w /usr/local/share/mjpg-streamer/www”

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-SCXP7qpg-1659349952441)(https://i0.wp.com/www.dapan.cc/wp-content/uploads/2022/07/clipboard-3.png?ssl=1&is-pending-load=1)]

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-TCA3jkuY-1659349952442)(https://i0.wp.com/www.dapan.cc/wp-content/uploads/2022/07/clipboard-3.png?ssl=1)]

浏览器访问:http://树莓派IP:8080/?action=stream

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/凡人多烦事01/article/detail/673938
推荐阅读
相关标签
  

闽ICP备14008679号