Open main menu

Wiki-Orange Pi β

Changes

Orange Pi 5 detail

310 bytes added, 14:39, 23 April 2023
查询 USB 摄像头测试
10) For the test method of Bluetooth, please refer to <span style="color:#0066CC;">[[Orange Pi 5 detail#How to use Bluetooth | the section on Bluetooth usage]]</span>, so I won’t go into details here<br><br>
=== 查询 USB 摄像头测试 camera test ===1) 首先需要准备一个下图所示的或者类似的支持 First, you need to prepare a USB camera that supports UVC 协议的 protocol as shown in the figure below or similar, and then insert the USB 摄像头,然后将USB 摄像头插入到 camera into the USB port of the Orange Pi 开发板的 USB 接口中development board<br><br>
[[Image:Pi-5-details2-pic07.png]]<br><br>
2) 通过 Through the v4l2-ctl 命令可以看到 command, you can see that the device node information of the USB 摄像头的设备节点信息为camera is '''/dev/video0'''<br>
{| class="wikitable" style="width:800px;"
|-
{| class="wikitable" style="width:800px;background-color:#ffffdc;"
|-
|注意 '''Note that the l in v4l2''' 中的 '''l''' 是小写字母 '''is a lowercase letter l''',不是数字 ''', not the number 1.'''<br><br>
另外 '''In addition, the serial number of the video''' 的序号不一定都是 '''is not necessarily video0, please refer to what you actually see.''',请以实际看到的为准。
|}
3) 在桌面系统中可以使用 In the desktop system, Cheese 直接打开 can be used to directly open the USB 摄像头,Cheese 打开方法如下图所示:camera. The method of opening Cheese is shown in the figure below.:<br><br>
[[Image:Pi-5-details2-pic08.png]]<br><br>
The interface after Cheese 打开 turns on the USB 摄像头后的界面如下图所示:camera is shown in the figure below:<br><br>
[[Image:Pi-5-details2-pic09.png]]<br><br>
4) 使用 Method of using fswebcam 测试 to test USB 摄像头的方法camera<br>a. 安装 Install fswebcam
{| class="wikitable" style="width:800px;"
|-
orangepi@orangepi:~$ '''sudo apt-get install -y fswebcam'''
|}
b. 安装完 After installing fswebcam 后可以使用下面的命令来拍照, you can use the following command to take pictures<br>a) -d 选项用于指定 option is used to specify the device node of the USB 摄像头的设备节点camera<br>b) --no-banner 用于去除照片的水印is used to remove the watermark of the photo<br>c) The -r 选项用于指定照片的分辨率option is used to specify the resolution of the photo<br>d) The -S 选项用设置于跳过前面的帧数option is used to set the number of previous frames to skip <br>e) ./image.jpg 用于设置生成的照片的名字和路径is used to set the name and path of the generated photo<br>
{| class="wikitable" style="width:800px;"
|-
'''--no-banner -r 1280x720 -S 5 ./image.jpg'''
|}
c. 在服务器版的 In the server version of the linux 系统中,拍完照后可以使用 system, you can use the scp 命令将拍好的图片传到Ubuntu command to transfer the taken pictures to the Ubuntu PC 上镜像观看for image viewing after taking pictures<br>
{| class="wikitable" style="width:800px;"
|-
|orangepi@orangepi:~$ '''scp image.jpg [email protected]:/home/test'''(根据实际情况修改 ( '''Modify the IP 地址和路径)address and path according to the actual situation''')
|}
d. 在桌面版的 In the desktop version of the linux 系统中,可以通过 system, you can directly view the captured pictures through the HDMI 显示器直接查看拍摄的图片display<br>
=== 查询 在桌面系统中测试音频方法 ===