UNPKG

ngx-face-api-js

Version:

Angular directives for face detection and face recognition in the browser. It is a wrapper for face-api.js, so it is not dependent on the browser implementation.

21 lines (20 loc) 735 B
import { OnInit, ElementRef, Renderer2, OnDestroy } from '@angular/core'; import { Subscription } from 'rxjs'; import { DetectTask } from '../../classes/DetectTask'; import { FaceDetectorService } from '../../services/face-detector.service'; export declare class DetectionResultComponent implements OnInit, OnDestroy { private task; private el; private renderer; private faceDetector; subscription: Subscription; private canvasEl; private readonly canvas; private resize$; onResize(): void; constructor(task: DetectTask, el: ElementRef, renderer: Renderer2, faceDetector: FaceDetectorService); private convertResultToArray; ngOnInit(): void; ngOnDestroy(): void; private draw; }