Code Monkey home page Code Monkey logo

Comments (6)

rahuldasgupta avatar rahuldasgupta commented on June 22, 2024

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
image

from react-native-vision-camera.

xulihang avatar xulihang commented on June 22, 2024

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 image

Check out this: expo/expo#19534 (comment)

from react-native-vision-camera.

mrousavy avatar mrousavy commented on June 22, 2024

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.

xulihang avatar xulihang commented on June 22, 2024

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.

mrousavy avatar mrousavy commented on June 22, 2024

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.

tony-xlh avatar tony-xlh commented on June 22, 2024

Having a method to draw the overlay would be very helpful.

from react-native-vision-camera.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.