Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16750

RNCamera - onFaceDetectionError not working in both Android and iOS

$
0
0

I am not able to find not detecting the face scenario using RNCamera.

dependencies: "react-native": "0.61.5", "react-native-camera": "git+https://git@github.com/react-native-community/react-native-camera.git",

this is how I am using the RNCamera, ....

<RNCamera 
      ref={ref => {this.camera = ref}}
      type={RNCamera.Constants.Type.front}
      onFacesDetected={this.handleFaceDetected}
      onFaceDetectionError = {this.faceDetectionError}
    </RNCamera>
    ...
    handleFaceDetected = (faces) => {
            console.log('face detected!')
        }

    faceDetectionError = (error) => {
            console.log('face Not detected!')
        }

I also faced that even though the camera is not in front of any faces, in some of the android devices it is triggering the onFacesDetected method.

Any help in this is much thankful. Thanks in advance.


Viewing all articles
Browse latest Browse all 16750

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>