Last
This commit is contained in:
parent
746a023014
commit
f3e3fb45bb
2 changed files with 1 additions and 5 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue