Comments (12)
Yea, I use the default Camera API - if it is not listed there, then its the vendor's fault.
Download the Camera2 API Probe app from the PlayStore to see if that can detect it.
from react-native-vision-camera.
Hah, I got started with, what, API 7? I am well aware.
from react-native-vision-camera.
CameraX lists the "Moto G(22)" as tested and supported.
from react-native-vision-camera.
It's just phone vendors not respecting Android spec, should not affect your app though since you'll be using whatever the phone gives you.
I have seen this multiple times, on multiple brands and models.
from react-native-vision-camera.
I've also seen it, but forget if I can expect different results from CameraX snd Camera2. I vastly prefer a multicam for my use case.
from react-native-vision-camera.
I vastly prefer a multicam for my use case.
That could very much be a multicam, just the phone vendor being a jerk and reports wrong info. I've seen this a lot of times, cough, Huawei phones, cough.
Or Huawei somehow made a single camera that is capable of depth capturing, 5x optical zooming and taking ultra wide angle pictures.
from react-native-vision-camera.
Understood, thanks, so I shouldn't expect any camera API to report these devices accurately.
From what you described, it sounds like I should just ignore the physical device count and multicam-ness and go by capabilities?
from react-native-vision-camera.
Usually we go by capabilities and pixel count, in most cases select the most powerful device/the device with highest resolution makes the phone throw in all the cams it has. If you don't have very uncommon use cases then this should work.
Do note that the most powerful device sometimes has a very long minimum focus distance, which could break in some scenarios like barcode scanning.
But sometimes even the capabilities aren't trustworthy, cough, Samsung phones, cough. In those cases we had to make phone specific patches.
from react-native-vision-camera.
We even had Huawei phones reporting a duo cam with two ultra-wide-angle-camera and RNVC thought something's wrong and refused to boot up the cams.
I mean, sanity wise, I think what Huawei meant to say was one ultra wide angle + one depth capture or telephoto and somehow it get screwed up in the process.
from react-native-vision-camera.
Thanks, this is all very helpful. I have a pretty funky use case that benefits from a wide lens and lower-than-maximum capture resolution, but broad compatibility is most important.
from react-native-vision-camera.
As expected, it reports a single rear-facing camera with Level 3 support. Interesting that there is no zoom.
Model:moto g stylus 5G (2022)
Manufacturer:motorola
Build:12
SDK:31
------------------------------------------
Camera ID: 0
Camera Facing: BACK
Hardware Support Level:LEVEL_3
Manual exposure:1
Auto exposure:1
Auto exposure, always flash:1
Auto exposure, auto flash:1
Auto exposure, auto flash, red eye reduction:0
AE Lock:1
Compensation Range: [-18, 18]
Compensation Step: 1/6
Target FPS Range: [10, 10]
Target FPS Range: [15, 15]
Target FPS Range: [15, 20]
Target FPS Range: [20, 20]
Target FPS Range: [15, 24]
Target FPS Range: [24, 24]
Target FPS Range: [10, 30]
Target FPS Range: [24, 30]
Target FPS Range: [30, 30]
Target FPS Range: [60, 60]
Manual focus:1
Auto focus:1
Auto focus macro:1
Auto focus continuous picture:1
Auto focus continuous video:1
Auto focus EDOF:0
White balance off:1
Automatic white balance:1
WB: cloudy day:1
WB: daylight:1
WB: fluorescent:1
WB: incandescent:1
WB: shade:1
WB: twilight:1
WB: warm fluorescent:1
AWB Lock:1
RawCapture:1
BurstCapture:1
availableCapability: BACKWARD_COMPATIBLE
availableCapability: CONSTRAINED_HIGH_SPEED_VIDEO
availableCapability: RAW
availableCapability: YUV_REPROCESSING
availableCapability: PRIVATE_REPROCESSING
availableCapability: READ_SENSOR_SETTINGS
availableCapability: MANUAL_SENSOR
availableCapability: BURST_CAPTURE
availableCapability: MANUAL_POST_PROCESSING
Stabilization Mode: Optical
Stabilization Mode: Video
previewSize: 4080 * 2296 (510:287)
previewSize: 4080 * 1792 (255:112)
previewSize: 3840 * 2160 (16:9)
previewSize: 3264 * 2448 (4:3)
previewSize: 3264 * 1836 (16:9)
previewSize: 3264 * 1432 (408:179)
previewSize: 2304 * 1728 (4:3)
previewSize: 2304 * 1296 (16:9)
previewSize: 2304 * 1012 (576:253)
previewSize: 1920 * 1080 (16:9)
previewSize: 1920 * 842 (960:421)
previewSize: 1600 * 1200 (4:3)
previewSize: 1600 * 900 (16:9)
previewSize: 1600 * 702 (800:351)
previewSize: 1558 * 720 (779:360)
previewSize: 1516 * 720 (379:180)
previewSize: 1440 * 1080 (4:3)
previewSize: 1280 * 960 (4:3)
previewSize: 1280 * 720 (16:9)
previewSize: 1280 * 562 (640:281)
previewSize: 1024 * 768 (4:3)
previewSize: 960 * 720 (4:3)
previewSize: 960 * 540 (16:9)
previewSize: 960 * 422 (480:211)
previewSize: 720 * 480 (3:2)
previewSize: 640 * 480 (4:3)
previewSize: 352 * 288 (11:9)
previewSize: 320 * 240 (4:3)
previewSize: 256 * 192 (4:3)
previewSize: 240 * 320 (4:3)
previewSize: 176 * 144 (11:9)
photoSize: 4080 * 2296 (510:287)
photoSize: 4080 * 1792 (255:112)
photoSize: 3840 * 2160 (16:9)
photoSize: 3264 * 2448 (4:3)
photoSize: 3264 * 1836 (16:9)
photoSize: 3264 * 1432 (408:179)
photoSize: 2304 * 1728 (4:3)
photoSize: 2304 * 1296 (16:9)
photoSize: 2304 * 1012 (576:253)
photoSize: 1920 * 1080 (16:9)
photoSize: 1920 * 842 (960:421)
photoSize: 1600 * 1200 (4:3)
photoSize: 1600 * 900 (16:9)
photoSize: 1600 * 702 (800:351)
photoSize: 1558 * 720 (779:360)
photoSize: 1516 * 720 (379:180)
photoSize: 1440 * 1080 (4:3)
photoSize: 1280 * 960 (4:3)
photoSize: 1280 * 720 (16:9)
photoSize: 1280 * 562 (640:281)
photoSize: 1024 * 768 (4:3)
photoSize: 960 * 720 (4:3)
photoSize: 960 * 540 (16:9)
photoSize: 960 * 422 (480:211)
photoSize: 720 * 480 (3:2)
photoSize: 640 * 480 (4:3)
photoSize: 352 * 288 (11:9)
photoSize: 320 * 240 (4:3)
photoSize: 256 * 192 (4:3)
photoSize: 240 * 320 (4:3)
photoSize: 176 * 144 (11:9)
videoSize: 4080 * 2296 (510:287)
videoSize: 4080 * 1792 (255:112)
videoSize: 3840 * 2160 (16:9)
videoSize: 3264 * 2448 (4:3)
videoSize: 3264 * 1836 (16:9)
videoSize: 3264 * 1432 (408:179)
videoSize: 2304 * 1728 (4:3)
videoSize: 2304 * 1296 (16:9)
videoSize: 2304 * 1012 (576:253)
videoSize: 1920 * 1080 (16:9)
videoSize: 1920 * 842 (960:421)
videoSize: 1600 * 1200 (4:3)
videoSize: 1600 * 900 (16:9)
videoSize: 1600 * 702 (800:351)
videoSize: 1558 * 720 (779:360)
videoSize: 1516 * 720 (379:180)
videoSize: 1440 * 1080 (4:3)
videoSize: 1280 * 960 (4:3)
videoSize: 1280 * 720 (16:9)
videoSize: 1280 * 562 (640:281)
videoSize: 1024 * 768 (4:3)
videoSize: 960 * 720 (4:3)
videoSize: 960 * 540 (16:9)
videoSize: 960 * 422 (480:211)
videoSize: 720 * 480 (3:2)
videoSize: 640 * 480 (4:3)
videoSize: 352 * 288 (11:9)
videoSize: 320 * 240 (4:3)
videoSize: 256 * 192 (4:3)
videoSize: 240 * 320 (4:3)
videoSize: 176 * 144 (11:9)
from react-native-vision-camera.
lol, yea. this is Android for 'ya
from react-native-vision-camera.
Related Issues (20)
- 💭 Two separate frame processors at different target FPS HOT 7
- 🐛 [AVCaptureDevice setActiveColorSpace:] Not supported - use activeFormat.supportedColorSpaces'. HOT 2
- 🐛 APK Size increase After implementing react-native-vision-camera lib double the apk size HOT 5
- 💭 Why the Photo Result Does Not Come Out in the Specified Aspect Ratio HOT 1
- 🐛 `finally` on a `Promise` stops camera on Android HOT 3
- 🐛 [V4][Android] Release crash: maxImages (6) has already been acquired HOT 1
- 🔧 Not able to build expo dev client when using any of the given frame processing plugin for OCR HOT 2
- 🐛 [Android] isActive change doesn't happen fast enough causing device/camera-already-in-use error when switching to native camera app HOT 1
- 🔧 Execution failed for task ':react-native-vision-camera:compileReleaseKotlin'. HOT 3
- 🔧 This API is provided only for React Native frameworks and not intended for general users. This API can change between minor versions in alignment with React Native frameworks and won't be considered a breaking change. HOT 10
- 💭 Android: Frameprocessor HOT 7
- 💭 Focus not work HOT 1
- 🐛 Memory leak Android HOT 6
- 💭 [iOS] Did someone manage to get to reasonable FPS with ML Kit Pose Detection (native frame processor plugin)? HOT 2
- 💭 Lifecycle methods for native frame processors HOT 5
- 💭 How to access GPS location tags in photo metadata? HOT 4
- 🐛 takePhoto() function working very slowly on Android HOT 3
- 🔧 A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction HOT 13
- 💭 How does RNVC interact with OS camera settings? HOT 1
- 💭 Is there a migration guide from V3 to V4? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-vision-camera.