Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

connecting USB UVC camera with CameraX

I'm trying to make an android app that preview a stream from an external USB camera. I can see the camera using UsbManager but for some reason, the CameraX doesn't list it in the connected camera list. Does anyone have an idea how to fix this?

Also, I've downloaded for my android device some random app that allows streaming from a USB camera and it worked so I don't think it is a problem that the camera isn't compatible to work with an android device or something like that.

like image 609
IdH Avatar asked Oct 31 '25 09:10

IdH


1 Answers

afaik CameraX doesn't support UVC cameras yet/still and Android doesn't provide a driver... for Android system UVC camera is just "some USB" device (as you noticed - handled by UsbManager) and you need to provide a driver by self...

so you can use some other libraries for getting UVC video, probably currently best is AndroidUSBCamera by jiangdongguo

like image 89
snachmsm Avatar answered Nov 03 '25 02:11

snachmsm



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!