2020-08-20 02:10:42 +02:00
|
|
|
import { ObjectDetection } from './ObjectDetection';
|
|
|
|
export class FaceDetection extends ObjectDetection {
|
2020-08-18 14:04:33 +02:00
|
|
|
constructor(score, relativeBox, imageDims) {
|
|
|
|
super(score, score, '', relativeBox, imageDims);
|
|
|
|
}
|
|
|
|
forSize(width, height) {
|
|
|
|
const { score, relativeBox, imageDims } = super.forSize(width, height);
|
|
|
|
return new FaceDetection(score, relativeBox, imageDims);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//# sourceMappingURL=FaceDetection.js.map
|