@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.
27 lines (23 loc) • 547 B
JavaScript
export class Rect {
bottom
top
left
right
static fromJson(jsonObject) {
if (jsonObject == null) return null
const result = new Rect()
result.bottom = jsonObject["bottom"]
result.top = jsonObject["top"]
result.left = jsonObject["left"]
result.right = jsonObject["right"]
return result
}
toJson() {
return {
"left": this.left,
"top": this.top,
"right": this.right,
"bottom": this.bottom,
}
}
}