2020-08-26 00:24:48 +02:00
|
|
|
import { SsdMobilenetv1Options } from '../ssdMobilenetv1';
|
2020-08-18 14:04:33 +02:00
|
|
|
import { TinyYolov2Options } from '../tinyYolov2';
|
|
|
|
import { detectAllFaces } from './detectFaces';
|
|
|
|
// export allFaces API for backward compatibility
|
2020-08-26 00:24:48 +02:00
|
|
|
export async function allFacesSsdMobilenetv1(input, minConfidence) {
|
|
|
|
console.warn('allFacesSsdMobilenetv1 is deprecated and will be removed soon, use the high level api instead');
|
|
|
|
return await detectAllFaces(input, new SsdMobilenetv1Options(minConfidence ? { minConfidence } : {}))
|
|
|
|
.withFaceLandmarks()
|
|
|
|
.withFaceDescriptors();
|
|
|
|
}
|
2020-08-18 14:04:33 +02:00
|
|
|
export async function allFacesTinyYolov2(input, forwardParams = {}) {
|
|
|
|
console.warn('allFacesTinyYolov2 is deprecated and will be removed soon, use the high level api instead');
|
|
|
|
return await detectAllFaces(input, new TinyYolov2Options(forwardParams))
|
|
|
|
.withFaceLandmarks()
|
|
|
|
.withFaceDescriptors();
|
|
|
|
}
|
2020-08-26 00:24:48 +02:00
|
|
|
export const allFaces = allFacesSsdMobilenetv1;
|
2020-08-18 14:04:33 +02:00
|
|
|
//# sourceMappingURL=allFaces.js.map
|