@regulaforensics/document-reader
Version:
This is an npm module for Regula Document Reader SDK. It allows you to read various kinds of identification documents using your phone's camera.
30 lines (25 loc) • 688 B
JavaScript
export class FaceApiSearchParams {
limit
threshold
groupIds
constructor(options) {
this.limit = options?.limit ?? 100;
this.threshold = options?.threshold ?? 1;
this.groupIds = options?.groupIds;
}
static fromJson(jsonObject) {
if (jsonObject == null) return null;
return new FaceApiSearchParams({
limit: jsonObject["limit"],
threshold: jsonObject["threshold"],
groupIds: jsonObject["groupIds"]
});
}
toJson() {
return {
"limit": this.limit,
"threshold": this.threshold,
"groupIds": this.groupIds,
}
}
}