Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can it access usb camera? Does it has uvc support #362

Open
ghost opened this issue Mar 8, 2021 · 9 comments
Open

Can it access usb camera? Does it has uvc support #362

ghost opened this issue Mar 8, 2021 · 9 comments

Comments

@ghost
Copy link

ghost commented Mar 8, 2021

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 ghost closed this as completed Mar 12, 2021
@ghost ghost reopened this Mar 12, 2021
@ghost ghost closed this as completed Mar 12, 2021
@wwdok
Copy link

wwdok commented Mar 23, 2021

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

@ghost ghost reopened this Mar 24, 2021
@mrliuzhao
Copy link

I am also looking for Support for USB Camera in CameraX

@luyanan123
Copy link

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

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

@mrliuzhao
Copy link

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

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

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

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

@wwdok
Copy link

wwdok commented Apr 15, 2021

@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

@Qamar4P
Copy link

Qamar4P commented Apr 30, 2021

@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?

@Reginer
Copy link

Reginer commented May 13, 2021

mark

@AnyLifeZLB
Copy link

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

@byqy
Copy link

byqy commented Sep 10, 2024

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants