How to use the expo-face-detector.FaceDetector.detectFacesAsync function in expo-face-detector

To help you get started, we’ve selected a few expo-face-detector examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github expo / expo / modules / camersja / GalleryScreen.js View on Github external
detectFace = photoUri =>
    FaceDetector.detectFacesAsync(`${FileSystem.documentDirectory}photos/${photoUri}`, {
      detectLandmarks: FaceDetector.Constants.Landmarks.none,
      runClassifications: FaceDetector.Constants.Classifications.all,
    })
      .then(this.facesDetected)
      .catch(this.handleFaceDetectionError);

expo-face-detector

Lets you use the power of Google Mobile Vision (https://developers.google.com/vision/face-detection-concepts) framework to detect faces on images.

MIT
Latest version published 3 months ago

Package Health Score

86 / 100
Full package analysis