Raspberry Pi使用USB摄像头远程监控
用到了开源项目:MJPG-streamer
开源项目的下载地址:
http://sourceforge.net/p/mjpg-streamer/code/HEAD/tree/mjpg-streamer/
参考了文章:
http://www.eeboard.com/bbs/forum.php?mod=viewthread&tid=12533
好了,开始我们的工作:
ls /dev/vid*
发现video0设备,说明识别我的USB摄像头。(罗技的c270)
安装必要的软件集:
sudo apt-get install subversion
sudo apt-get install libv4l-dev
sudo apt-get install libjpeg8-dev
下载mipg-steamer软件,编译并安装
下载地址http://pan.baidu.com/s/1eQiP2x0
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAACWCAIAAAAaKMa8AAAgAElEQVR4nO2da0xb63qgXx0dnUpLatdoPLLGlQ8aj4VcWxauEQwgQzEXEQKEa0LCJQkJAWJCNolDYAMhGDDG2Bjfl9daxoRNQi6bZCfZMyN19tw1Ui8z6kyr055W7Zyq00rt9HLaTnuq06OzpcwPG2Pw+pa9HHPJzvuIHzve8F3fb73r5u8BQBAEQRAEQRAE+VihVKa2i+3VGtlJN+S0IjO0dNVpKKl/pu1ZXOwuPIoG5ateSm3uaivGef9woGiBMKRVJdUmnTztdxWG6pqyQvrw58q6oRs1haaBkTMFR9NI5GNBVdvTrEuPSEXtRDgWds7bPHx0qfNYDoHqtrnw4+eh/hM43uaG3vLZS/8FlbQ/klXdZ31XdQBA6XuWuJ2nzlblkbSOWG9mlC2ul0/vGI64RQchxOE3HUp7wcbuPPd2SwyjOLSu3eoMsrGnz9cPxaGqaToUZTwrrmCUX7ls2MsgsvIRT5T3rzrcIZ6xdR8YcOMY5+8vvxYM38gcJYqa8TWG3XjyzHP+SDLQUZePHCUy8zS30n544qji0QhnNckAAIqGw8Fr2uNpjX4k4r/8wSQVqrDCXKyUdiBUdTqjtrOKxL/oqkl2ue04ksrBejOhMJgrNWmnskeJcBx+FFBlVs5zMaekQqmrmmt0CtME5z6QVCjjKBu+aaQAAAraHRt7M1/Yuxa2VsYvQVUdjo3Fpv2IkNVMc46O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4C99Wz7wH/76cF1Pg4kaAeTf/dnEH//C5djv/GjvF7/+iy97/hkoh//jX78T4m/+842f/1Z56A9+kiwztZZ370TmSHBwMteIIAhyFMDef3z9d3/0m7/667/zfw9njXdf//0ff+/Xf+W//86f/sPXhDL+8a/+4H/+6v/4vb/8x70PfvKHnOk737X8l7/64R/97vd/8Bc/PvCHX//Dn//v7//eH/3wH9MLSuWH/25A8XMtu3+2/7c//ssf/PZv/tb3/+TvfiqxKIEG/+B7v/Eb3/vBX+3/4cGi0nokga9/9Cff+7Vf+Y3f/+FPcvjjDEWT5khocBAEQU6A/w/MUUctTQZUKgAAAABJRU5ErkJggg==" alt="" />
make USE_LIBV4L2=true clean all
make DESTDIR=/usr install
运行stream.sh(自己新建)
内容如下:
#!/bin/sh STREAMER=mjpg_streamer
DEVICE=/dev/video0
RESOLUTION=320x240
FRAMERATE=
HTTP_PORT= PLUGINPATH=/usr/lib #$STREAMER -i "$PLUGINPATH/input_uvc.so -n -d $DEVICE -r $RESOLUTION -f $FRAMERATE" -o "$PLUGINPATH/output_http.so -n -p $HTTP_PORT " &
$STREAMER -i "$PLUGINPATH/input_uvc.so -n -d $DEVICE -r $RESOLUTION -f $FRAMERATE -y YUYV" -o "$PLUGINPATH/output_http.so -n -p $HTTP_PORT " &
chmod 777 stream.sh
./stream.sh
打开浏览器(pi的IP地址是192.168.1.100)
http://192.168.1.100:8001/?action=stream
Raspberry Pi使用USB摄像头远程监控的更多相关文章
- Raspberry Pi开发之旅-远程监控
1.安装辅助工具 1 2 sudo apt-get install libjpeg8-dev sudo apt-get install cmake 2.编辑源文件 1 2 sudo git clone ...
- 【Raspberry Pi】USB无线网卡自动连接
Raspberry Pi 使用USB无线网卡的时候不会因为路由重启而掉线. #!/bin/bash while true ; do if ifconfig wlan0 | grep -q " ...
- Raspberry Pi 3b+ 配置摄像头
1.开启摄像头硬件接口 raspi-config > Interfacing Options > Camera 2.测试 raspistill -v -o test.jpg
- Raspberry Pi 摄像头模块入门
目录 一.摄像头模块安装 二.使用命令控制摄像头 三.使用Python程序控制摄像头 四.基于vlc的Raspberry Pi摄像头实时监控 参考资料 Raspberry Pi提供了摄像头模块的接口, ...
- 树莓派(Raspberry Pi)USB无线网卡自动连接,二代B
Raspberry Pi 使用USB无线网卡的时候不会因为路由重启而掉线. #!/bin/bash while true ; do if ifconfig wlan0 | grep -q " ...
- 如何在Raspberry Pi 3B中安装Windows 10 IoT Core
Windows 10 IoT Core简介 Windows 10 IoT是微软专门为物联网生态打造的操作系统,Windows 10 IoT Core则是Windows 10 IoT 操作系统的核心版本 ...
- Raspberry pi之wifi设置-3
1.配件套装里最好有wifi网卡,非常小如下图 插入Raspberry pi的USB口,用lsusb来查看USB设备列表如下 pi@raspberrypi~/Desktop $ lsusb Bus 0 ...
- 【智能无线小车系列十】通过USB摄像头实现网络监控功能
如果仅有静态图像可能还不足以满足我们的需求,我们可能会需要用到实时的监控功能.这里介绍一款小应用:motion.motion的功能可强大了,不仅可以将监控的画面通过视频传输,实时展现,更为强大的是,m ...
- DIY远程移动图像监测(tiny6410+USB摄像头+motion+yeelink+curl)
看到有博客上采用motion搭建移动图像监测系统,感觉很强大,但大多缺少远程监测能力,大多局限于局域网.OK,笔者手头刚好有一个30W像素的USB摄像头,那么借用yeelink服务,也来DIY一把,哈 ...
随机推荐
- 解决ie8下h5元素兼容性的问题
HTML5的语义化标签以及属性,可以让开发者非常方便地实现清晰的web页面布局,加上CSS3的效果渲染,快速建立丰富灵活的web页面显得非常简单. HTML5的新标签元素有: <header&g ...
- CSS浮动特性总结
1.假设现在CSS中没有浮动(float)属性,那么会变成一个什么样子.我们会发现,目前流行采用浮动方法实现的无论是分栏布局,还是列表排列我们都可以用其他一些CSS属性(不考虑table)代替实现,唯 ...
- 51nod1079中国剩余定理
/** *中国剩余定理 */ #include<iostream> #include<cstdio> #include<map> #include<cstri ...
- div重叠不变形
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title&g ...
- MVC 中 使用TagBuilder扩展HtmlHelper
TagBuilder就是标签建造器,我们就用它来建造属于我们自己标签生成函数. 无废话,直接上代码 例: using System.Web.Mvc; public static class HtmlE ...
- Windows下使用cmd启动Oracle EM和sql命令使用+主机身份认证
(1)cmd命令下使用sql命令 >sqlplus / as sysdba sql>select * from v$version; (2)cmd命令下启动Oracle EM 安装完ora ...
- 一步步学习ASP.NET MVC3 (14)——Route路由
请注明转载地址:http://www.cnblogs.com/arhat 由于今天是星期六,所以多写几篇,感觉前几天的忙碌没有及时发布文章,趁着周末老魏尽力的多写几篇文章.因为本系列基本上快结束了,所 ...
- qt 5 小练习 创建无边框界面
我们大家都知道QT5 自带的界面不是那么美观,并且每个软件我们都发现他们的边框是自定义的,所以我决定写一篇这样的博文,也许已经有许许多多篇大牛写的论文了,但我还是想写一篇记录自己的学习QT的历程 首先 ...
- npm常用命令解析
npm是什么 NPM的全称是Node Package Manager,是随同NodeJS一起安装的包管理和分发工具,它很方便让JavaScript开发者下载.安装.上传以及管理已经安装的包. npm ...
- .net 访问远程的MSSQL报System.AccessViolationException错误的解决方法
访问远程的数据库时 报错,本地数据库正常 netsh winsock reset --运行此命令,解决. netsh winsock reset命令,作用是重置 Winsock 目录.如果一台机器 ...