树莓派motion使用

安装motion

sudo apt-get install motion

启动motion

sudo motion

后台启动

sudo nano /etc/default/motion

 以后台方式启动,将start_motion_daemon=no改为start_motion_daemon=yes,其次还需要配合/etc/motion/motion.conf的daemon on,这样启动motion不会占用Terminal。

# set to 'yes' to enable the motion daemon
start_motion_daemon=yes

其他设置

sudo nano /etc/motion/motion.conf

 这个文件里面配置项很多,这里列举几个常用的~~

# 后台启动
# Start in daemon (background) mode and release terminal (default: off)
daemon on# 摄像头来源 多个摄像头配置时用
# Videodevice to be used for capturing  (default /dev/video0)
# for FreeBSD default is /dev/bktr0
videodevice /dev/video0# 图像宽度
# Image width (pixels). Valid range: Camera dependent, default: 320
width 640# 图像高度
# Image height (pixels). Valid range: Camera dependent, default: 240
height 480# 帧率
# Maximum number of frames to be captured per second.
# Valid range: 2-100. Default: 100 (almost no limit).
framerate 20############################################################
# HTTP Based Control
############################################################# 监听端口 浏览器访问的端口号
# TCP/IP port for the http server to listen on (default: 0 = disabled)
webcontrol_port 8082# 限制是否仅仅本机访问
# Restrict control connections to localhost only (default: on)
webcontrol_localhost off# 浏览器显示的方式~ 一般设为on 就可以看到图像
# Output for http server, select off to choose raw text plain (default: on)
webcontrol_html_output on# 这个应该是访问的账户密码
# Authentication for the http based control. Syntax username:password
# Default: not defined (Disabled)
; webcontrol_authentication username:password# Maximum framerate for stream streams (default: 1)
stream_maxrate 20############################################################
# Live Stream Server
# 这里面的配置和上面的大同小异
# 主要是Live Stream Server配置的服务访问的端口号仅仅只有图像
# HTTP Based Control配置的服务访问后有图像+一些选项~
############################################################# The mini-http server listens to this port for requests (default: 0 = disabled)
stream_port 8081# 50% scaled down substream (default: 0 = disabled)
# substream_port 8082# Quality of the jpeg (in percent) images produced (default: 50)
stream_quality 50# Output frames at 1 fps when no motion is detected and increase to the
# rate given by stream_maxrate when motion is detected (default: off)
stream_motion off# Maximum framerate for stream streams (default: 1)
stream_maxrate 20# Restrict stream connections to localhost only (default: on)
stream_localhost off

访问

 浏览器访问ip:端口号,端口号就是上面配置,ip地址就是树莓派的ip地址~~
 HTTP Based Control配置的端口访问的内容:

 Live Stream Server配置的端口访问的内容:

一键三连加关注,村头带你不迷路!哈哈哈

树莓派 motion4.1.1使用相关推荐

  1. VLOG丨树莓派Raspberry Pi 3安装PLEX并挂载USB硬盘打造最牛的微型家庭影音服务器2018...

    视频介绍 树莓派3安装目前最流行的PLEX服务器,实现既能最大限度降低功耗,也能随时随地观看分享影片. 一.在树莓派下安装PLEX媒体服务器 1.在终端,将你的树莓派更新至最新 sudo apt up ...

  2. gpio引脚介绍 树莓派3b_如何让LabVIEW程序运行在树莓派3B(此处有坑)

    上次转载了LabVIEW部署树莓派的文章后,很多小伙伴很兴趣,一个个都说要把压箱底的树莓派拿出来清下灰尘,也不知道到底拿出来没有. 放个之前文章链接如下: 零基础上手树莓派+免费正版LabVIEW C ...

  3. 首款微控制器级树莓派 Pico,超廉价只需4美元

    2021年1月21日,树莓派基金会发布了首款微控制器级产品:Raspberry Pi Pico. 该产品基于全新的 RP2040 芯片构建,售价仅 4 美元,国内标准售价 29.99 元人民币,目前在 ...

  4. 70美元桌面电脑,树莓派400:键盘式集成开发板

    2020年11月2日,树莓派基金会正式发布"树莓派400"(Raspberry Pi 400),一个内置树莓派4计算机的紧凑型键盘,售价70美元. 用户只需将其两个micro HD ...

  5. 树莓派/PC实现实时摄像头数据共享(Python—picamera)

    上次实验使用Python-OpenCV实现,发现传输效果并不是很理想,接下来使用Python和picamera实现树莓派/PC实时摄像头数据共享,主要也可分为服务器和客户端两部分. 服务器(PC/树莓 ...

  6. 树莓派/PC实现实时摄像头数据共享(Python—OpenCV)

    使用Python和OpenCV实现树莓派/PC实时摄像头数据共享,主要分为服务器和客户端两部分. 服务器Demo如下: #服务器端import socket import threading impo ...

  7. 基于深度学习的口罩规范佩戴检测【树莓派+PC训练、测试】

    训练.测试.部署代码下载地址:下载地址 一.硬件: PC端运行:Windows10或11(无需GPU,有最好)或MacOS 都测试可行 树莓派运行:树莓派 4B model B 8G 版 USB RG ...

  8. 树莓派3b+目标检测: tflite 运行 mobilenet ssd

    1. 硬件环境:树莓派3b+和USB摄像头 2. 操作系统:2019-09-26-raspbian-buster.zip https://downloads.raspberrypi.org/raspb ...

  9. 小R SLAM机器人树莓派3b+ ROS kinetic 环境搭建笔记

    上位机环境搭建基本应该没什么难的,装一个Ubuntu16.04,然后根据ros官方指导来操作即可 http://wiki.ros.org/kinetic/Installation/Ubuntu 树莓派 ...

最新文章

  1. 【6月月报】新书加印与勘误,七大专栏齐上线,知识星球大改版!
  2. 怎样检查python环境是否安装好_如何搭建pytorch环境的方法步骤
  3. MemSQL初体验 - (3)性能测试
  4. phpMyAdmin - Error
  5. 深度学习之基于Xception实现四种动物识别
  6. sql server 2012远程链接的方法及步骤
  7. tomcat 实现 文件共享,查看文件目录
  8. ImageLoader加载图片
  9. 解读顶会CIKM‘21 Historical Inertia论文
  10. html checkbox 透明度,【求助】关于表达式checkbox中不透明度的设置
  11. 用css控制背景图片的位置,大小
  12. 程序员,你会说话吗?
  13. 很详细的解决Tomcat乱码问题
  14. DoG算子和LoG算子
  15. 受力分析软件_基于非线性分析的建筑结构设计与优化
  16. OverFeat笔记
  17. 英文的pdf文件怎么翻译成中文
  18. 2022年R2移动式压力容器充装特种作业证考试题库及在线模拟考试
  19. org.gjt.mm.mysql.Driver与com.mysql.jdbc.Driver区别
  20. 入门c语言。(1建立开发环境)

热门文章

  1. 【郭东白架构课 模块一:生存法则】10|法则四:架构设计中怎么判断和利用技术趋势?
  2. 《电路基础》电阻|电容|电感公式备忘
  3. www.(万维网WWW.缩写)
  4. 【附源码】Python计算机毕业设计社区论坛
  5. [转]服装店运营计划书__201
  6. linux命令复制指定文件到指定文件夹
  7. osg中NDC坐标转换为世界坐标
  8. 报错:BeanDefinitionStoreException: Could not resolve bean definition resource pattern [classpath:sprin
  9. [转]一个老人去世的全过程,看了想哭
  10. 2021年电工(初级)考试平台及电工(初级)