-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
❓ Issue with Ultra-wide-angle Camera Detection on Google Pixel Series #1982
Comments
Hi! Thanks, doing great, hbu? 😄 VisionCamera has a very solid Devices API that is capable of detecting all Camera devices on your phone that are available for use in your app. Even USB Cameras. If there's a device missing in that list, it is pretty likely that this device is simply not available for use, and the vendor (Samsung, Huawei, ...) just locked this and doesn't allow you to use this specific Camera device. In other words; if VisionCamera can't detect the Camera, there's nothing you can do about it. It's not even available in a native Android app (except for their stock Samsung/Huawei/... Camera app). To confirm this, download the official Google example for Camera apps; camera-samples/Camera2Video and run it on your phone. If the Camera device is not in there either, then again, nothing you can do. I'm sure that for specific devices such as telephoto or ultra-wide, they usually don't allow you to use those devices directly, but only in combination with other devices (e.g. a "dual-camera" consisting of a normal wide-angle and the ultra-wide-angle), because they only work like that. Try logging all devices you get: const devices = Camera.getAvailableCameraDevices()
devices.forEach((d) => {
d.formats = null
})
console.log(JSON.stringify(devices, null, 2)) And maybe there's a multi-cam device that has the ultra-wide-angle camera in there. (Try setting |
Try 3.6.3 and let me know if the multi-cam now shows up for you. If you appreciate my efforts & dedication to VisionCamera, please 💖 consider sponsoring me on GitHub 💖 to say thanks. :) |
Thanks for your good news. |
Hello mrousavy, Also when it open up back camera first time its all grainy on the screen. I am using react-native-vision-camera v 3.6.13. Its there any problem with the google pixel series phones? |
No, there shouldn't be - can you try to see if that issue also occurs in the example app here? |
Yeah Marc, I downloaded your example app and ran it on my google pixel 7 pro. it ran fine without a problem. Now problem is i use a codeScanner in my project and when i use codeScanner it throwing me error like as mentioned in this thread: I tried to comment that line mentioned as solution, but nothing is working. What kind of parameters to pass to the Camera object in case of when we use codeScanner would you please create a sample for that too test it. |
Question
Hi,
I hope you're doing well. It seems that your current library is unable to detect the ultra-wide-angle camera on Google Pixel 6 Pro and Google Pixel 7 Pro, despite their inclusion of this camera.
Also I tried it with your sample app as well.
This issue persists across the entire Google phone series, and I've tried both versions 2 and 3 of the library without success.
Could you please provide some insight into why this detection is currently impossible?
Thank you for your assistance.
What I tried
No response
VisionCamera Version
ver 2, 3
Additional information
The text was updated successfully, but these errors were encountered: