UNPKG

react-native-vision-camera-face-detector

Version:

Frame Processor Plugin to detect faces using MLKit Vision Face Detector for React Native Vision Camera!

36 lines (32 loc) 1.11 kB
"use strict"; import { NitroModules } from 'react-native-nitro-modules'; const faceDetectorFactory = NitroModules.createHybridObject('FaceDetectorFactory'); const imageFaceDetectorFactory = NitroModules.createHybridObject('ImageFaceDetectorFactory'); /** * Create a new {@linkcode FaceDetector}. * * The {@linkcode FaceDetector} can be used to * scan {@linkcode Face}s in a {@linkcode Frame}. */ export 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}. */ export 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}. */ export function createImageFaceDetector(options) { return imageFaceDetectorFactory.createImageFaceDetector(options ?? {}); } //# sourceMappingURL=factory.js.map