@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.
32 lines (27 loc) • 941 B
JavaScript
import { SearchPersonImage } from './search_person_image'
import { SearchPersonDetection } from './search_person_detection'
export class SearchPerson {
images = []
detection
name
updatedAt
groups
id
metadata
createdAt
static fromJson(jsonObject) {
if (jsonObject == null) return null
var result = new SearchPerson()
if (jsonObject["images"] != null)
for (var item of jsonObject["images"])
result.images.push(SearchPersonImage.fromJson(item))
result.detection = SearchPersonDetection.fromJson(jsonObject["detection"])
result.name = jsonObject["name"]
result.updatedAt = new Date(jsonObject["updatedAt"])
result.groups = jsonObject["groups"]
result.id = jsonObject["id"]
result.metadata = jsonObject["metadata"]
result.createdAt = new Date(jsonObject["createdAt"])
return result
}
}