face-api/build/globalApi/detectFaces.js

9 lines
467 B
JavaScript
Raw Normal View History

2020-08-26 00:24:48 +02:00
import { SsdMobilenetv1Options } from '../ssdMobilenetv1/SsdMobilenetv1Options';
2020-08-20 02:10:42 +02:00
import { DetectAllFacesTask, DetectSingleFaceTask } from './DetectFacesTasks';
2020-08-26 00:24:48 +02:00
export function detectSingleFace(input, options = new SsdMobilenetv1Options()) {
2020-08-20 02:10:42 +02:00
return new DetectSingleFaceTask(input, options);
2020-08-18 14:04:33 +02:00
}
2020-08-26 00:24:48 +02:00
export function detectAllFaces(input, options = new SsdMobilenetv1Options()) {
2020-08-20 02:10:42 +02:00
return new DetectAllFacesTask(input, options);
2020-08-18 14:04:33 +02:00
}
//# sourceMappingURL=detectFaces.js.map