Commit 652d3442 by vincent

added missing interfaces

parent 0a30ee70
import { IDimensions, ObjectDetection, Rect } from 'tfjs-image-recognition-base';
import { Box, IDimensions, ObjectDetection, Rect } from 'tfjs-image-recognition-base';
export class FaceDetection extends ObjectDetection {
export interface IFaceDetecion {
score: number
box: Box
}
export class FaceDetection extends ObjectDetection implements IFaceDetecion {
constructor(
score: number,
relativeBox: Rect,
......
......@@ -7,7 +7,12 @@ const relX = 0.5
const relY = 0.43
const relScale = 0.45
export class FaceLandmarks {
export interface IFaceLandmarks {
positions: Point[]
shift: Point
}
export class FaceLandmarks implements IFaceLandmarks {
protected _shift: Point
protected _positions: Point[]
protected _imgDims: Dimensions
......
import { round } from 'tfjs-image-recognition-base';
export class FaceMatch {
export interface IFaceMatch {
label: string
distance: number
}
export class FaceMatch implements IFaceMatch {
private _label: string
private _distance: number
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment