Methods
addTrainingSample
- addTrainingSample(image, landmarks): boolean
Returns boolean
addTrainingSampleAsync
- addTrainingSampleAsync(image, landmarks): Promise<boolean>
Returns Promise<boolean>
fit
- fit(image, faces): Point2[][]
fitAsync
- fitAsync(image, faces): Promise<Point2[][]>
Returns Promise<Point2[][]>
getFaces
- getFaces(image): Rect[]
Returns Rect[]
getFacesAsync
- getFacesAsync(image): Promise<Rect[]>
Returns Promise<Rect[]>
load
- load(file): void
Returns void
loadModel
- loadModel(model): void
Returns void
loadModelAsync
- loadModelAsync(model): Promise<void>
Returns Promise<void>
save
- save(file): void
Returns void
setFaceDetector
- setFaceDetector(callback): boolean
Parameters
callback: ((...args) => any)
- (...args): any
Returns any
Returns boolean
training
- training(): void
Returns void
trainingAsync
- trainingAsync(): Promise<void>
Returns Promise<void>