Comments (9)
@Win546 inverted value of x and y on IOS right ?
from react-native-vision-camera.
I don't really understand the question here, this might be better off asked on the community discord.
from react-native-vision-camera.
yes, from what i understood, the x and y on ios are tilted, i think for the orientation of the camera (on android after the scaling the point are where they should be ),so when i scale with the camera resolution dosen't work as aspected.
Ios:
even if the view is vertical, the camera seems oriented in landscape, I notice this because by moving the camera up/down my point moves on my x axis, while by moving it left/right it moves on the y axis
from react-native-vision-camera.
I'm also can reproduce this bug(Iphone 6S iOS 15.8.2)
from react-native-vision-camera.
I am not sure if I understood the question right but comments are right. x and y values are inverted on ios. I updated to @4.3.2 few weeks ago and the problem still persist. Also width and height might be inverted too. On the other hand there is no problem on android.
from react-native-vision-camera.
yes, exactly what you said!
Any way i've changed my first approach and now i'm trying to use expo-camera but it's the same, android works well, ios tilted, the only one that seems to work it's expo-barcode-scanner, where the point are where the should be on ios !( but on android instead the camera preview it's not so good as the other pack, so i was conditionally render the correct scanner based on platform .
But it's not the right solution because expo-barcode-scanner it'll be deprecated from sdk 51, so i'm trying to find a solution for for expo-camera, without any success at the moment
from react-native-vision-camera.
I just inverted x, y and width, height values for ios as workaround and it's working fine. For android I just use values as it is. I was using the values to calculate if scanned barcode inside the rectangle or not.
from react-native-vision-camera.
VisionCamera exposes device.sensorOrientation
, maybe you need to rotate that. Either way, I don't have the free time to look into this now. Maybe I can take a look at this in the future, we'll see.
from react-native-vision-camera.
Always open to PRs of course.
from react-native-vision-camera.
Related Issues (20)
- 💭 Prevent permissions being requested when the app starts HOT 2
- 💭 Example in Documentation Incorrect? HOT 2
- 💭 USB Camera Android HOT 2
- 🐛 Frame dimensions passed in to frame processor different for ios and android HOT 13
- ✨ Support 16kb page size for Android 15+ devices HOT 5
- 🐛 Orientation in output not correct when camera facing up/down. HOT 3
- 🐛 How can I reduce the size of a video that is 151 MB for a 1-minute recording? The bitRate setting does not seem to be working. HOT 4
- 💭 Frame processing FrameInvalidError seems to be thrown arbitrarily HOT 6
- 🐛 onRecordingFinished returns width: 0, height: 0 on every recording HOT 12
- 💭 Code scans only in the top right corner HOT 2
- 🔧 I had issue building !! HOT 1
- 🔧 cannot build!! HOT 1
- 🐛 Whats the meaning of life HOT 1
- 💭 Hans Pie recipe HOT 2
- 💭 Possible to zoom with useSkiaFrameProcessor? HOT 6
- 💭 How to set Low video resolution HOT 3
- 🐛 In production, runAsync does not work inside a useSkiaFrameProcessor HOT 1
- 🐛 Cannot zoom on Android when using useSkiaFrameProcessor HOT 5
- ✨ Request for Adding Additional Cinematic Modes HOT 1
- 🐛 The picture looks blurry ( out of focus) in Camera View but comes out focused after clicking on Ipad HOT 11
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.