• Lv0
    粉丝0

积分15 / 贡献0

提问2答案被采纳0文章0

作者动态

OpenHarmony版本支持USB接口摄像头吗?

lvlovelive 显示全部楼层 发表于 2023-12-2 10:46:11

我想使用 RK3568 平台,测试USB接口摄像头,用OpenHarmony版本自带的相机APP使用USB接口摄像头拍照。

请问下,OpenHarmory版本是否支持USB接口摄像头?如果支持的话,从哪个版本开始支持的?需要如何配置USB接口摄像头?相机APP能否直接调用USB接口摄像头?

您尚未登录,无法参与评论,登录后可以:
参与开源共建问题交流
认同或收藏高质量问答
获取积分成为开源共建先驱

精彩评论3

lvlovelive

沙发 发表于 2023-12-2 11:30:21

在OpenHarmony 4.0 Release版本上测试,接入USB摄像头,串口打印如下日志:

[ 1975.251241] usb 1-1: new high-speed USB device number 5 using ehci-platform [ 1975.400438] usb 1-1: New USB device found, idVendor=2bdf, idProduct=0281, bcdDevice=30.00 [ 1975.400542] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 1975.400583] usb 1-1: Product: 2K USB Camera [ 1975.400618] usb 1-1: Manufacturer: 04014008_P040300_SN0002 [ 1975.400650] usb 1-1: SerialNumber: 04014008_P040300_SN0002 [ 1975.407091] uvcvideo: Found UVC 1.00 device 2K USB Camera (2bdf:0281) [ 1975.418923] rockchip-cpuinfo cpuinfo: failed to get id cell: -517

[ 1975.424520] [E/HDF_AUDIO_USB] [AudioUsbDriverInit][line:139]: usb device is not support [ 1975.424560] [E/HDF_AUDIO_USB] [LinuxAudioUsbProbe][line:164]: AudioUsbDriverInit is failed [ 1975.424910] hdf-audio-usb: probe of 1-1:1.2 failed with error -1 [ 1975.426312] [I/USB_PNP_NOTIFY] UsbPnpNotifyCallback: action=0x1 [ 1975.426369] [I/USB_PNP_NOTIFY] UsbPnpNotifyAddInitInfo:209 i=0, interfaceInfo=0xe-0x1-0x0-0x0 [ 1975.426397] [I/USB_PNP_NOTIFY] UsbPnpNotifyAddInitInfo:209 i=1, interfaceInfo=0xe-0x2-0x0-0x1 [ 1975.426422] [I/USB_PNP_NOTIFY] UsbPnpNotifyAddInitInfo:209 i=2, interfaceInfo=0x1-0x1-0x0-0x2 [ 1975.426444] [I/USB_PNP_NOTIFY] UsbPnpNotifyAddInitInfo:209 i=3, interfaceInfo=0x1-0x2-0x0-0x3 [ 1975.426527] [I/USB_PNP_NOTIFY] UsbPnpNotifyReportThread: UsbPnpNotifyReportThread start! [ 1975.426598] [I/USB_PNP_NOTIFY] UsbPnpNotifyHdfSendEvent:375 device information, 3 usbDevAddr=18446743524918679552, devNum=5, busNum=1, infoTable=4-0x2bdf-0x281!

日志提示usb device is not support,跟踪代码发现,USB只支持UAC(USB Audio Class),不支持UVC(USB Video Class),USB摄像头需要支持UVC,看来目前最新的OpenHarmony 4.0 Release版本不支持USB接口摄像头。

不知道Release版本什么时候可以支持USB摄像头?

论坛小助手 官方账号

板凳 发表于 2023-12-12 14:47:30
可以直接调用,插入就可以。默认的系统相机app没有选择摄像头的功能。底层驱动和框架都是支持的

云端筑梦

地板 发表于 2024-2-28 09:10:11
你好我也遇到了这个问题请问你解决了吗

Copyright   ©2023  OpenHarmony开发者论坛  京ICP备2020036654号-3 |技术支持 Discuz!

返回顶部