Building react-native-camera with FaceDetector

Hello!

I have been stuck a while trying to get react-native-camera to build with face detection. I followed the exact steps given on the readme.md, and have tried with manual linking, cocoapods, and react-native link. That being said, each time the build doesn’t seem to build with FaceDetector native module…

When I run:

const faceDetect = imgPath => {
  const options = {
    mode: FaceDetector.Constants.Mode.fast,
  };

  return FaceDetector.detectFacesAsync(imgPath, options);
};

A rejected promise is returned with message Face detection has not been included in this build. in all three cases. Is there some step I am missing? Any advice on how to get it to build with FaceDetector would be greatly appreciated!

Using the master build works! Also make sure to manually link.

1 Like

Awesome! I’m glad it worked :smiley:

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.