FaceMatcher.d.ts 844 B

123456789101112131415
  1. import { FaceMatch } from '../classes/FaceMatch';
  2. import { LabeledFaceDescriptors } from '../classes/LabeledFaceDescriptors';
  3. import { WithFaceDescriptor } from '../factories';
  4. export declare class FaceMatcher {
  5. private _labeledDescriptors;
  6. private _distanceThreshold;
  7. constructor(inputs: LabeledFaceDescriptors | WithFaceDescriptor<any> | Float32Array | Array<LabeledFaceDescriptors | WithFaceDescriptor<any> | Float32Array>, distanceThreshold?: number);
  8. get labeledDescriptors(): LabeledFaceDescriptors[];
  9. get distanceThreshold(): number;
  10. computeMeanDistance(queryDescriptor: Float32Array, descriptors: Float32Array[]): number;
  11. matchDescriptor(queryDescriptor: Float32Array): FaceMatch;
  12. findBestMatch(queryDescriptor: Float32Array): FaceMatch;
  13. toJSON(): any;
  14. static fromJSON(json: any): FaceMatcher;
  15. }