UNPKG

561 BJavaScriptView Raw
1import { UnavailabilityError } from '@unimodules/core';
2import ExpoFaceDetector from './ExpoFaceDetector';
3export async function detectFacesAsync(uri, options = {}) {
4 if (!ExpoFaceDetector.detectFaces) {
5 throw new UnavailabilityError('expo-face-detector', 'detectFaces');
6 }
7 return await ExpoFaceDetector.detectFaces({ ...options, uri });
8}
9export const Constants = {
10 Mode: ExpoFaceDetector.Mode,
11 Landmarks: ExpoFaceDetector.Landmarks,
12 Classifications: ExpoFaceDetector.Classifications,
13};
14//# sourceMappingURL=FaceDetector.js.map
\No newline at end of file