@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.
23 lines (18 loc) • 605 B
JavaScript
import { Point } from "../image_params/point"
import { Rect } from "../image_params/rect"
export class SearchPersonDetection {
landmarks = []
rect
crop
rotationAngle
static fromJson(jsonObject) {
if (jsonObject == null) return null
var result = new SearchPersonDetection()
for (var item of jsonObject["landmarks"])
result.landmarks.push(Point.fromJson(item))
result.rect = Rect.fromJson(jsonObject["rect"])
result.crop = jsonObject["crop"]
result.rotationAngle = jsonObject["rotationAngle"]
return result
}
}