This commit is contained in:
Manav Rathi 2024-05-14 11:17:37 +05:30
parent 746a023014
commit f3e3fb45bb
No known key found for this signature in database
2 changed files with 1 additions and 5 deletions

View file

@ -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 {

View file

@ -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 {