@@ -300,7 +300,7 @@ function getDetectionCenter(detection: FaceDetection) {
center.y += p.y;
});
- return center.div(new Point(4, 4));
+ return new Point(center.x / 4, center.y / 4);
}
function computeTransformToBox(inBox: Box, toBox: Box): Matrix {
@@ -6,10 +6,6 @@ export class Point {
this.x = x;
this.y = y;
-
- public div(pt: Point): Point {
- return new Point(this.x / pt.x, this.y / pt.y);
- }
export interface Dimensions {