update
parent
dd024e0ebf
commit
62f123da0a
|
@ -1,6 +1,6 @@
|
|||
# @vladmandic/face-api
|
||||
|
||||
Version: **1.1.6**
|
||||
Version: **1.1.7**
|
||||
Description: **FaceAPI: AI-powered Face Detection, Description & Recognition using Tensorflow/JS**
|
||||
|
||||
Author: **Vladimir Mandic <mandic00@live.com>**
|
||||
|
@ -9,6 +9,10 @@ Repository: **<git+https://github.com/vladmandic/face-api.git>**
|
|||
|
||||
## Changelog
|
||||
|
||||
### **1.1.7** 2021/03/31 mandic00@live.com
|
||||
|
||||
- enable minify
|
||||
|
||||
### **1.1.6** 2021/03/26 mandic00@live.com
|
||||
|
||||
|
||||
|
|
27
demo/node.js
27
demo/node.js
|
@ -26,13 +26,33 @@ async function image(img) {
|
|||
}
|
||||
|
||||
async function detect(tensor) {
|
||||
const result = await faceapi
|
||||
try {
|
||||
const result = await faceapi
|
||||
.detectAllFaces(tensor, optionsSSDMobileNet)
|
||||
.withFaceLandmarks()
|
||||
.withFaceExpressions()
|
||||
.withFaceDescriptors()
|
||||
.withAgeAndGender();
|
||||
return result;
|
||||
} catch (err) {
|
||||
log.error('Caught error', err.message);
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
function detectPromise(tensor) {
|
||||
return new Promise((resolve) => faceapi
|
||||
.detectAllFaces(tensor, optionsSSDMobileNet)
|
||||
.withFaceLandmarks()
|
||||
.withFaceExpressions()
|
||||
.withFaceDescriptors()
|
||||
.withAgeAndGender();
|
||||
return result;
|
||||
.withAgeAndGender()
|
||||
.then((res) => resolve(res))
|
||||
.catch((err) => {
|
||||
log.error('Caught error', err.message);
|
||||
resolve([]);
|
||||
}));
|
||||
}
|
||||
|
||||
function print(face) {
|
||||
|
@ -80,6 +100,7 @@ async function main() {
|
|||
if (fs.existsSync(param)) {
|
||||
const tensor = await image(param);
|
||||
const result = await detect(tensor);
|
||||
// const result = await detectPromise(null);
|
||||
log.data('Image:', param, 'Detected faces:', result.length);
|
||||
for (const face of result) print(face);
|
||||
tensor.dispose();
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -39,9 +39,9 @@ const tsconfig = {
|
|||
// common configuration
|
||||
const common = {
|
||||
banner,
|
||||
minifyWhitespace: true,
|
||||
minifyIdentifiers: true,
|
||||
minifySyntax: true,
|
||||
minifyWhitespace: false,
|
||||
minifyIdentifiers: false,
|
||||
minifySyntax: false,
|
||||
bundle: true,
|
||||
sourcemap: true,
|
||||
metafile: true,
|
||||
|
|
|
@ -1,19 +1,12 @@
|
|||
import { FaceExpressions } from '../faceExpressionNet/FaceExpressions';
|
||||
|
||||
export type WithFaceExpressions<TSource> = TSource & {
|
||||
expressions: FaceExpressions
|
||||
}
|
||||
export type WithFaceExpressions<TSource> = TSource & { expressions: FaceExpressions }
|
||||
|
||||
export function isWithFaceExpressions(obj: any): obj is WithFaceExpressions<{}> {
|
||||
return obj.expressions instanceof FaceExpressions;
|
||||
}
|
||||
|
||||
export function extendWithFaceExpressions<
|
||||
TSource
|
||||
>(
|
||||
sourceObj: TSource,
|
||||
expressions: FaceExpressions,
|
||||
): WithFaceExpressions<TSource> {
|
||||
export function extendWithFaceExpressions<TSource>(sourceObj: TSource, expressions: FaceExpressions): WithFaceExpressions<TSource> {
|
||||
const extension = { expressions };
|
||||
return { ...sourceObj, ...extension };
|
||||
}
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
export class ComposableTask<T> {
|
||||
public async then(
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
onfulfilled: (value: T) => T | PromiseLike<T>,
|
||||
): Promise<T> {
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
public async then(onfulfilled: (value: T) => T | PromiseLike<T>): Promise<T> {
|
||||
return onfulfilled(await this.run());
|
||||
}
|
||||
|
||||
|
|
|
@ -20,12 +20,9 @@ export class ComputeFaceDescriptorsTaskBase<TReturn, TParentReturn> extends Comp
|
|||
}
|
||||
}
|
||||
|
||||
export class ComputeAllFaceDescriptorsTask<
|
||||
TSource extends WithFaceLandmarks<WithFaceDetection<{}>>
|
||||
> extends ComputeFaceDescriptorsTaskBase<WithFaceDescriptor<TSource>[], TSource[]> {
|
||||
export class ComputeAllFaceDescriptorsTask<TSource extends WithFaceLandmarks<WithFaceDetection<{}>>> extends ComputeFaceDescriptorsTaskBase<WithFaceDescriptor<TSource>[], TSource[]> {
|
||||
public async run(): Promise<WithFaceDescriptor<TSource>[]> {
|
||||
const parentResults = await this.parentTask;
|
||||
|
||||
const descriptors = await extractAllFacesAndComputeResults<TSource, Float32Array[]>(
|
||||
parentResults,
|
||||
this.input,
|
||||
|
@ -33,7 +30,6 @@ export class ComputeAllFaceDescriptorsTask<
|
|||
null,
|
||||
(parentResult) => parentResult.landmarks.align(null, { useDlibAlignment: true }),
|
||||
);
|
||||
|
||||
return descriptors.map((descriptor, i) => extendWithFaceDescriptor<TSource>(parentResults[i], descriptor));
|
||||
}
|
||||
|
||||
|
@ -46,9 +42,7 @@ export class ComputeAllFaceDescriptorsTask<
|
|||
}
|
||||
}
|
||||
|
||||
export class ComputeSingleFaceDescriptorTask<
|
||||
TSource extends WithFaceLandmarks<WithFaceDetection<{}>>
|
||||
> extends ComputeFaceDescriptorsTaskBase<WithFaceDescriptor<TSource> | undefined, TSource | undefined> {
|
||||
export class ComputeSingleFaceDescriptorTask<TSource extends WithFaceLandmarks<WithFaceDetection<{}>>> extends ComputeFaceDescriptorsTaskBase<WithFaceDescriptor<TSource> | undefined, TSource | undefined> {
|
||||
public async run(): Promise<WithFaceDescriptor<TSource> | undefined> {
|
||||
const parentResult = await this.parentTask;
|
||||
if (!parentResult) {
|
||||
|
|
|
@ -32,23 +32,17 @@ export class DetectFaceLandmarksTaskBase<TReturn, TParentReturn> extends Composa
|
|||
}
|
||||
}
|
||||
|
||||
export class DetectAllFaceLandmarksTask<
|
||||
TSource extends WithFaceDetection<{}>
|
||||
> extends DetectFaceLandmarksTaskBase<WithFaceLandmarks<TSource>[], TSource[]> {
|
||||
export class DetectAllFaceLandmarksTask<TSource extends WithFaceDetection<{}>> extends DetectFaceLandmarksTaskBase<WithFaceLandmarks<TSource>[], TSource[]> {
|
||||
public async run(): Promise<WithFaceLandmarks<TSource>[]> {
|
||||
const parentResults = await this.parentTask;
|
||||
const detections = parentResults.map((res) => res.detection);
|
||||
|
||||
const faces: Array<HTMLCanvasElement | tf.Tensor3D> = this.input instanceof tf.Tensor
|
||||
? await extractFaceTensors(this.input, detections)
|
||||
: await extractFaces(this.input, detections);
|
||||
|
||||
const faceLandmarksByFace = await Promise.all(faces.map(
|
||||
(face) => this.landmarkNet.detectLandmarks(face),
|
||||
)) as FaceLandmarks68[];
|
||||
|
||||
const faceLandmarksByFace = await Promise.all(
|
||||
faces.map((face) => this.landmarkNet.detectLandmarks(face)),
|
||||
) as FaceLandmarks68[];
|
||||
faces.forEach((f) => f instanceof tf.Tensor && f.dispose());
|
||||
|
||||
return parentResults.map((parentResult, i) => extendWithFaceLandmarks<TSource>(parentResult, faceLandmarksByFace[i]));
|
||||
}
|
||||
|
||||
|
@ -71,16 +65,12 @@ export class DetectSingleFaceLandmarksTask<TSource extends WithFaceDetection<{}>
|
|||
if (!parentResult) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
const { detection } = parentResult;
|
||||
const faces: Array<HTMLCanvasElement | tf.Tensor3D> = this.input instanceof tf.Tensor
|
||||
? await extractFaceTensors(this.input, [detection])
|
||||
: await extractFaces(this.input, [detection]);
|
||||
|
||||
const landmarks = await this.landmarkNet.detectLandmarks(faces[0]) as FaceLandmarks68;
|
||||
|
||||
faces.forEach((f) => f instanceof tf.Tensor && f.dispose());
|
||||
|
||||
return extendWithFaceLandmarks<TSource>(parentResult, landmarks);
|
||||
}
|
||||
|
||||
|
|
|
@ -27,15 +27,14 @@ export class DetectAllFacesTask extends DetectFacesTaskBase<FaceDetection[]> {
|
|||
else if (options instanceof SsdMobilenetv1Options) result = nets.ssdMobilenetv1.locateFaces(input, options);
|
||||
else if (options instanceof TinyYolov2Options) result = nets.tinyYolov2.locateFaces(input, options);
|
||||
else throw new Error('detectFaces - expected options to be instance of TinyFaceDetectorOptions | SsdMobilenetv1Options | TinyYolov2Options');
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
private runAndExtendWithFaceDetections(): Promise<WithFaceDetection<{}>[]> {
|
||||
// eslint-disable-next-line no-async-promise-executor
|
||||
return new Promise<WithFaceDetection<{}>[]>(async (resolve) => {
|
||||
const detections = await this.run();
|
||||
resolve(detections.map((detection) => extendWithFaceDetection({}, detection)));
|
||||
return new Promise<WithFaceDetection<{}>[]>((resolve, reject) => {
|
||||
this.run()
|
||||
.then((detections) => resolve(detections.map((detection) => extendWithFaceDetection({}, detection))))
|
||||
.catch((err) => reject(err));
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -26,21 +26,15 @@ export class PredictAgeAndGenderTaskBase<TReturn, TParentReturn> extends Composa
|
|||
}
|
||||
}
|
||||
|
||||
export class PredictAllAgeAndGenderTask<
|
||||
TSource extends WithFaceDetection<{}>
|
||||
> extends PredictAgeAndGenderTaskBase<WithAge<WithGender<TSource>>[], TSource[]> {
|
||||
export class PredictAllAgeAndGenderTask<TSource extends WithFaceDetection<{}>> extends PredictAgeAndGenderTaskBase<WithAge<WithGender<TSource>>[], TSource[]> {
|
||||
public async run(): Promise<WithAge<WithGender<TSource>>[]> {
|
||||
const parentResults = await this.parentTask;
|
||||
|
||||
const ageAndGenderByFace = await extractAllFacesAndComputeResults<TSource, AgeAndGenderPrediction[]>(
|
||||
parentResults,
|
||||
this.input,
|
||||
async (faces) => Promise.all(faces.map(
|
||||
(face) => nets.ageGenderNet.predictAgeAndGender(face) as Promise<AgeAndGenderPrediction>,
|
||||
)),
|
||||
async (faces) => Promise.all(faces.map((face) => nets.ageGenderNet.predictAgeAndGender(face) as Promise<AgeAndGenderPrediction>)),
|
||||
this.extractedFaces,
|
||||
);
|
||||
|
||||
return parentResults.map((parentResult, i) => {
|
||||
const { age, gender, genderProbability } = ageAndGenderByFace[i];
|
||||
return extendWithAge(extendWithGender(parentResult, gender, genderProbability), age);
|
||||
|
@ -52,22 +46,16 @@ export class PredictAllAgeAndGenderTask<
|
|||
}
|
||||
}
|
||||
|
||||
export class PredictSingleAgeAndGenderTask<
|
||||
TSource extends WithFaceDetection<{}>
|
||||
> extends PredictAgeAndGenderTaskBase<WithAge<WithGender<TSource>> | undefined, TSource | undefined> {
|
||||
export class PredictSingleAgeAndGenderTask<TSource extends WithFaceDetection<{}>> extends PredictAgeAndGenderTaskBase<WithAge<WithGender<TSource>> | undefined, TSource | undefined> {
|
||||
public async run(): Promise<WithAge<WithGender<TSource>> | undefined> {
|
||||
const parentResult = await this.parentTask;
|
||||
if (!parentResult) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
if (!parentResult) return undefined;
|
||||
const { age, gender, genderProbability } = await extractSingleFaceAndComputeResult<TSource, AgeAndGenderPrediction>(
|
||||
parentResult,
|
||||
this.input,
|
||||
(face) => nets.ageGenderNet.predictAgeAndGender(face) as Promise<AgeAndGenderPrediction>,
|
||||
this.extractedFaces,
|
||||
);
|
||||
|
||||
return extendWithAge(extendWithGender(parentResult, gender, genderProbability), age);
|
||||
}
|
||||
|
||||
|
@ -76,9 +64,7 @@ export class PredictSingleAgeAndGenderTask<
|
|||
}
|
||||
}
|
||||
|
||||
export class PredictAllAgeAndGenderWithFaceAlignmentTask<
|
||||
TSource extends WithFaceLandmarks<WithFaceDetection<{}>>
|
||||
> extends PredictAllAgeAndGenderTask<TSource> {
|
||||
export class PredictAllAgeAndGenderWithFaceAlignmentTask<TSource extends WithFaceLandmarks<WithFaceDetection<{}>>> extends PredictAllAgeAndGenderTask<TSource> {
|
||||
withFaceExpressions() {
|
||||
return new PredictAllFaceExpressionsWithFaceAlignmentTask(this, this.input);
|
||||
}
|
||||
|
@ -88,9 +74,7 @@ export class PredictAllAgeAndGenderWithFaceAlignmentTask<
|
|||
}
|
||||
}
|
||||
|
||||
export class PredictSingleAgeAndGenderWithFaceAlignmentTask<
|
||||
TSource extends WithFaceLandmarks<WithFaceDetection<{}>>
|
||||
> extends PredictSingleAgeAndGenderTask<TSource> {
|
||||
export class PredictSingleAgeAndGenderWithFaceAlignmentTask<TSource extends WithFaceLandmarks<WithFaceDetection<{}>>> extends PredictSingleAgeAndGenderTask<TSource> {
|
||||
withFaceExpressions() {
|
||||
return new PredictSingleFaceExpressionsWithFaceAlignmentTask(this, this.input);
|
||||
}
|
||||
|
|
|
@ -25,18 +25,16 @@ export class PredictFaceExpressionsTaskBase<TReturn, TParentReturn> extends Comp
|
|||
}
|
||||
}
|
||||
|
||||
export class PredictAllFaceExpressionsTask<
|
||||
TSource extends WithFaceDetection<{}>
|
||||
> extends PredictFaceExpressionsTaskBase<WithFaceExpressions<TSource>[], TSource[]> {
|
||||
export class PredictAllFaceExpressionsTask<TSource extends WithFaceDetection<{}>> extends PredictFaceExpressionsTaskBase<WithFaceExpressions<TSource>[], TSource[]> {
|
||||
public async run(): Promise<WithFaceExpressions<TSource>[]> {
|
||||
const parentResults = await this.parentTask;
|
||||
|
||||
const faceExpressionsByFace = await extractAllFacesAndComputeResults<TSource, FaceExpressions[]>(
|
||||
parentResults,
|
||||
this.input,
|
||||
async (faces) => Promise.all(faces.map(
|
||||
(face) => nets.faceExpressionNet.predictExpressions(face) as Promise<FaceExpressions>,
|
||||
)),
|
||||
async (faces) => Promise.all(
|
||||
faces.map((face) => nets.faceExpressionNet.predictExpressions(face) as Promise<FaceExpressions>),
|
||||
),
|
||||
this.extractedFaces,
|
||||
);
|
||||
|
||||
|
@ -50,9 +48,7 @@ export class PredictAllFaceExpressionsTask<
|
|||
}
|
||||
}
|
||||
|
||||
export class PredictSingleFaceExpressionsTask<
|
||||
TSource extends WithFaceDetection<{}>
|
||||
> extends PredictFaceExpressionsTaskBase<WithFaceExpressions<TSource> | undefined, TSource | undefined> {
|
||||
export class PredictSingleFaceExpressionsTask<TSource extends WithFaceDetection<{}>> extends PredictFaceExpressionsTaskBase<WithFaceExpressions<TSource> | undefined, TSource | undefined> {
|
||||
public async run(): Promise<WithFaceExpressions<TSource> | undefined> {
|
||||
const parentResult = await this.parentTask;
|
||||
if (!parentResult) {
|
||||
|
@ -74,9 +70,7 @@ export class PredictSingleFaceExpressionsTask<
|
|||
}
|
||||
}
|
||||
|
||||
export class PredictAllFaceExpressionsWithFaceAlignmentTask<
|
||||
TSource extends WithFaceLandmarks<WithFaceDetection<{}>>
|
||||
> extends PredictAllFaceExpressionsTask<TSource> {
|
||||
export class PredictAllFaceExpressionsWithFaceAlignmentTask<TSource extends WithFaceLandmarks<WithFaceDetection<{}>>> extends PredictAllFaceExpressionsTask<TSource> {
|
||||
withAgeAndGender() {
|
||||
return new PredictAllAgeAndGenderWithFaceAlignmentTask(this, this.input);
|
||||
}
|
||||
|
@ -86,9 +80,7 @@ export class PredictAllFaceExpressionsWithFaceAlignmentTask<
|
|||
}
|
||||
}
|
||||
|
||||
export class PredictSingleFaceExpressionsWithFaceAlignmentTask<
|
||||
TSource extends WithFaceLandmarks<WithFaceDetection<{}>>
|
||||
> extends PredictSingleFaceExpressionsTask<TSource> {
|
||||
export class PredictSingleFaceExpressionsWithFaceAlignmentTask<TSource extends WithFaceLandmarks<WithFaceDetection<{}>>> extends PredictSingleFaceExpressionsTask<TSource> {
|
||||
withAgeAndGender() {
|
||||
return new PredictSingleAgeAndGenderWithFaceAlignmentTask(this, this.input);
|
||||
}
|
||||
|
|
|
@ -17,17 +17,13 @@ export async function extractAllFacesAndComputeResults<TSource extends WithFaceD
|
|||
const faceBoxes = parentResults.map((parentResult) => (isWithFaceLandmarks(parentResult)
|
||||
? getRectForAlignment(parentResult)
|
||||
: parentResult.detection));
|
||||
|
||||
const faces: Array<HTMLCanvasElement | tf.Tensor3D> = extractedFaces || (
|
||||
input instanceof tf.Tensor
|
||||
? await extractFaceTensors(input, faceBoxes)
|
||||
: await extractFaces(input, faceBoxes)
|
||||
);
|
||||
|
||||
const results = await computeResults(faces);
|
||||
|
||||
faces.forEach((f) => f instanceof tf.Tensor && f.dispose());
|
||||
|
||||
return results;
|
||||
}
|
||||
|
||||
|
|
|
@ -20,17 +20,12 @@ export class SsdMobilenetv1 extends NeuralNetwork<NetParams> {
|
|||
|
||||
public forwardInput(input: NetInput) {
|
||||
const { params } = this;
|
||||
|
||||
if (!params) {
|
||||
throw new Error('SsdMobilenetv1 - load model before inference');
|
||||
}
|
||||
|
||||
if (!params) throw new Error('SsdMobilenetv1 - load model before inference');
|
||||
return tf.tidy(() => {
|
||||
const batchTensor = tf.cast(input.toBatchTensor(512, false), 'float32');
|
||||
const x = tf.sub(tf.div(batchTensor, 127.5), 1) as tf.Tensor4D; // input is normalized -1..1
|
||||
const features = mobileNetV1(x, params.mobilenetv1);
|
||||
const { boxPredictions, classPredictions } = predictionLayer(features.out, features.conv11, params.prediction_layer);
|
||||
|
||||
return outputLayer(boxPredictions, classPredictions, params.output_layer);
|
||||
});
|
||||
}
|
||||
|
@ -42,25 +37,20 @@ export class SsdMobilenetv1 extends NeuralNetwork<NetParams> {
|
|||
public async locateFaces(input: TNetInput, options: ISsdMobilenetv1Options = {}): Promise<FaceDetection[]> {
|
||||
const { maxResults, minConfidence } = new SsdMobilenetv1Options(options);
|
||||
const netInput = await toNetInput(input);
|
||||
|
||||
const { boxes: _boxes, scores: _scores } = this.forwardInput(netInput);
|
||||
|
||||
const boxes = _boxes[0];
|
||||
const scores = _scores[0];
|
||||
for (let i = 1; i < _boxes.length; i++) {
|
||||
_boxes[i].dispose();
|
||||
_scores[i].dispose();
|
||||
}
|
||||
|
||||
const scoresData = Array.from(scores.dataSync());
|
||||
const iouThreshold = 0.5;
|
||||
const indices = nonMaxSuppression(boxes, scoresData as number[], maxResults, iouThreshold, minConfidence);
|
||||
|
||||
const reshapedDims = netInput.getReshapedInputDimensions(0);
|
||||
const inputSize = netInput.inputSize as number;
|
||||
const padX = inputSize / reshapedDims.width;
|
||||
const padY = inputSize / reshapedDims.height;
|
||||
|
||||
const boxesData = boxes.arraySync();
|
||||
const results = indices
|
||||
.map((idx) => {
|
||||
|
@ -78,7 +68,6 @@ export class SsdMobilenetv1 extends NeuralNetwork<NetParams> {
|
|||
{ height: netInput.getInputHeight(0), width: netInput.getInputWidth(0) },
|
||||
);
|
||||
});
|
||||
|
||||
boxes.dispose();
|
||||
scores.dispose();
|
||||
return results;
|
||||
|
|
|
@ -145,7 +145,7 @@
|
|||
<li class="tsd-description">
|
||||
<aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/ComposableTask.ts#L9">globalApi/ComposableTask.ts:9</a></li>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/ComposableTask.ts#L7">globalApi/ComposableTask.ts:7</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">></span></h4>
|
||||
|
@ -162,7 +162,7 @@
|
|||
<li class="tsd-description">
|
||||
<aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/ComposableTask.ts#L2">globalApi/ComposableTask.ts:2</a></li>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/ComposableTask.ts#L3">globalApi/ComposableTask.ts:3</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<h4 class="tsd-parameters-title">Parameters</h4>
|
||||
|
|
|
@ -155,7 +155,7 @@
|
|||
<aside class="tsd-sources">
|
||||
<p>Overrides <a href="computefacedescriptorstaskbase.html">ComputeFaceDescriptorsTaskBase</a>.<a href="computefacedescriptorstaskbase.html#run">run</a></p>
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/ComputeFaceDescriptorsTasks.ts#L26">globalApi/ComputeFaceDescriptorsTasks.ts:26</a></li>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/ComputeFaceDescriptorsTasks.ts#L24">globalApi/ComputeFaceDescriptorsTasks.ts:24</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../index.html#withfacedescriptor" class="tsd-signature-type" data-tsd-kind="Type alias">WithFaceDescriptor</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">TSource</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">></span></h4>
|
||||
|
@ -173,7 +173,7 @@
|
|||
<aside class="tsd-sources">
|
||||
<p>Inherited from <a href="computefacedescriptorstaskbase.html">ComputeFaceDescriptorsTaskBase</a>.<a href="computefacedescriptorstaskbase.html#then">then</a></p>
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/ComposableTask.ts#L2">globalApi/ComposableTask.ts:2</a></li>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/ComposableTask.ts#L3">globalApi/ComposableTask.ts:3</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<h4 class="tsd-parameters-title">Parameters</h4>
|
||||
|
@ -214,7 +214,7 @@
|
|||
<li class="tsd-description">
|
||||
<aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/ComputeFaceDescriptorsTasks.ts#L44">globalApi/ComputeFaceDescriptorsTasks.ts:44</a></li>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/ComputeFaceDescriptorsTasks.ts#L40">globalApi/ComputeFaceDescriptorsTasks.ts:40</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">PredictAllAgeAndGenderWithFaceAlignmentTask</span><span class="tsd-signature-symbol"><</span><a href="../index.html#withfacedescriptor" class="tsd-signature-type" data-tsd-kind="Type alias">WithFaceDescriptor</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">TSource</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">></span></h4>
|
||||
|
@ -231,7 +231,7 @@
|
|||
<li class="tsd-description">
|
||||
<aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/ComputeFaceDescriptorsTasks.ts#L40">globalApi/ComputeFaceDescriptorsTasks.ts:40</a></li>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/ComputeFaceDescriptorsTasks.ts#L36">globalApi/ComputeFaceDescriptorsTasks.ts:36</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">PredictAllFaceExpressionsWithFaceAlignmentTask</span><span class="tsd-signature-symbol"><</span><a href="../index.html#withfacedescriptor" class="tsd-signature-type" data-tsd-kind="Type alias">WithFaceDescriptor</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">TSource</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">></span></h4>
|
||||
|
|
|
@ -167,7 +167,7 @@
|
|||
<aside class="tsd-sources">
|
||||
<p>Inherited from <a href="composabletask.html">ComposableTask</a>.<a href="composabletask.html#run">run</a></p>
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/ComposableTask.ts#L9">globalApi/ComposableTask.ts:9</a></li>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/ComposableTask.ts#L7">globalApi/ComposableTask.ts:7</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">TReturn</span><span class="tsd-signature-symbol">></span></h4>
|
||||
|
@ -185,7 +185,7 @@
|
|||
<aside class="tsd-sources">
|
||||
<p>Inherited from <a href="composabletask.html">ComposableTask</a>.<a href="composabletask.html#then">then</a></p>
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/ComposableTask.ts#L2">globalApi/ComposableTask.ts:2</a></li>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/ComposableTask.ts#L3">globalApi/ComposableTask.ts:3</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<h4 class="tsd-parameters-title">Parameters</h4>
|
||||
|
|
|
@ -155,7 +155,7 @@
|
|||
<aside class="tsd-sources">
|
||||
<p>Overrides <a href="computefacedescriptorstaskbase.html">ComputeFaceDescriptorsTaskBase</a>.<a href="computefacedescriptorstaskbase.html#run">run</a></p>
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/ComputeFaceDescriptorsTasks.ts#L52">globalApi/ComputeFaceDescriptorsTasks.ts:52</a></li>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/ComputeFaceDescriptorsTasks.ts#L46">globalApi/ComputeFaceDescriptorsTasks.ts:46</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="../index.html#withfacedescriptor" class="tsd-signature-type" data-tsd-kind="Type alias">WithFaceDescriptor</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">TSource</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">></span></h4>
|
||||
|
@ -173,7 +173,7 @@
|
|||
<aside class="tsd-sources">
|
||||
<p>Inherited from <a href="computefacedescriptorstaskbase.html">ComputeFaceDescriptorsTaskBase</a>.<a href="computefacedescriptorstaskbase.html#then">then</a></p>
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/ComposableTask.ts#L2">globalApi/ComposableTask.ts:2</a></li>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/ComposableTask.ts#L3">globalApi/ComposableTask.ts:3</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<h4 class="tsd-parameters-title">Parameters</h4>
|
||||
|
@ -214,7 +214,7 @@
|
|||
<li class="tsd-description">
|
||||
<aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/ComputeFaceDescriptorsTasks.ts#L73">globalApi/ComputeFaceDescriptorsTasks.ts:73</a></li>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/ComputeFaceDescriptorsTasks.ts#L67">globalApi/ComputeFaceDescriptorsTasks.ts:67</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">PredictSingleAgeAndGenderWithFaceAlignmentTask</span><span class="tsd-signature-symbol"><</span><a href="../index.html#withfacedescriptor" class="tsd-signature-type" data-tsd-kind="Type alias">WithFaceDescriptor</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">TSource</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">></span></h4>
|
||||
|
@ -231,7 +231,7 @@
|
|||
<li class="tsd-description">
|
||||
<aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/ComputeFaceDescriptorsTasks.ts#L69">globalApi/ComputeFaceDescriptorsTasks.ts:69</a></li>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/ComputeFaceDescriptorsTasks.ts#L63">globalApi/ComputeFaceDescriptorsTasks.ts:63</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">PredictSingleFaceExpressionsWithFaceAlignmentTask</span><span class="tsd-signature-symbol"><</span><a href="../index.html#withfacedescriptor" class="tsd-signature-type" data-tsd-kind="Type alias">WithFaceDescriptor</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">TSource</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">></span></h4>
|
||||
|
|
|
@ -159,7 +159,7 @@
|
|||
<aside class="tsd-sources">
|
||||
<p>Overrides <a href="detectfacelandmarkstaskbase.html">DetectFaceLandmarksTaskBase</a>.<a href="detectfacelandmarkstaskbase.html#run">run</a></p>
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/DetectFaceLandmarksTasks.ts#L38">globalApi/DetectFaceLandmarksTasks.ts:38</a></li>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/DetectFaceLandmarksTasks.ts#L36">globalApi/DetectFaceLandmarksTasks.ts:36</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../index.html#withfacelandmarks" class="tsd-signature-type" data-tsd-kind="Type alias">WithFaceLandmarks</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">TSource</span><span class="tsd-signature-symbol">, </span><a href="facelandmarks68.html" class="tsd-signature-type" data-tsd-kind="Class">FaceLandmarks68</a><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">></span></h4>
|
||||
|
@ -177,7 +177,7 @@
|
|||
<aside class="tsd-sources">
|
||||
<p>Inherited from <a href="detectfacelandmarkstaskbase.html">DetectFaceLandmarksTaskBase</a>.<a href="detectfacelandmarkstaskbase.html#then">then</a></p>
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/ComposableTask.ts#L2">globalApi/ComposableTask.ts:2</a></li>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/ComposableTask.ts#L3">globalApi/ComposableTask.ts:3</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<h4 class="tsd-parameters-title">Parameters</h4>
|
||||
|
@ -218,7 +218,7 @@
|
|||
<li class="tsd-description">
|
||||
<aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/DetectFaceLandmarksTasks.ts#L59">globalApi/DetectFaceLandmarksTasks.ts:59</a></li>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/DetectFaceLandmarksTasks.ts#L53">globalApi/DetectFaceLandmarksTasks.ts:53</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">PredictAllAgeAndGenderWithFaceAlignmentTask</span><span class="tsd-signature-symbol"><</span><a href="../index.html#withfacelandmarks" class="tsd-signature-type" data-tsd-kind="Type alias">WithFaceLandmarks</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">TSource</span><span class="tsd-signature-symbol">, </span><a href="facelandmarks68.html" class="tsd-signature-type" data-tsd-kind="Class">FaceLandmarks68</a><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">></span></h4>
|
||||
|
@ -235,7 +235,7 @@
|
|||
<li class="tsd-description">
|
||||
<aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/DetectFaceLandmarksTasks.ts#L63">globalApi/DetectFaceLandmarksTasks.ts:63</a></li>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/DetectFaceLandmarksTasks.ts#L57">globalApi/DetectFaceLandmarksTasks.ts:57</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<h4 class="tsd-returns-title">Returns <a href="computeallfacedescriptorstask.html" class="tsd-signature-type" data-tsd-kind="Class">ComputeAllFaceDescriptorsTask</a><span class="tsd-signature-symbol"><</span><a href="../index.html#withfacelandmarks" class="tsd-signature-type" data-tsd-kind="Type alias">WithFaceLandmarks</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">TSource</span><span class="tsd-signature-symbol">, </span><a href="facelandmarks68.html" class="tsd-signature-type" data-tsd-kind="Class">FaceLandmarks68</a><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">></span></h4>
|
||||
|
@ -252,7 +252,7 @@
|
|||
<li class="tsd-description">
|
||||
<aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/DetectFaceLandmarksTasks.ts#L55">globalApi/DetectFaceLandmarksTasks.ts:55</a></li>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/DetectFaceLandmarksTasks.ts#L49">globalApi/DetectFaceLandmarksTasks.ts:49</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">PredictAllFaceExpressionsWithFaceAlignmentTask</span><span class="tsd-signature-symbol"><</span><a href="../index.html#withfacelandmarks" class="tsd-signature-type" data-tsd-kind="Type alias">WithFaceLandmarks</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">TSource</span><span class="tsd-signature-symbol">, </span><a href="facelandmarks68.html" class="tsd-signature-type" data-tsd-kind="Class">FaceLandmarks68</a><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">></span></h4>
|
||||
|
|
|
@ -160,7 +160,7 @@
|
|||
<aside class="tsd-sources">
|
||||
<p>Inherited from <a href="detectfacestaskbase.html">DetectFacesTaskBase</a>.<a href="detectfacestaskbase.html#then">then</a></p>
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/ComposableTask.ts#L2">globalApi/ComposableTask.ts:2</a></li>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/ComposableTask.ts#L3">globalApi/ComposableTask.ts:3</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<h4 class="tsd-parameters-title">Parameters</h4>
|
||||
|
@ -201,7 +201,7 @@
|
|||
<li class="tsd-description">
|
||||
<aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/DetectFacesTasks.ts#L57">globalApi/DetectFacesTasks.ts:57</a></li>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/DetectFacesTasks.ts#L56">globalApi/DetectFacesTasks.ts:56</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">PredictAllAgeAndGenderTask</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-symbol">{ </span>detection<span class="tsd-signature-symbol">: </span><a href="facedetection.html" class="tsd-signature-type" data-tsd-kind="Class">FaceDetection</a><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol">></span></h4>
|
||||
|
@ -218,7 +218,7 @@
|
|||
<li class="tsd-description">
|
||||
<aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/DetectFacesTasks.ts#L50">globalApi/DetectFacesTasks.ts:50</a></li>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/DetectFacesTasks.ts#L49">globalApi/DetectFacesTasks.ts:49</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">PredictAllFaceExpressionsTask</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-symbol">{ </span>detection<span class="tsd-signature-symbol">: </span><a href="facedetection.html" class="tsd-signature-type" data-tsd-kind="Class">FaceDetection</a><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol">></span></h4>
|
||||
|
@ -235,7 +235,7 @@
|
|||
<li class="tsd-description">
|
||||
<aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/DetectFacesTasks.ts#L42">globalApi/DetectFacesTasks.ts:42</a></li>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/DetectFacesTasks.ts#L41">globalApi/DetectFacesTasks.ts:41</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<h4 class="tsd-parameters-title">Parameters</h4>
|
||||
|
|
|
@ -170,7 +170,7 @@
|
|||
<aside class="tsd-sources">
|
||||
<p>Inherited from <a href="composabletask.html">ComposableTask</a>.<a href="composabletask.html#run">run</a></p>
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/ComposableTask.ts#L9">globalApi/ComposableTask.ts:9</a></li>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/ComposableTask.ts#L7">globalApi/ComposableTask.ts:7</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">TReturn</span><span class="tsd-signature-symbol">></span></h4>
|
||||
|
@ -188,7 +188,7 @@
|
|||
<aside class="tsd-sources">
|
||||
<p>Inherited from <a href="composabletask.html">ComposableTask</a>.<a href="composabletask.html#then">then</a></p>
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/ComposableTask.ts#L2">globalApi/ComposableTask.ts:2</a></li>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/ComposableTask.ts#L3">globalApi/ComposableTask.ts:3</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<h4 class="tsd-parameters-title">Parameters</h4>
|
||||
|
|
|
@ -161,7 +161,7 @@
|
|||
<aside class="tsd-sources">
|
||||
<p>Inherited from <a href="composabletask.html">ComposableTask</a>.<a href="composabletask.html#run">run</a></p>
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/ComposableTask.ts#L9">globalApi/ComposableTask.ts:9</a></li>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/ComposableTask.ts#L7">globalApi/ComposableTask.ts:7</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">TReturn</span><span class="tsd-signature-symbol">></span></h4>
|
||||
|
@ -179,7 +179,7 @@
|
|||
<aside class="tsd-sources">
|
||||
<p>Inherited from <a href="composabletask.html">ComposableTask</a>.<a href="composabletask.html#then">then</a></p>
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/ComposableTask.ts#L2">globalApi/ComposableTask.ts:2</a></li>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/ComposableTask.ts#L3">globalApi/ComposableTask.ts:3</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<h4 class="tsd-parameters-title">Parameters</h4>
|
||||
|
|
|
@ -159,7 +159,7 @@
|
|||
<aside class="tsd-sources">
|
||||
<p>Overrides <a href="detectfacelandmarkstaskbase.html">DetectFaceLandmarksTaskBase</a>.<a href="detectfacelandmarkstaskbase.html#run">run</a></p>
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/DetectFaceLandmarksTasks.ts#L69">globalApi/DetectFaceLandmarksTasks.ts:69</a></li>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/DetectFaceLandmarksTasks.ts#L63">globalApi/DetectFaceLandmarksTasks.ts:63</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="../index.html#withfacelandmarks" class="tsd-signature-type" data-tsd-kind="Type alias">WithFaceLandmarks</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">TSource</span><span class="tsd-signature-symbol">, </span><a href="facelandmarks68.html" class="tsd-signature-type" data-tsd-kind="Class">FaceLandmarks68</a><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">></span></h4>
|
||||
|
@ -177,7 +177,7 @@
|
|||
<aside class="tsd-sources">
|
||||
<p>Inherited from <a href="detectfacelandmarkstaskbase.html">DetectFaceLandmarksTaskBase</a>.<a href="detectfacelandmarkstaskbase.html#then">then</a></p>
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/ComposableTask.ts#L2">globalApi/ComposableTask.ts:2</a></li>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/ComposableTask.ts#L3">globalApi/ComposableTask.ts:3</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<h4 class="tsd-parameters-title">Parameters</h4>
|
||||
|
@ -218,7 +218,7 @@
|
|||
<li class="tsd-description">
|
||||
<aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/DetectFaceLandmarksTasks.ts#L91">globalApi/DetectFaceLandmarksTasks.ts:91</a></li>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/DetectFaceLandmarksTasks.ts#L81">globalApi/DetectFaceLandmarksTasks.ts:81</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">PredictSingleAgeAndGenderWithFaceAlignmentTask</span><span class="tsd-signature-symbol"><</span><a href="../index.html#withfacelandmarks" class="tsd-signature-type" data-tsd-kind="Type alias">WithFaceLandmarks</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">TSource</span><span class="tsd-signature-symbol">, </span><a href="facelandmarks68.html" class="tsd-signature-type" data-tsd-kind="Class">FaceLandmarks68</a><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">></span></h4>
|
||||
|
@ -235,7 +235,7 @@
|
|||
<li class="tsd-description">
|
||||
<aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/DetectFaceLandmarksTasks.ts#L95">globalApi/DetectFaceLandmarksTasks.ts:95</a></li>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/DetectFaceLandmarksTasks.ts#L85">globalApi/DetectFaceLandmarksTasks.ts:85</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<h4 class="tsd-returns-title">Returns <a href="computesinglefacedescriptortask.html" class="tsd-signature-type" data-tsd-kind="Class">ComputeSingleFaceDescriptorTask</a><span class="tsd-signature-symbol"><</span><a href="../index.html#withfacelandmarks" class="tsd-signature-type" data-tsd-kind="Type alias">WithFaceLandmarks</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">TSource</span><span class="tsd-signature-symbol">, </span><a href="facelandmarks68.html" class="tsd-signature-type" data-tsd-kind="Class">FaceLandmarks68</a><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">></span></h4>
|
||||
|
@ -252,7 +252,7 @@
|
|||
<li class="tsd-description">
|
||||
<aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/DetectFaceLandmarksTasks.ts#L87">globalApi/DetectFaceLandmarksTasks.ts:87</a></li>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/DetectFaceLandmarksTasks.ts#L77">globalApi/DetectFaceLandmarksTasks.ts:77</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">PredictSingleFaceExpressionsWithFaceAlignmentTask</span><span class="tsd-signature-symbol"><</span><a href="../index.html#withfacelandmarks" class="tsd-signature-type" data-tsd-kind="Type alias">WithFaceLandmarks</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">TSource</span><span class="tsd-signature-symbol">, </span><a href="facelandmarks68.html" class="tsd-signature-type" data-tsd-kind="Class">FaceLandmarks68</a><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">></span></h4>
|
||||
|
|
|
@ -142,7 +142,7 @@
|
|||
<aside class="tsd-sources">
|
||||
<p>Overrides <a href="detectfacestaskbase.html">DetectFacesTaskBase</a>.<a href="detectfacestaskbase.html#run">run</a></p>
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/DetectFacesTasks.ts#L66">globalApi/DetectFacesTasks.ts:66</a></li>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/DetectFacesTasks.ts#L65">globalApi/DetectFacesTasks.ts:65</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="facedetection.html" class="tsd-signature-type" data-tsd-kind="Class">FaceDetection</a><span class="tsd-signature-symbol">></span></h4>
|
||||
|
@ -160,7 +160,7 @@
|
|||
<aside class="tsd-sources">
|
||||
<p>Inherited from <a href="detectfacestaskbase.html">DetectFacesTaskBase</a>.<a href="detectfacestaskbase.html#then">then</a></p>
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/ComposableTask.ts#L2">globalApi/ComposableTask.ts:2</a></li>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/ComposableTask.ts#L3">globalApi/ComposableTask.ts:3</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<h4 class="tsd-parameters-title">Parameters</h4>
|
||||
|
@ -201,7 +201,7 @@
|
|||
<li class="tsd-description">
|
||||
<aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/DetectFacesTasks.ts#L98">globalApi/DetectFacesTasks.ts:98</a></li>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/DetectFacesTasks.ts#L97">globalApi/DetectFacesTasks.ts:97</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">PredictSingleAgeAndGenderTask</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-symbol">{ </span>detection<span class="tsd-signature-symbol">: </span><a href="facedetection.html" class="tsd-signature-type" data-tsd-kind="Class">FaceDetection</a><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol">></span></h4>
|
||||
|
@ -218,7 +218,7 @@
|
|||
<li class="tsd-description">
|
||||
<aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/DetectFacesTasks.ts#L91">globalApi/DetectFacesTasks.ts:91</a></li>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/DetectFacesTasks.ts#L90">globalApi/DetectFacesTasks.ts:90</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">PredictSingleFaceExpressionsTask</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-symbol">{ </span>detection<span class="tsd-signature-symbol">: </span><a href="facedetection.html" class="tsd-signature-type" data-tsd-kind="Class">FaceDetection</a><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol">></span></h4>
|
||||
|
@ -235,7 +235,7 @@
|
|||
<li class="tsd-description">
|
||||
<aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/DetectFacesTasks.ts#L83">globalApi/DetectFacesTasks.ts:83</a></li>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/globalApi/DetectFacesTasks.ts#L82">globalApi/DetectFacesTasks.ts:82</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<h4 class="tsd-parameters-title">Parameters</h4>
|
||||
|
|
|
@ -275,7 +275,7 @@
|
|||
<aside class="tsd-sources">
|
||||
<p>Inherited from <a href="ssdmobilenetv1.html">SsdMobilenetv1</a>.<a href="ssdmobilenetv1.html#forward">forward</a></p>
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/ssdMobilenetv1/SsdMobilenetv1.ts#L38">ssdMobilenetv1/SsdMobilenetv1.ts:38</a></li>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/ssdMobilenetv1/SsdMobilenetv1.ts#L33">ssdMobilenetv1/SsdMobilenetv1.ts:33</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<h4 class="tsd-parameters-title">Parameters</h4>
|
||||
|
@ -515,7 +515,7 @@
|
|||
<aside class="tsd-sources">
|
||||
<p>Inherited from <a href="ssdmobilenetv1.html">SsdMobilenetv1</a>.<a href="ssdmobilenetv1.html#locatefaces">locateFaces</a></p>
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/ssdMobilenetv1/SsdMobilenetv1.ts#L42">ssdMobilenetv1/SsdMobilenetv1.ts:42</a></li>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/ssdMobilenetv1/SsdMobilenetv1.ts#L37">ssdMobilenetv1/SsdMobilenetv1.ts:37</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<h4 class="tsd-parameters-title">Parameters</h4>
|
||||
|
|
|
@ -279,7 +279,7 @@
|
|||
<li class="tsd-description">
|
||||
<aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/ssdMobilenetv1/SsdMobilenetv1.ts#L38">ssdMobilenetv1/SsdMobilenetv1.ts:38</a></li>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/ssdMobilenetv1/SsdMobilenetv1.ts#L33">ssdMobilenetv1/SsdMobilenetv1.ts:33</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<h4 class="tsd-parameters-title">Parameters</h4>
|
||||
|
@ -517,7 +517,7 @@
|
|||
<li class="tsd-description">
|
||||
<aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/ssdMobilenetv1/SsdMobilenetv1.ts#L42">ssdMobilenetv1/SsdMobilenetv1.ts:42</a></li>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/ssdMobilenetv1/SsdMobilenetv1.ts#L37">ssdMobilenetv1/SsdMobilenetv1.ts:37</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<h4 class="tsd-parameters-title">Parameters</h4>
|
||||
|
|
|
@ -1561,7 +1561,7 @@
|
|||
<li class="tsd-description">
|
||||
<aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/factories/WithFaceExpressions.ts#L11">factories/WithFaceExpressions.ts:11</a></li>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/factories/WithFaceExpressions.ts#L9">factories/WithFaceExpressions.ts:9</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<h4 class="tsd-type-parameters-title">Type parameters</h4>
|
||||
|
@ -2088,7 +2088,7 @@
|
|||
<li class="tsd-description">
|
||||
<aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/factories/WithFaceExpressions.ts#L7">factories/WithFaceExpressions.ts:7</a></li>
|
||||
<li>Defined in <a href="https://github.com/vladmandic/face-api/blob/main/src/factories/WithFaceExpressions.ts#L5">factories/WithFaceExpressions.ts:5</a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<h4 class="tsd-parameters-title">Parameters</h4>
|
||||
|
|
Loading…
Reference in New Issue