@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.
24 lines (19 loc) • 614 B
JavaScript
import { FaceCaptureImage } from './face_capture_image'
import { FaceCaptureException } from './face_capture_exception'
export class FaceCaptureResponse {
error
image
static fromJson(jsonObject) {
if (jsonObject == null) return null
const result = new FaceCaptureResponse()
result.error = FaceCaptureException.fromJson(jsonObject["error"])
result.image = FaceCaptureImage.fromJson(jsonObject["image"])
return result
}
toJson() {
return {
"image": this.image?.toJson(),
"error": this.error?.toJson(),
}
}
}