Comments (2)
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.
from react-native-vision-camera.
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!
from react-native-vision-camera.
Related Issues (20)
- orientationOutput isn't applied in IOS with skia HOT 15
- Build failed in RN version 0.74.2 androidπ§ HOT 1
- π HOT 7
- π test HOT 4
- π Test HOT 2
- π onStatusChanged override function missing for android versions before api 29 HOT 3
- π Hello, I have a question for you... we use your plugin, but we have a problem with the fact that the preview is smaller than the filmed or photographed area. how should we solve this? HOT 3
- π Diffrent area - video/photo HOT 2
- π How to get preview size (height and width) on resizeMode="contain" HOT 3
- π Get "Missing purpose string" Apple violation when VCEnableLocation is false HOT 3
- π onIitialized only work when the isActive once. HOT 2
- π onOutputOrientationChanged outputs wrong value on tablets HOT 7
- β¨ Hello author, can you add a cropping function after taking the photo? HOT 3
- π system/camera-is-restricted Camera functionality is not available because it has been restricted by the operating system, possibly due to a device policy. HOT 5
- π Question: Implementing Virtual Background and AR Try-On Glasses with Frame Processing HOT 2
- π CodeScanner does not recognize Data Matrix code on a black background HOT 2
- π photo.orientation is wrong when outputOrientation = preview on Android HOT 2
- π OutputOrientation: "Duplicate label in when" HOT 1
- π Add filter to photo when photo is taken HOT 2
- π Obtaining camera calibration data HOT 5
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.