树莓派4B摄像头安装和使用方法详解(支持拍照,录像,实时监控)

1,614次阅读
一条评论

接上篇,树莓派网络已经调通,开机通过ssh登录树莓派:

step1:硬件安装

这里采用的官方配套CSI接口摄像头,采用OV5647模组,定焦镜头,支持500万像素, 160度广视角;

注意:安装任何硬件,须在断电下进行,否则极易造成不可逆损坏;

安装摄像头较简单,按步骤即可,注意动作适当温柔, 我的pi上摄像头挡板已被弄断:disappointed:

1.找到摄像头接口;
树莓派4B摄像头安装和使用方法详解(支持拍照,录像,实时监控)

2.拉起csi挡板,两头同时轻轻抬起;

3.接入排线,注意别接反,一般把有蓝色胶带一面朝挡板;

4.平按下csi挡板,两头同时按下;

5.镜头板那端,同样方法接入即可;

step2:激活摄像头

通过ssh登录树莓派,输入命令

sudo raspi-config 

依次选择interface option-->P1 Camera,

树莓派4B摄像头安装和使用方法详解(支持拍照,录像,实时监控)
树莓派4B摄像头安装和使用方法详解(支持拍照,录像,实时监控)

保存退出,重启树莓派

step2:拍照;

raspistill -o hello.jpg -t 1000

-o: 生成文件名
-t:表示延迟1000ms拍摄
树莓派4B摄像头安装和使用方法详解(支持拍照,录像,实时监控)

这张图片就是在树莓派的chrome上传的,可见
1.图片很大,默认5m像素,2592x1944;
2.镜头装载驴车上,图像是倒立的;

raspistill -t 60000 -tl 3000 -o image_%d.jpg

-t 60000:一分钟以内
-tl 3000:每个3s,抓拍一张图片

还有许多调节拍照效果的参数,这里不是重点,等有时间再来细调下效果;

step3:录像;

raspivid -o hello.h264 -t 10000 -w 1920 -h 1080

-w:图像宽
-h:图像高

step4:实时监控;

1.通过浏览器访问;

sudo apt-get install motion

配置

sudo vim /etc/motion/motion.conf
daemon on  #off改成on
width 1920  
height 1080 #摄像头像素宽高
framerate 30 #fps
stream_maxrate 200
stream_localhost off    #设为off

启动motion:

#若之前 有启动motion,先杀掉
sudo killall -TERM motion
sudo motion

在浏览器访问:

http://raspberry IP:8081

树莓派4B摄像头安装和使用方法详解(支持拍照,录像,实时监控)

2.通过vlc链接

sudo raspivid -o - -rot 180 -t 0  -w 1920 -h 1080 -fps 30|cvlc -vvv stream:///dev/stdin --sout '#standard{access=http,mux=ts,dst=:9000}' :demux=h264 

-rot: 图像旋转180;
-t:延时
-w:输出视频宽度
-h:输出视频高度
-fps:输出视频帧数
access:http协议传输
dst:目标端口(输出端口)
demux:编码格式

vlc客户端:依次打开媒体网络串流
树莓派4B摄像头安装和使用方法详解(支持拍照,录像,实时监控)

输入以下地址
http://192.168.0.102:9000

树莓派4B摄像头安装和使用方法详解(支持拍照,录像,实时监控)

我配的1080P,还较流畅,延迟有些大;

正文完
 0
admin
版权声明:本站原创文章,由 admin 于2021-11-16发表,共计1200字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。
评论(一条评论)
Antoniodax 评论达人 LV.1
2025-08-13 16:27:42 回复

Getting it experience, like a human would should
So, how does Tencent’s AI benchmark work? Prime, an AI is allowed a gifted reproach from a catalogue of greater than 1,800 challenges, from institute materials visualisations and царство завинтившемуся полномочий apps to making interactive mini-games.

In this extensive daylight the AI generates the pandect, ArtifactsBench gets to work. It automatically builds and runs the jus gentium ‘spread law’ in a coffer and sandboxed environment.

To upon at how the germaneness behaves, it captures a series of screenshots on the other side of time. This allows it to corroboration respecting things like animations, haunts changes after a button click, and other high-powered person feedback.

In the fruit, it hands settled all this evince – the starting ask, the AI’s encrypt, and the screenshots – to a Multimodal LLM (MLLM), to perform upon the relinquish as a judge.

This MLLM deem isn’t righteous giving a battered философема and sooner than uses a proceedings, per-task checklist to ploy the conclude across ten conflicting metrics. Scoring includes functionality, proprietor the mob, and thrill with aesthetic quality. This ensures the scoring is pulchritudinous, compatible, and thorough.

The dynamic preposterous is, does this automated beak confab seeking communiqu‚ prepare the function in brook of happy taste? The results vehicle it does.

When the rankings from ArtifactsBench were compared to WebDev Arena, the gold-standard collaborate crease where bona fide humans философема on the most germane to AI creations, they matched up with a 94.4% consistency. This is a elephantine unthinkingly from older automated benchmarks, which solely managed hither 69.4% consistency.

On cork of this, the framework’s judgments showed across 90% similarity with maven friendly developers.
https://www.artificialintelligence-news.com/

 Windows  Chrome  俄罗斯列宁格勒圣彼得堡俄罗斯电信
粤ICP备2021172357号-1