Comments (5)
+1 here.
I am using a frame processor and it impacts the text recognition (works as expected when phone in landscape but does not pick anything up when device held in portrait)
Also opened an issue here: #3051
from react-native-vision-camera.
I think this is intended.
frame.orientation
tells you the orientation of the physical pixels to appear upright, targeting the current output orientation.
So if output orientation is portrait (aka you want portrait photos), frame.orientation
tells you what orientation it's pixel buffer is relative to the output orientation (example; portrait).
from react-native-vision-camera.
@luicfrr please see this PR #3077 and read the description.
This explains how this works, and why orientation is not the same value.
from react-native-vision-camera.
Guten Tag, Hans here.
Note
New features, bugfixes, updates and other improvements are all handled mostly by @mrousavy
in his free time.
To support @mrousavy
, please consider 💖 sponsoring him on GitHub 💖.
Sponsored issues will be prioritized.
from react-native-vision-camera.
@mrousavy I think this issue should be reopened because values are not consitent.
As I said before, IOS always return .left
with device is held in portrait mode in both cameras but android return LANDSCAPE_LEFT
on front camera and LANDSCAPE_RIGHT
in back.
One is wrong:
- or Android should return
LANDSCAPE_LEFT
value in both cameras like IOS - or IOS should return
.left
in front camera and.right
on back camera.
This inconsitence is the real issue.
from react-native-vision-camera.
Related Issues (20)
- 🐛 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
- 🐛 ERROR Frame Processor Error: Failed to lock HardwareBuffer for reading!, js engine: VisionCamera HOT 5
- 🐛 [capture/invalid-path] Unable to take photos or videos with custom path with Android using expo file system. HOT 5
- 💭 How to wrap an overlay around the preview and render a square output HOT 2
- 💭 Issue with FrameProcessorsUnavailableError HOT 3
- 💭 Lanscape mode issue. HOT 3
- 🐛 iOS front Camera landscape mode issue. HOT 1
- 🔧 Build fails after upgrading to targetSdkVeersion 34 HOT 7
- 🐛 Wrong Orientation on `takePhoto` (`takeSnapshot` is working properly) HOT 6
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.