UNPKG

@regulaforensics/face-sdk

Version:

This is an npm module for Regula Face SDK. It allows you to easily compaire faces using your phone's camera.

34 lines (29 loc) 838 B
export class MatchFacesImage { image imageType detectAll identifier constructor(image, imageType, params) { this.image = image this.imageType = imageType this.detectAll = params?.detectAll ?? false this.identifier = "" } static fromJson(jsonObject) { if (jsonObject == null) return null const result = new MatchFacesImage() result.image = jsonObject["image"] result.imageType = jsonObject["imageType"] result.detectAll = jsonObject["detectAll"] result.identifier = jsonObject["identifier"] return result } toJson() { return { "image": this.image, "imageType": this.imageType, "detectAll": this.detectAll, "identifier": this.identifier, } } }