Skip to content

Commit aa200d1

Browse files
build dist
1 parent 8263bfd commit aa200d1

31 files changed

+314
-41
lines changed

dist/Point.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,7 @@ export declare class Point implements IPoint {
1010
sub(pt: IPoint): Point;
1111
mul(pt: IPoint): Point;
1212
div(pt: IPoint): Point;
13+
abs(): Point;
14+
magnitude(): number;
15+
floor(): Point;
1316
}

dist/Point.js

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/Point.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/alignFace.d.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { FaceLandmarks } from './faceLandmarkNet/FaceLandmarks';
2+
import { Rect } from './Rect';
3+
/**
4+
* Aligns the face landmarks after face detection from the relative positions of the faces
5+
* bounding box, or it's current shift. This function should be used to align the face images
6+
* after face detection has been performed, before they are passed to the face recognition net.
7+
* This will make the computed face descriptor more accurate.
8+
*
9+
* @param detection (optional) The bounding box of the face or the face detection result. If
10+
* no argument was passed the position of the face landmarks are assumed to be relative to
11+
* it's current shift.
12+
* @returns The bounding box of the aligned face.
13+
*/
14+
export declare function alignFace(faceLandmarks: FaceLandmarks, detection?: Rect): Rect;

dist/alignFace.js

Lines changed: 40 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/alignFace.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/commons/getCenterPoint.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import { Point } from '../Point';
2+
export declare function getCenterPoint(pts: Point[]): Point;

dist/commons/getCenterPoint.js

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/commons/getCenterPoint.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/extractFaceTensors.d.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
import * as tf from '@tensorflow/tfjs-core';
22
import { FaceDetection } from './faceDetectionNet/FaceDetection';
33
import { NetInput } from './NetInput';
4+
import { Rect } from './Rect';
45
import { TNetInput } from './types';
56
/**
67
* Extracts the tensors of the image regions containing the detected faces.
7-
* Returned tensors have to be disposed manually once you don't need them anymore!
8-
* Useful if you want to compute the face descriptors for the face
9-
* images. Using this method is faster then extracting a canvas for each face and
8+
* Useful if you want to compute the face descriptors for the face images.
9+
* Using this method is faster then extracting a canvas for each face and
1010
* converting them to tensors individually.
1111
*
1212
* @param input The image that face detection has been performed on.
13-
* @param detections The face detection results for that image.
13+
* @param detections The face detection results or face bounding boxes for that image.
1414
* @returns Tensors of the corresponding image region for each detected face.
1515
*/
16-
export declare function extractFaceTensors(image: tf.Tensor | NetInput | TNetInput, detections: FaceDetection[]): tf.Tensor4D[];
16+
export declare function extractFaceTensors(image: tf.Tensor | NetInput | TNetInput, detections: Array<FaceDetection | Rect>): tf.Tensor4D[];

0 commit comments

Comments
 (0)