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( constructor(
score: number, score: number,
relativeBox: Rect, relativeBox: Rect,
......
...@@ -7,7 +7,12 @@ const relX = 0.5 ...@@ -7,7 +7,12 @@ const relX = 0.5
const relY = 0.43 const relY = 0.43
const relScale = 0.45 const relScale = 0.45
export class FaceLandmarks { export interface IFaceLandmarks {
positions: Point[]
shift: Point
}
export class FaceLandmarks implements IFaceLandmarks {
protected _shift: Point protected _shift: Point
protected _positions: Point[] protected _positions: Point[]
protected _imgDims: Dimensions protected _imgDims: Dimensions
......
import { round } from 'tfjs-image-recognition-base'; 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 _label: string
private _distance: number 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