Closed ppanwin10 closed 2 months ago
Yea - this is expected - you are updating the Format on a Camera, this just needs to be reconfigured. You can trick this by cutting the view yourself, and then cropping the photo in post processing.
Also, your logs don't include the part where the format gets switched, so I can't really say if there is a way to improve this or not.
I'm specifically looking for these logs:
12:44:54.979: [info] 📸 VisionCamera.didSetProps(_:): Updating 1 props: [isActive]
12:44:54.979: [info] 📸 VisionCamera.configure(_:): configure { ... }: Waiting for lock...
12:44:54.979: [info] 📸 VisionCamera.configure(_:): configure { ... }: Updating CameraSession Configuration... Difference(inputChanged: false, outputsChanged: false, videoStabilizationChanged: false, orientationChanged: false, formatChanged: false, sidePropsChanged: false, torchChanged: false, zoomChanged: false, exposureChanged: false, audioSessionChanged: false, locationChanged: true)
It should say 1 props: [format]
. If that's the case, then it's as fast as it can get.
Yea - this is expected - you are updating the Format on a Camera, this just needs to be reconfigured. You can trick this by cutting the view yourself, and then cropping the photo in post processing.
Also, your logs don't include the part where the format gets switched, so I can't really say if there is a way to improve this or not.
I'm specifically looking for these logs:
12:44:54.979: [info] 📸 VisionCamera.didSetProps(_:): Updating 1 props: [isActive] 12:44:54.979: [info] 📸 VisionCamera.configure(_:): configure { ... }: Waiting for lock... 12:44:54.979: [info] 📸 VisionCamera.configure(_:): configure { ... }: Updating CameraSession Configuration... Difference(inputChanged: false, outputsChanged: false, videoStabilizationChanged: false, orientationChanged: false, formatChanged: false, sidePropsChanged: false, torchChanged: false, zoomChanged: false, exposureChanged: false, audioSessionChanged: false, locationChanged: true)
It should say
1 props: [format]
. If that's the case, then it's as fast as it can get.
ok thank you, let me go back to see my log. Cutting the view manually sounds a good idea!
What's happening?
Hi,
When transitioning between various aspect ratios, I saw a brief pause for recalculating size and color.
Is there a way to improve it?
Record from Example app. https://github.com/mrousavy/react-native-vision-camera/assets/77748079/ddfcfe32-d717-4736-8f1d-a9b371a78eb8
This is more visible in my own app https://github.com/mrousavy/react-native-vision-camera/assets/77748079/65dd84c7-a321-44fc-883d-f239654f587d
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