UNPKG

react-native-vision-camera-face-detector

Version:

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

18 lines (15 loc) 439 B
import type { HybridObject } from 'react-native-nitro-modules' import type { Face } from './Face.nitro' type ImageUri = { uri: string } export type InputImage = string | number | ImageUri export interface ImageFaceDetector extends HybridObject<{ ios: 'swift', android: 'kotlin' }> { /** * Detect faces on image * * @param {InputImage} image Image source to detect faces */ detectFaces( image: InputImage ): Face[] }