Comments (6)
Hi, are you able to generate builds with Expo? I'm using:
"expo": "~48.0.21",
"react-native-vision-camera": "^4.0.1"
but when I run npx expo run:android
, it shows the error tagged below
from react-native-vision-camera.
Hi, are you able to generate builds with Expo? I'm using: "expo": "~48.0.21", "react-native-vision-camera": "^4.0.1"
but when I run
npx expo run:android
, it shows the error tagged below
Check out this: expo/expo#19534 (comment)
from react-native-vision-camera.
I'm sorry, I don't know - there's no code here or any reference coordinates - I did the same thing previously and for me it worked.
from react-native-vision-camera.
I think there is some difference between v2-3 and v4 on how the camera preview is sized. I am just lazy since if you know then I don't have to figure this out myself.
from react-native-vision-camera.
Yea no I'd have to play around with this myself as well.
Skia Frame Processors use exactly the Frame as a coordinate system, but if you want to draw something onto the screen you need to calculate the coordinates manually - which can be a bit tricky.
Maybe I can add a helper method for that, but I think that's going to be asynchronous because it has to be used from the UI Thread (not sure why those limitations exist on native).
Otherwise you can calculate it yourself by getting video width/height -> aspect ratio, getting view width/height -> aspect ratio, calculate center crop (either height or width overflow), then put it on screen.
from react-native-vision-camera.
Having a method to draw the overlay would be very helpful.
from react-native-vision-camera.
Related Issues (20)
- π§ A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction HOT 12
- π How does RNVC interact with OS camera settings? HOT 1
- π Is there a migration guide from V3 to V4? HOT 2
- π§ :react-native-vision-camera:compileDebugKotlin FAILED HOT 2
- Torch does not work on CodeScannerπ HOT 3
- π Hello, Which version of react-native-vision-camera supports RN 0.67? HOT 1
- Build failed with face-detector pluginπ§ HOT 3
- π Torch does not work on CodeScanner HOT 2
- π How to translate preview point to screen point with resizeMode contain? HOT 2
- π Error when switching front camera on iPhone HOT 2
- π On some Android devices, the camera image is very dark and almost invisible HOT 1
- π Different metadata frame count and decoded frame count HOT 4
- π Camera preview blank screen when using Skia Frame Processors HOT 10
- π Camera Preview is Stretched on ShadowLens App on a Samsung J6 (Android 10)
- β¨ How can I save the video recording when the app state changes to "background" or "inactive". HOT 1
- π Mirror issue with front camera HOT 6
- Using react-native-vision-camera 4.0.5 there is increase of 3MB size in android bundle HOT 3
- π ERROR Camera.onError(session/recoverable-error): An unknown error occurred while creating the Camera Session, but the Camera can recover from it. [session/recoverable-error: An unknown error occurred while creating the Camera Session, but the Camera can recover from it.] HOT 4
- π Android's getCameraPermissionStatus and getLocationPermissionStatus always returned 'denied' on a fresh install of the app HOT 1
- Disable Frame processor on route changeπ 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.