安装motion
$sudo apt-get update
$sudo apt-get install motion
配置motion
sudo nano /etc/default/motion
sudo nano /etc/motion/motion.conf
主要改这些参数
//让Motion作为守护进程运行
daemon on
...
//用这个端口号来读取数据
stream_port 8081
...
//网络上其它主机也可以看到
stream_localhost off
...
//帧速率为每秒30帧
stream_maxrate 30
...
//摄像头捕捉视频的帧速率为每秒30
framerate 30
测试motion
开启服务
sudo service motion start
关闭服务
sudo service motion stop
树莓派配置motion实现流畅画面
配置motion
编辑/etc/default/motion文件
修改:
start_motion_daemon=yes
即允许motion后台运行
编辑/etc/motion/motion.conf
将daemon修改为on
修改stream_localhost off
修改framerate 100
修改auto_brightness on
minimum_motion_frames 100
stream_maxrate 100
百度ai离线SDK部署完成后启动服务
sudo service easyedge-iec start
树莓派安装opencv-python
查看python及pip版本
python --version
python3 --version
pip --version
pip3 --version
依次安装依赖库
sudo apt-get install libhdf5-dev
sudo apt-get install libatlas-base-dev
sudo apt-get install libjasper-dev
sudo apt-get install libqt4-test
sudo apt-get install libqtgui4
安装opencv-python
pip install opencv-python -i https://mirrors.aliyun.com/pypi/simple
pip install opencv-contrib-python -i https://mirrors.aliyun.com/pypi/simple