Building react-native-camera with FaceDetector

#1

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!

#2

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

1 Like
#3

Awesome! I’m glad it worked :smiley:

closed #4

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