@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.
21 lines (17 loc) • 602 B
JavaScript
import { MatchFacesImage } from './match_faces_image'
import { MatchFacesDetectionFace } from './match_faces_detection_face'
export class ComparedFace {
imageIndex
image
faceIndex
face
static fromJson(jsonObject) {
if (jsonObject == null) return null
const result = new ComparedFace()
result.imageIndex = jsonObject["imageIndex"]
result.image = MatchFacesImage.fromJson(jsonObject["image"])
result.faceIndex = jsonObject["faceIndex"]
result.face = MatchFacesDetectionFace.fromJson(jsonObject["face"])
return result
}
}