@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.
25 lines (21 loc) • 631 B
JavaScript
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
}
}