@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.
28 lines (22 loc) • 668 B
JavaScript
import { OutputImageCrop } from './output_image_crop'
export class OutputImageParams {
crop
backgroundColor
constructor(params) {
this.crop = params?.crop
this.backgroundColor = params?.backgroundColor
}
static fromJson(jsonObject) {
if (jsonObject == null) return null
const result = new OutputImageParams()
result.crop = OutputImageCrop.fromJson(jsonObject["crop"])
result.backgroundColor = jsonObject["backgroundColor"]
return result
}
toJson() {
return {
"crop": this.crop?.toJson(),
"backgroundColor": this.backgroundColor,
}
}
}