2020-08-18 14:04:33 +02:00
|
|
|
import { FaceMatch } from '../classes/FaceMatch';
|
|
|
|
import { LabeledFaceDescriptors } from '../classes/LabeledFaceDescriptors';
|
|
|
|
import { WithFaceDescriptor } from '../factories';
|
|
|
|
export declare class FaceMatcher {
|
|
|
|
private _labeledDescriptors;
|
|
|
|
private _distanceThreshold;
|
|
|
|
constructor(inputs: LabeledFaceDescriptors | WithFaceDescriptor<any> | Float32Array | Array<LabeledFaceDescriptors | WithFaceDescriptor<any> | Float32Array>, distanceThreshold?: number);
|
|
|
|
get labeledDescriptors(): LabeledFaceDescriptors[];
|
|
|
|
get distanceThreshold(): number;
|
|
|
|
computeMeanDistance(queryDescriptor: Float32Array, descriptors: Float32Array[]): number;
|
|
|
|
matchDescriptor(queryDescriptor: Float32Array): FaceMatch;
|
|
|
|
findBestMatch(queryDescriptor: Float32Array): FaceMatch;
|
|
|
|
toJSON(): any;
|
|
|
|
static fromJSON(json: any): FaceMatcher;
|
|
|
|
}
|
2020-08-21 15:01:04 +02:00
|
|
|
//# sourceMappingURL=FaceMatcher.d.ts.map
|