face

LBPHFaceRecognizer

constructors

constructor ( radius : int = 1 , neighbors : int = 8 , grid_x : int = 8 , grid_y : int = 8 , threshold : number = DBL_MAX )

functions

load

load ( file : string ) : Result

predict

Result = {
label : int ,
confidence : number
}
predict ( img : Mat ) : Result
predictAsync ( img : Mat ) : Promise < Result >
predictAsync ( img : Mat , callback ( err : Error , Result res )) : void

save

save ( file : string ) : Result

train

train ( trainImages : Mat [] , labels : int []) : Result
trainAsync ( trainImages : Mat [] , labels : int []) : Promise < Result >
trainAsync ( trainImages : Mat [] , labels : int [] , callback ( err : Error , Result res )) : void