UNPKG

@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.

29 lines (24 loc) 758 B
import { ImageQualityRange } from '../image_quality/image_quality_range' export class DetectFacesAttributeResult { attribute value range confidence static fromJson(jsonObject) { if (jsonObject == null) return null const result = new DetectFacesAttributeResult() result.attribute = jsonObject["attribute"] result.value = jsonObject["value"] result.range = ImageQualityRange.fromJson(jsonObject["range"]) result.confidence = jsonObject["confidence"] return result } toJson() { return { "attribute": this.attribute, "value": this.value, "range": this.range?.toJson(), "confidence": this.confidence, } } }