Git Product home page Git Product logo

Comments (12)

mrousavy avatar mrousavy commented on July 21, 2024 1

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.

jkaufman avatar jkaufman commented on July 21, 2024 1

Hah, I got started with, what, API 7? I am well aware.

from react-native-vision-camera.

jkaufman avatar jkaufman commented on July 21, 2024

CameraX lists the "Moto G(22)" as tested and supported.

from react-native-vision-camera.

zzz08900 avatar zzz08900 commented on July 21, 2024

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.

jkaufman avatar jkaufman commented on July 21, 2024

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.

zzz08900 avatar zzz08900 commented on July 21, 2024

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.

jkaufman avatar jkaufman commented on July 21, 2024

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.

zzz08900 avatar zzz08900 commented on July 21, 2024

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.

zzz08900 avatar zzz08900 commented on July 21, 2024

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.

jkaufman avatar jkaufman commented on July 21, 2024

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.

jkaufman avatar jkaufman commented on July 21, 2024

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.

mrousavy avatar mrousavy commented on July 21, 2024

lol, yea. this is Android for 'ya

from react-native-vision-camera.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.