react-native-vision-camera-face-detector
Version:
Frame Processor Plugin to detect faces using MLKit Vision Face Detector for React Native Vision Camera!
21 lines • 924 B
TypeScript
import React from 'react';
import { Camera as VisionCamera } from 'react-native-vision-camera';
import type { RefObject } from 'react';
import type { CameraProps, DrawableFrame, Frame } from 'react-native-vision-camera';
import type { Face, FrameFaceDetectionOptions } from './FaceDetector';
type CallbackType = (faces: Face[], frame: Frame) => void | Promise<void>;
type ComponentType = {
ref: RefObject<VisionCamera | null>;
faceDetectionOptions?: FrameFaceDetectionOptions;
faceDetectionCallback: CallbackType;
skiaActions?: (faces: Face[], frame: DrawableFrame) => void | Promise<void>;
} & CameraProps;
/**
* Vision camera wrapper
*
* @param {ComponentType} props Camera + face detection props
* @returns
*/
export declare function Camera({ ref, faceDetectionOptions, faceDetectionCallback, skiaActions, ...props }: ComponentType): React.JSX.Element;
export {};
//# sourceMappingURL=Camera.d.ts.map