Giter Site home page Giter Site logo

Comments (3)

nonam4 avatar nonam4 commented on June 13, 2024

Wich method are you using? Recommended or default?

from react-native-vision-camera-face-detector.

YuriOlepir avatar YuriOlepir commented on June 13, 2024

Wich method are you using? Recommended or default?

I'm using your method 'faceDetectionCallback'. The native 'frameProcessor' method is not working because it's reassigned by 'cameraFrameProcessor' inside your Camera component.

I'm working on the simple ID scanning, so I need to track face and text, that's why I need the original Frame.
I made small changes inside your detectFaces function, so now I have the original Frame.
it would be good to include this in your next releases.

node_modules/react-native-vision-camera-face-detector/src/FaceDetector.ts

`export function detectFaces(
frame: Frame,
callback: CallbackType,
options?: FaceDetectionOptions
) {
'worklet'
if ( plugin == null ) {
throw new Error( 'Failed to load Frame Processor Plugin "detectFaces"!' )
}

// @ts-ignore
const result = {...plugin.call( frame, options ), originalFrame: frame} as DetectionResult
callback( result )
}
`

from react-native-vision-camera-face-detector.

nonam4 avatar nonam4 commented on June 13, 2024

@YuriOlepir sure, I’ll add this feat in next release.

In some of my tests I had a problem on ios (there’s an open issue on vision camera about this).

In my case the whole camera freeze after a few frame processor call but this happens only if I try to access any of the original frame data.

I would suggest you to comment on the original vision camera issue to let them know that more people are suffering with this problem.

from react-native-vision-camera-face-detector.

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.