1 | import { UnavailabilityError } from '@unimodules/core';
|
2 | import ExpoFaceDetector from './ExpoFaceDetector';
|
3 | export 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 | }
|
9 | export const Constants = {
|
10 | Mode: ExpoFaceDetector.Mode,
|
11 | Landmarks: ExpoFaceDetector.Landmarks,
|
12 | Classifications: ExpoFaceDetector.Classifications,
|
13 | };
|
14 |
|
\ | No newline at end of file |