react-native-vision-camera-face-detector
Version:
Frame Processor Plugin to detect faces using MLKit Vision Face Detector for React Native Vision Camera!
16 lines (14 loc) • 388 B
text/typescript
import type { Frame } from 'react-native-vision-camera'
import type { HybridObject } from 'react-native-nitro-modules'
import type { Face } from './Face.nitro'
export interface FaceDetector extends HybridObject<{
ios: 'swift',
android: 'kotlin'
}> {
/**
* Detect faces on frame
*
* @param {Frame} frame Frame to detect faces
*/
detectFaces( frame: Frame ): Face[]
}