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)
- π Fatal Error on App Initialization: IllegalArgumentException - width must be positive in CameraDeviceDetails.getFormats HOT 1
- π§ v4.5.3 fails to build on Android - jetified-camera-core-1.5.0-alpha01/jni/riscv64/libimage_processing_util_jni.so is not an ABI HOT 12
- π TakePhoto() doesn't work with Android Emulator (Pixel 4 API 28, Pixel 4 API 31, Pixel 8 API 31) HOT 9
- β¨ Able to use this library detect QR code from the image HOT 3
- π Issue launching camera on iOS HOT 1
- π§ Unable to find a specification for `react-native-worklets-core` depended upon by `VisionCamera/FrameProcessors` HOT 3
- π Audio is not working ^4.5.3 (IOS) HOT 2
- π§ could not build Objective-C module 'vision_camera_code_scanner' HOT 2
- π Production Build Error with 4.5.3 HOT 3
- π§ Production Build Error with 4.5.3 HOT 5
- β¨ Document Scanner HOT 3
- π error when trying to upload the app to Play Store v4.5.2 and v4.5.3 HOT 3
- π V3 Π½Π΅ ΡΡΠΈΡΡΠ²Π°Π΅Ρ ΠΊΠΎΠ΄Ρ Data-Matrix Ρ ΡΠ΅ΡΠ½ΡΠΌ ΡΠΎΠ½ΠΎΠΌ Π½Π° Android HOT 1
- π react-native-vision-camera | App crashing after setting FPS and applying frameProcessor to Camera HOT 4
- π Potrait mode video is flipped to wrong direction HOT 1
- π Is it possible to hide your face in a video stream using Vision Camera? HOT 2
- π runAsync has memory problem HOT 2
- π Is there any difference between using the Camera component directly and creating the ReanimatedCamera component? HOT 1
- β¨ Do we think a LockedCameraCaptureExtension would be possible in React Native? HOT 5
- π 09-20 19:04:14.827 18105 18387 E ImageAnalysisAnalyzer: java.lang.IllegalStateException: maxImages (6) has already been acquired, call #close before acquiring more. HOT 4
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.