Closed ppanwin10 closed 2 weeks ago
BTW, I think this won't be a big problem if we go with cutting the view manually.
What resolution does format
have?
What resolution does
format
have?
always "max"
No, I'm talking about the format
. Not your format filter. Log the format
that you get.
ok, here you go.
{"autoFocusSystem": "phase-detection", "fieldOfView": 97.75704193115234, "maxFps": 60, "maxISO": 3072, "minFps": 1, "minISO": 32, "photoHeight": 3024, "photoWidth": 3696, "supportsDepthCapture": false, "supportsPhotoHdr": false, "supportsVideoHdr": false, "videoHeight": 288, "videoStabilizationModes": ["auto", "off"], "videoWidth": 352}
videoWidth: 352, videoHeight: 288
<-- that's why your format is so low quality.
The Preview view is also a video stream obviously, so it depends on the video size in the format. Choose a format with a higher video size. You could also just write your own format filter if you want.
What's happening?
Hi,
I am not sure if I miss anything, I have the following setup for the camera format:
ResizeMode = "contain"
The preview quality for all kinds of ratios (e.g. 16:9, 4:3) are high enough, except for 1:1.
https://github.com/mrousavy/react-native-vision-camera/assets/77748079/2df3e901-b08b-4ffe-98c2-ffdd4d598768
Reproduceable Code
Relevant log output
Camera Device
Device
iPhont 11 IOS17.4.1
VisionCamera Version
4.0.3
Can you reproduce this issue in the VisionCamera Example app?
Yes, I can reproduce the same issue in the Example app here
Additional information