camera-samples icon indicating copy to clipboard operation
camera-samples copied to clipboard

Can it access usb camera? Does it has uvc support

Open ghost opened this issue 3 years ago • 8 comments

Please follow the following instructions before filing a bug:

  1. Github issues under this project are only for sample-related issues. If you have modified the sample code in any way, then this is probably not the appropriate place to report a bug.
  2. If you are trying to report a bug related to the CameraX library then you can do so at the Android Issue Tracker: https://issuetracker.google.com/components/618491.
  3. Include the specific sample where you found the issue, in addition to device model and specific Android build number -- which can be found under Settings > About phone.
  4. Include error logs from logcat, if there are any.
  5. If you can, also attach a bug report-- but please keep in mind that personal information can sometimes be found in those, so double check before attaching.

ghost avatar Mar 08 '21 07:03 ghost

Why close this issue, i also wonder if cameraX has support USB camera, if not, when will it be OK

wwdok avatar Mar 23 '21 14:03 wwdok

I am also looking for Support for USB Camera in CameraX

mrliuzhao avatar Apr 07 '21 09:04 mrliuzhao

我也在寻找CameraX中对USB摄像头的支持

您好,麻烦请问一下您找到关于camerax连接usb相关的东西了吗?

luyanan123 avatar Apr 12 '21 02:04 luyanan123

我也在寻找CameraX中对USB摄像头的支持

您好,麻烦请问一下您找到关于camerax连接usb相关的东西了吗?

我这边最近调查了一下,发现安卓Camera2中摄像头有3种:back, front, external。back和front就是前置、后置摄像头,external则是外部摄像头。有的安卓系统把连接的USB摄像头识别为前置、后置,摄像头ID都是数字,而有的安卓系统把USB摄像头识别为External,摄像头ID就是linux中的设备名称,比如/dev/video0。这貌似就跟具体安卓系统编译的时候的一些底层驱动设置有关,具体我也还没有深入了解。

CameraX目前只能识别前置和后置摄像头,因此安卓系统中如果将USB摄像头分类在前置或后置,就可以用CameraX打开

mrliuzhao avatar Apr 14 '21 01:04 mrliuzhao

@mrliuzhao Thanks for sharing information. I have posted another issue here that discuss this topic too, you can have a look. So the question turns to how to set USB camera as front or back when compiling AOSP ? BTW, i wonder if android official team whether have plan to support USB camera in the future ? If yes, when is it, Thank you ! @owahltinez

wwdok avatar Apr 15 '21 08:04 wwdok

@mrliuzhao @wow @bjain409 It's up to vendors because they customize the camera HAL. Does anyone know the list of Android phones which support USB Cameras?

Qamar4P avatar Apr 30 '21 11:04 Qamar4P

mark

Reginer avatar May 13 '21 01:05 Reginer

4年了,CameraX还不支持 USB 摄像头

AnyLifeZLB avatar May 23 '23 02:05 AnyLifeZLB