react-native-vision-camera-face-detector
Version:
Frame Processor Plugin to detect faces using MLKit Vision Face Detector for React Native Vision Camera!
42 lines (38 loc) • 1.39 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.createFaceDetector = createFaceDetector;
exports.createFaceDetectorOutput = createFaceDetectorOutput;
exports.createImageFaceDetector = createImageFaceDetector;
var _reactNativeNitroModules = require("react-native-nitro-modules");
const faceDetectorFactory = _reactNativeNitroModules.NitroModules.createHybridObject('FaceDetectorFactory');
const imageFaceDetectorFactory = _reactNativeNitroModules.NitroModules.createHybridObject('ImageFaceDetectorFactory');
/**
* Create a new {@linkcode FaceDetector}.
*
* The {@linkcode FaceDetector} can be used to
* scan {@linkcode Face}s in a {@linkcode Frame}.
*/
function createFaceDetector(options) {
return faceDetectorFactory.createFaceDetector(options ?? {});
}
/**
* Create a new {@linkcode FaceDetector}.
*
* The {@linkcode FaceDetector} can be used to
* scan {@linkcode Face}s in a {@linkcode Frame}.
*/
function createFaceDetectorOutput(options) {
return faceDetectorFactory.createFaceDetectorOutput(options);
}
/**
* Create a new image {@linkcode ImageFaceDetector}.
*
* The {@linkcode ImageFaceDetector} can be used to
* scan {@linkcode Face}s in a {@linkcode Frame}.
*/
function createImageFaceDetector(options) {
return imageFaceDetectorFactory.createImageFaceDetector(options ?? {});
}
//# sourceMappingURL=factory.js.map