Git Product home page Git Product logo

Comments (5)

mrousavy avatar mrousavy commented on June 23, 2024 1

Hi, I'm not sure, why this was closed as completed as the bug is still present

That's a different bug - the issue is in Skia because Skia cannot work with YUV on Android yet. It needs to be RGB. On iOS, it can be both.

from react-native-vision-camera.

pweglik avatar pweglik commented on June 23, 2024

Unfortunately, then resize plugin (https://github.com/mrousavy/vision-camera-resize-plugin) doesn't work: Frame Processor Error: Exception in HostFunction: java.lang.Error: Frame has invalid PixelFormat! Only YUV_420_888 is supported. Did you set pixelFormat="yuv"?, js engine: VisionCamera

from react-native-vision-camera.

mrousavy avatar mrousavy commented on June 23, 2024

Yea you need "rgb" for Skia on Android. On iOS, you can also use "yuv" (which is more efficient).

As for the resize-plugin; hm, this situation sucks a bit. I guess I can add rgb support to the resize plugin

from react-native-vision-camera.

pweglik avatar pweglik commented on June 23, 2024

Hi, I'm not sure, why this was closed as completed as the bug is still present. I've just created PR in resize plugin repo solving it: mrousavy/vision-camera-resize-plugin#64

from react-native-vision-camera.

pweglik avatar pweglik commented on June 23, 2024

Btw. I think the bug is fixed now. I checked code fro mthe description one more time and it works on Android now 😄

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.