💠USB Camera Android
Question
Hey Guys, I need a solution for using an external USB camera I have seen the issues regarding UVC cameras etc. I'm just wondering if anyone has ever successfully used an external camera with this library and if so what specific android/camera device was used? any help would be greatly appreciated!
What I tried
I have tried multiple UVC camera modules and a Microsoft Lifecam with Pixel7 and Galaxy Tab A7 Devices
VisionCamera Version
4.5.0
Additional information
- [X] I am using Expo
- [X] I have read the Troubleshooting Guide
- [X] I agree to follow this project's Code of Conduct
- [X] I searched for similar questions in the issues page as well as in the discussions page and found none.
Guten Tag, Hans here.
[!NOTE] New features, bugfixes, updates and other improvements are all handled mostly by
@mrousavyin his free time. To support@mrousavy, please consider 💖 sponsoring him on GitHub 💖. Sponsored issues will be prioritized.
I'm also looking for some answer about the usb camera, currently with the camera attached to the simulator but fooling it on having the camera as "front" or "back" (editing the config.ini file in the avd folder) it works but when i build the app and put it on my tablet i can only access the front and back camera, the 'external' one is not even seen by "useCameraDevices()"
Based on the library code, I noticed that the device list is directly polled from the camera manager. This means if the Android phone doesn't accept the external camera natively, the library won't pick it up. It seems that some devices support this, while others do not, so requiring alternative methods to capture external camera data.
Another good ref: https://stackoverflow.com/questions/57846505/accessing-a-usb-camera-using-android-camera2-api
closing in favor of https://github.com/mrousavy/react-native-vision-camera/issues/3159
Turns out most of the Android builds does not have FEATURE_CAMERA_EXTERNAL kernel feature enabled. So we have two options - use custom Android ROM which is built with such support (ex. Lineage OS) or make your own UVC integration like this example