@regulaforensics/facesdk-webclient
Version:
JS client for facesdk web service
1,002 lines • 117 kB
TypeScript
import { AxiosRequestConfig, AxiosInstance } from "axios";
/**
* Regula Face SDK Web API
* <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process and image quality assurance. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face detection and image quality assessment</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness detection</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
*
* The version of the OpenAPI document: 6.2.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export interface ConfigurationParameters {
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
username?: string;
password?: string;
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
basePath?: string;
baseOptions?: any;
formDataCtor?: new () => any;
}
export class Configuration {
/**
* parameter for apiKey security
* @param name security name
* @memberof Configuration
*/
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
/**
* parameter for basic security
*
* @type {string}
* @memberof Configuration
*/
username?: string;
/**
* parameter for basic security
*
* @type {string}
* @memberof Configuration
*/
password?: string;
/**
* parameter for oauth2 security
* @param name security name
* @param scopes oauth2 scope
* @memberof Configuration
*/
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
/**
* override base path
*
* @type {string}
* @memberof Configuration
*/
basePath?: string;
/**
* base options for axios calls
*
* @type {any}
* @memberof Configuration
*/
baseOptions?: any;
/**
* The FormData constructor that will be used to create multipart form data
* requests. You can inject this here so that execution environments that
* do not support the FormData class can still run the generated client.
*
* @type {new () => FormData}
*/
formDataCtor?: new () => any;
constructor(param?: ConfigurationParameters);
/**
* Check if the given MIME is a JSON MIME.
* JSON MIME examples:
* application/json
* application/json; charset=UTF8
* APPLICATION/JSON
* application/vnd.company+json
* @param mime - MIME (Multipurpose Internet Mail Extensions)
* @return True if the given MIME is JSON, false otherwise.
*/
isJsonMime(mime: string): boolean;
}
/**
* Regula Face SDK Web API
* <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process and image quality assurance. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face detection and image quality assessment</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness detection</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
*
* The version of the OpenAPI document: 6.2.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
* Set to resize the original image.
* @export
* @interface ResizeOptions
*/
export interface ResizeOptions {
/**
* Resized image width, px.
* @type {number}
* @memberof ResizeOptions
*/
'width'?: number;
/**
* Resized image height, px.
* @type {number}
* @memberof ResizeOptions
*/
'height'?: number;
/**
* Resized image quality, percent.
* @type {number}
* @memberof ResizeOptions
*/
'quality'?: number;
}
type Base64String = string;
type ImageData = Base64String | ArrayBuffer;
/**
* Uploaded image.
* @export
* @interface AddImageToPersonRequestImage
*/
export interface AddImageToPersonRequestImage {
/**
* Original media type of the uploaded image.
* @type {string}
* @memberof AddImageToPersonRequestImage
*/
'contentType'?: string;
/**
*
* @type {ImageData}
* @memberof AddImageToPersonRequestImage
*/
'content'?: ImageData;
/**
* Image URL.
* @type {string}
* @memberof AddImageToPersonRequestImage
*/
'imageUrl'?: string;
/**
*
* @type {ResizeOptions}
* @memberof AddImageToPersonRequestImage
*/
'resizeOptions'?: ResizeOptions;
}
/**
* Image in the request data, includes image and contentType.
* @export
* @interface AddImageToPersonRequest
*/
export interface AddImageToPersonRequest {
/**
* Session identificator.
* @type {string}
* @memberof AddImageToPersonRequest
*/
'tag'?: string;
/**
*
* @type {AddImageToPersonRequestImage}
* @memberof AddImageToPersonRequest
*/
'image': AddImageToPersonRequestImage;
/**
* The similarity threshold.
* @type {number}
* @memberof AddImageToPersonRequest
*/
'threshold'?: number;
/**
* The maximum number of results to be returned.
* @type {number}
* @memberof AddImageToPersonRequest
*/
'limit'?: number;
}
/**
* Regula Face SDK Web API
* <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process and image quality assurance. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face detection and image quality assessment</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness detection</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
*
* The version of the OpenAPI document: 6.2.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
* Image in the response.
* @export
* @interface AddImageToPersonResponse
*/
export interface AddImageToPersonResponse {
/**
* Response image ID. The list is sorted by decreasing ID value.
* @type {string}
* @memberof AddImageToPersonResponse
*/
'id'?: string;
/**
* Original media type of the returned image.
* @type {string}
* @memberof AddImageToPersonResponse
*/
'contentType'?: string;
/**
* Returned image creation date.
* @type {string}
* @memberof AddImageToPersonResponse
*/
'createdAt'?: string;
/**
* Returned image path.
* @type {string}
* @memberof AddImageToPersonResponse
*/
'path'?: string;
/**
* Returned image URL.
* @type {string}
* @memberof AddImageToPersonResponse
*/
'url'?: string;
/**
* A free-form object containing person\'s extended attributes.
* @type {{ [key: string]: object; }}
* @memberof AddImageToPersonResponse
*/
'metadata'?: {
[key: string]: object;
};
}
/**
* Regula Face SDK Web API
* <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process and image quality assurance. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face detection and image quality assessment</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness detection</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
*
* The version of the OpenAPI document: 6.2.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
* The name of the attribute. For definitions, see the [FaceAttribute enum](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/enums/face-attribute/).
* @export
* @enum {string}
*/
export const FaceAttribute: {
readonly AGE: "Age";
readonly EMOTION: "Emotion";
readonly EYE_LEFT: "EyeLeft";
readonly EYE_RIGHT: "EyeRight";
readonly SMILE: "Smile";
readonly GLASSES: "Glasses";
readonly HEAD_COVERING: "HeadCovering";
readonly FOREHEAD_COVERING: "ForeheadCovering";
readonly MOUTH: "Mouth";
readonly MEDICAL_MASK: "MedicalMask";
readonly OCCLUSION: "Occlusion";
readonly STRONG_MAKEUP: "StrongMakeup";
readonly HEADPHONES: "Headphones";
};
export type FaceAttribute = (typeof FaceAttribute)[keyof typeof FaceAttribute];
/**
* The configuration that defines the list of returned attribute check characteristics.
* @export
* @interface AttributeConfig
*/
export interface AttributeConfig {
/**
*
* @type {FaceAttribute}
* @memberof AttributeConfig
*/
'name'?: FaceAttribute;
}
/**
* Regula Face SDK Web API
* <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process and image quality assurance. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face detection and image quality assessment</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness detection</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
*
* The version of the OpenAPI document: 6.2.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
* The aspect ratio according to which face alignment is performed. See the [FaceImageQualityAlignType enum](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/enums/face-image-quality-align-type/). To get a thumbnail with aspect ratio 3:4, set `0`.
* @export
* @enum {string}
*/
export const FaceImageQualityAlignType: {
readonly ALIGN_3x4: 0;
readonly ALIGN_4x5: 1;
readonly ALIGN_2x3: 2;
readonly ALIGN_1x1: 3;
readonly ALIGN_7x9: 4;
};
export type FaceImageQualityAlignType = (typeof FaceImageQualityAlignType)[keyof typeof FaceImageQualityAlignType];
/**
* Whether to return a Base64-encoded image of an aligned and cropped portrait in the `crop` field. Alignment is performed according to `type`; if a head on the original image is tilted, for the returned portrait it is aligned in a straight vertical line. If there are more than one face in the photo, all the faces are detected and processed, and separate portraits for each face are returned. So, if there are five people in the photo, you\'ll get five processed portraits. Each portrait can be downloaded.
* @export
* @interface Crop
*/
export interface Crop {
/**
*
* @type {FaceImageQualityAlignType}
* @memberof Crop
*/
'type'?: FaceImageQualityAlignType;
/**
* The RGB value of a color for filling background behind a person\'s silhouette and for aligning the image.
* @type {Array<number>}
* @memberof Crop
*/
'padColor'?: Array<number>;
/**
* The resize value in case `type` matches this value. If it doesn\'t, no resize is performed.
* @type {Array<number>}
* @memberof Crop
*/
'size'?: Array<number>;
/**
* Whether to return the coordinates of the rectangle with the face in the original image prepared for the face crop.
* @type {boolean}
* @memberof Crop
*/
'returnOriginalRect'?: boolean;
}
/**
* Regula Face SDK Web API
* <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process and image quality assurance. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face detection and image quality assessment</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness detection</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
*
* The version of the OpenAPI document: 6.2.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
* Face detection scenario. If applied and the scenario is found, the parameters are set automatically and any other parameters mentioned in the request are ignored. If not set, left empty, or the name is not found, the processing is performed according to the set parameters. You can find detailed descriptions of available scenarios on the [Scenarios page](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/usage/face-detection/scenarios/).
* @export
* @enum {string}
*/
export const FaceQualityScenarios: {
readonly OLD_MODE: "OldMode";
readonly QUALITY_FULL: "QualityFull";
readonly QUALITY_ICAO: "QualityICAO";
readonly QUALITY_VISA_SCHENGEN: "QualityVisaSchengen";
readonly QUALITY_VISA_USA: "QualityVisaUSA";
readonly CROP_CENTRAL_FACE: "CropCentralFace";
readonly CROP_ALL_FACES: "CropAllFaces";
readonly THUMBNAIL: "Thumbnail";
readonly EMPTY: "";
};
export type FaceQualityScenarios = (typeof FaceQualityScenarios)[keyof typeof FaceQualityScenarios];
/**
* Allows to process the uploaded image according to the indicated settings.
* @export
* @interface OutputImageParams
*/
export interface OutputImageParams {
/**
* The RGB value of a color for filling background behind a person\'s silhouette and for aligning the image.
* @type {Array<number>}
* @memberof OutputImageParams
*/
'backgroundColor'?: Array<number>;
/**
*
* @type {Crop}
* @memberof OutputImageParams
*/
'crop'?: Crop;
}
/**
* If set, the selected attributes, such as age or emotions, are evaluated.
* @export
* @interface ProcessParamAttributes
*/
export interface ProcessParamAttributes {
/**
* The list of attributes for evaluation.
* @type {Array<AttributeConfig>}
* @memberof ProcessParamAttributes
*/
'config'?: Array<AttributeConfig>;
}
/**
* Regula Face SDK Web API
* <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process and image quality assurance. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face detection and image quality assessment</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness detection</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
*
* The version of the OpenAPI document: 6.2.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
* The name of the quality check characteristic. For definitions, see the [FaceQualityConfigName enum](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/enums/face-quality-config-name/).
* @export
* @enum {string}
*/
export const FaceQualityConfigName: {
readonly IMAGE_WIDTH: "ImageWidth";
readonly IMAGE_HEIGHT: "ImageHeight";
readonly IMAGE_WIDTH_TO_HEIGHT: "ImageWidthToHeight";
readonly IMAGE_CHANNELS_NUMBER: "ImageChannelsNumber";
readonly PADDING_RATIO: "PaddingRatio";
readonly FACE_MID_POINT_HORIZONTAL_POSITION: "FaceMidPointHorizontalPosition";
readonly FACE_MID_POINT_VERTICAL_POSITION: "FaceMidPointVerticalPosition";
readonly HEAD_WIDTH_RATIO: "HeadWidthRatio";
readonly HEAD_HEIGHT_RATIO: "HeadHeightRatio";
readonly EYES_DISTANCE: "EyesDistance";
readonly YAW: "Yaw";
readonly PITCH: "Pitch";
readonly ROLL: "Roll";
readonly BLUR_LEVEL: "BlurLevel";
readonly NOISE_LEVEL: "NoiseLevel";
readonly EYE_RIGHT_CLOSED: "EyeRightClosed";
readonly EYE_LEFT_CLOSED: "EyeLeftClosed";
readonly EYE_RIGHT_OCCLUDED: "EyeRightOccluded";
readonly EYE_LEFT_OCCLUDED: "EyeLeftOccluded";
readonly EYES_RED: "EyesRed";
readonly EYE_RIGHT_COVERED_WITH_HAIR: "EyeRightCoveredWithHair";
readonly EYE_LEFT_COVERED_WITH_HAIR: "EyeLeftCoveredWithHair";
readonly OFF_GAZE: "OffGaze";
readonly FACE_DYNAMIC_RANGE: "FaceDynamicRange";
readonly UNNATURAL_SKIN_TONE: "UnnaturalSkinTone";
readonly TOO_DARK: "TooDark";
readonly TOO_LIGHT: "TooLight";
readonly FACE_GLARE: "FaceGlare";
readonly SHADOWS_ON_FACE: "ShadowsOnFace";
readonly DARK_GLASSES: "DarkGlasses";
readonly REFLECTION_ON_GLASSES: "ReflectionOnGlasses";
readonly FRAMES_TOO_HEAVY: "FramesTooHeavy";
readonly FACE_OCCLUDED: "FaceOccluded";
readonly HEAD_COVERING: "HeadCovering";
readonly BACKGROUND_UNIFORMITY: "BackgroundUniformity";
readonly SHADOWS_ON_BACKGROUND: "ShadowsOnBackground";
readonly OTHER_FACES: "OtherFaces";
readonly SHOULDERS_POSE: "ShouldersPose";
readonly EXPRESSION_LEVEL: "ExpressionLevel";
readonly MOUTH_OPEN: "MouthOpen";
readonly FOREHEAD_COVERING: "ForeheadCovering";
readonly SMILE: "Smile";
readonly STRONG_MAKEUP: "StrongMakeup";
readonly HEADPHONES: "Headphones";
readonly MEDICAL_MASK: "MedicalMask";
readonly BACKGROUND_COLOR_MATCH: "BackgroundColorMatch";
readonly ART_FACE: "ArtFace";
readonly CONTACT_LENSES: "ContactLenses";
};
export type FaceQualityConfigName = (typeof FaceQualityConfigName)[keyof typeof FaceQualityConfigName];
/**
* The configuration that defines the list of returned quality check characteristics.
* @export
* @interface QualityConfig
*/
export interface QualityConfig {
/**
*
* @type {FaceQualityConfigName}
* @memberof QualityConfig
*/
'name'?: FaceQualityConfigName;
/**
* The range of applicable values for this characteristic. If the returned in the response value fits this range, the characteristic is identified as compliant with the requirements.
* @type {Array<number>}
* @memberof QualityConfig
*/
'range'?: Array<number>;
}
/**
* If set, the face image quality check is performed according to the set scenario or characteristics.
* @export
* @interface QualityRequest
*/
export interface QualityRequest {
/**
* The RGB value of a color for filling background behind a person\'s silhouette and for aligning the image.
* @type {Array<number>}
* @memberof QualityRequest
*/
'backgroundMatchColor'?: Array<number>;
/**
* The list of quality check characteristics.
* @type {Array<QualityConfig>}
* @memberof QualityRequest
*/
'config'?: Array<QualityConfig>;
}
/**
* The processing parameters.
* @export
* @interface ProcessParam
*/
export interface ProcessParam {
/**
*
* @type {FaceQualityScenarios}
* @memberof ProcessParam
*/
'scenario'?: FaceQualityScenarios;
/**
* Whether to process only the central face in the image. If set to `false`, all the faces are processed.
* @type {boolean}
* @memberof ProcessParam
*/
'onlyCentralFace'?: boolean;
/**
*
* @type {OutputImageParams}
* @memberof ProcessParam
*/
'outputImageParams'?: OutputImageParams;
/**
*
* @type {QualityRequest}
* @memberof ProcessParam
*/
'quality'?: QualityRequest;
/**
*
* @type {ProcessParamAttributes}
* @memberof ProcessParam
*/
'attributes'?: ProcessParamAttributes;
}
/**
*
* @export
* @interface DetectRequest
*/
export interface DetectRequest {
/**
* Session identificator, should be unique for each session.
* @type {string}
* @memberof DetectRequest
*/
'tag'?: string;
/**
*
* @type {ProcessParam}
* @memberof DetectRequest
*/
'processParam'?: ProcessParam;
/**
*
* @type {ImageData}
* @memberof DetectRequest
*/
'image'?: ImageData;
/**
* Use `processParam.outputImageParams.crop` instead.
* @type {boolean}
* @memberof DetectRequest
* @deprecated
*/
'thumbnails'?: boolean;
}
/**
* Regula Face SDK Web API
* <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process and image quality assurance. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face detection and image quality assessment</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness detection</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
*
* The version of the OpenAPI document: 6.2.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
*
* @export
* @interface DetectionAttributes
*/
export interface DetectionAttributes {
/**
*
* @type {Array<{ [key: string]: object; }>}
* @memberof DetectionAttributes
*/
'details'?: Array<{
[key: string]: object;
}>;
/**
* The elapsed time for attribute detection.
* @type {number}
* @memberof DetectionAttributes
*/
'elapsedTime'?: number;
}
/**
* Regula Face SDK Web API
* <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process and image quality assurance. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face detection and image quality assessment</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness detection</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
*
* The version of the OpenAPI document: 6.2.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
* Face image quality group types for face image quality assessment.
* @export
* @enum {string}
*/
export const FaceImageQualityGroups: {
readonly IMAGE_CHARACTERISTICS: 1;
readonly HEAD_SIZE_AND_POSITIONS: 2;
readonly FACE_QUALITY: 3;
readonly EYES_CHARACTERISTICS: 4;
readonly SHADOWS_AND_LIGHTNING: 5;
readonly POSE_AND_EXPRESSION: 6;
readonly HEAD_OCCLUSION: 7;
readonly BACKGROUND: 8;
};
export type FaceImageQualityGroups = (typeof FaceImageQualityGroups)[keyof typeof FaceImageQualityGroups];
/**
* Regula Face SDK Web API
* <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process and image quality assurance. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face detection and image quality assessment</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness detection</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
*
* The version of the OpenAPI document: 6.2.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
* The processing status returned for each assessed quality characteristic.
* @export
* @enum {string}
*/
export const FaceImageQualityStatus: {
readonly QUALITY_STATUS_FALSE: 0;
readonly QUALITY_STATUS_TRUE: 1;
readonly QUALITY_STATUS_UNDETERMINED: 2;
};
export type FaceImageQualityStatus = (typeof FaceImageQualityStatus)[keyof typeof FaceImageQualityStatus];
/**
*
* @export
* @interface QualityDetail
*/
export interface QualityDetail {
/**
*
* @type {FaceImageQualityGroups}
* @memberof QualityDetail
*/
'groupId'?: FaceImageQualityGroups;
/**
*
* @type {FaceQualityConfigName}
* @memberof QualityDetail
*/
'name'?: FaceQualityConfigName;
/**
* The range of set values for this characteristic.
* @type {Array<number>}
* @memberof QualityDetail
*/
'range'?: Array<number>;
/**
*
* @type {FaceImageQualityStatus}
* @memberof QualityDetail
*/
'status'?: FaceImageQualityStatus;
/**
* The assessed value for the characteristic, returned in the set units.
* @type {number}
* @memberof QualityDetail
*/
'value'?: number;
}
/**
* Regula Face SDK Web API
* <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process and image quality assurance. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face detection and image quality assessment</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness detection</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
*
* The version of the OpenAPI document: 6.2.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
* Face image quality group types for face image quality assessment.
* @export
* @enum {string}
*/
export const FaceImageQualityGroupsStrings: {
readonly IMAGE_CHARACTERISTICS: "ImageCharacteristics";
readonly HEAD_SIZE_AND_POSITIONS: "HeadSizeAndPosition";
readonly FACE_QUALITY: "FaceQuality";
readonly EYES_CHARACTERISTICS: "EyesCharacteristics";
readonly SHADOWS_AND_LIGHTNING: "ShadowsAndLightning";
readonly POSE_AND_EXPRESSION: "PoseAndExpression";
readonly HEAD_OCCLUSION: "HeadOcclusion";
readonly BACKGROUND: "Background";
};
export type FaceImageQualityGroupsStrings = (typeof FaceImageQualityGroupsStrings)[keyof typeof FaceImageQualityGroupsStrings];
/**
*
* @export
* @interface QualityDetailsGroups
*/
export interface QualityDetailsGroups {
/**
*
* @type {FaceImageQualityGroups}
* @memberof QualityDetailsGroups
*/
'groupId'?: FaceImageQualityGroups;
/**
*
* @type {FaceImageQualityGroupsStrings}
* @memberof QualityDetailsGroups
*/
'name'?: FaceImageQualityGroupsStrings;
/**
* The total number of characteristics in the group.
* @type {number}
* @memberof QualityDetailsGroups
*/
'totalCount'?: number;
/**
* The number of compliant characteristics in the group.
* @type {number}
* @memberof QualityDetailsGroups
*/
'compliantCount'?: number;
}
/**
* Field for checking the portrait quality. If it is not mentioned, no quality check is performed.
* @export
* @interface DetectionQuality
*/
export interface DetectionQuality {
/**
* The array of all the non-compliant assessment characteristics.
* @type {Array<FaceQualityConfigName>}
* @memberof DetectionQuality
*/
'nonCompliant'?: Array<FaceQualityConfigName>;
/**
* The array of the assessment results for each group of characteristics.
* @type {Array<QualityDetailsGroups>}
* @memberof DetectionQuality
*/
'detailsGroups'?: Array<QualityDetailsGroups>;
/**
* The array of the assessment characteristics that were set in the request.
* @type {Array<QualityDetail>}
* @memberof DetectionQuality
*/
'details'?: Array<QualityDetail>;
/**
* Returns the estimated portrait quality assessment result, a number from 0 to 1, where 1 is for absolute compliance.
* @type {number}
* @memberof DetectionQuality
*/
'score'?: number;
/**
* The total time the quality assessment has taken.
* @type {number}
* @memberof DetectionQuality
*/
'timer'?: number;
}
/**
*
* @export
* @interface Detection
*/
export interface Detection {
/**
*
* @type {ImageData}
* @memberof Detection
*/
'crop'?: ImageData;
/**
*
* @type {DetectionAttributes}
* @memberof Detection
*/
'attributes'?: DetectionAttributes;
/**
* Absolute coordinates (x,y) of five points of each detected face: left eye, right eye, nose, left point of lips, right point of lips.
* @type {Array<Array<number>>}
* @memberof Detection
*/
'landmarks': Array<Array<number>>;
/**
*
* @type {DetectionQuality}
* @memberof Detection
*/
'quality'?: DetectionQuality;
/**
* The rectangular area of a detected face that is represented by a set of four elements: the X and Y coordinates of the top-left point, and the width and height dimensions of the rectangle.
* @type {Array<number>}
* @memberof Detection
*/
'roi': Array<number>;
/**
* See `crop` instead.
* @type {string}
* @memberof Detection
* @deprecated
*/
'thumbnail'?: string;
}
/**
*
* @export
* @interface DetectResult
*/
export interface DetectResult {
/**
*
* @type {Array<Detection>}
* @memberof DetectResult
*/
'detections': Array<Detection>;
/**
* Internal.
* @type {number}
* @memberof DetectResult
*/
'detectorType'?: number;
/**
* Internal.
* @type {number}
* @memberof DetectResult
*/
'landmarksType'?: number;
/**
*
* @type {FaceQualityScenarios}
* @memberof DetectResult
*/
'scenario'?: FaceQualityScenarios;
/**
* The total time taken for the detection.
* @type {number}
* @memberof DetectResult
*/
'timer'?: number;
}
/**
*
* @export
* @interface DetectResponseAllOf
*/
export interface DetectResponseAllOf {
/**
*
* @type {DetectResult}
* @memberof DetectResponseAllOf
*/
'results'?: DetectResult;
}
/**
* Regula Face SDK Web API
* <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process and image quality assurance. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face detection and image quality assessment</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness detection</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
*
* The version of the OpenAPI document: 6.2.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
* The result code, see the [FaceSDKResultCode enum](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/enums/face-sdk-result-code/).
* @export
* @enum {string}
*/
export const FaceSDKResultCode: {
readonly FACER_OK: 0;
readonly FR_IMAGE_EMPTY: 1;
readonly FR_FACE_NOT_DETECTED: 2;
readonly FR_LANDMARKS_NOT_DETECTED: 3;
readonly FR_FACE_ALIGHNER_FAILED: 4;
readonly FR_DESCRIPTOR_EXTRACTOR_ERROR: 5;
readonly FR_IMAGE_DECODE_ERROR: 6;
readonly FR_INTERNAL_ERROR: 7;
readonly FACER_CONFIG_ERROR: 199;
readonly FACER_NO_LICENSE: 200;
readonly FACER_IS_NOT_INITIALIZED: 201;
readonly FACER_COMMAND_IS_NOT_SUPPORTED: 202;
readonly FACER_COMMAND_PARAMS_READ_ERROR: 203;
readonly FACER_LESS_THAN_TWO_IMAGES_IN_REQUEST: 224;
readonly FACER_VIDEO_DECODE_ERROR: 227;
readonly FACER_NOT_ENOUGH_FRAMES: 228;
readonly FACER_OUTPUT_IS_NOT_DEFINED: 229;
readonly FACER_CLOSED_EYES_DETECTED: 230;
readonly FACER_LOW_QUALITY: 231;
readonly FACER_HIGH_ASYMMETRY: 232;
readonly FACER_FACE_OVER_EMOTIONAL: 233;
readonly FACER_SUNGLASSES_DETECTED: 234;
readonly FACER_SMALL_AGE: 235;
readonly FACER_HEADDRESS_DETECTED: 236;
readonly FACER_FACES_NOT_MATCHED: 237;
readonly FACER_IMAGES_COUNT_LIMIT_EXCEEDED: 238;
readonly FACER_MEDICINE_MASK_DETECTED: 239;
readonly FACER_OCCLUSION_DETECTED: 240;
readonly FACER_FOREHEAD_GLASSES_DETECTED: 242;
readonly FACER_MOUTH_OPENED: 243;
readonly FACER_ART_MASK_DETECTED: 244;
readonly FACER_ELECTRONIC_DEVICE_DETECTED: 245;
readonly FACER_TRACK_BREAK: 246;
readonly FACER_WRONG_GEO: 247;
readonly FACER_WRONG_OF: 248;
readonly FACER_WRONG_VIEW: 249;
readonly FACER_TIMEOUT_LIVENESS_TRANSACTION: 250;
readonly FACER_FAILED_LIVENESS_TRANSACTION: 251;
readonly FACER_ABORTED_LIVENESS_TRANSACTION: 252;
readonly FACER_GENERAL_ERROR: 253;
readonly FACER_PASSIVE_LIVENESS_FAIL: 254;
};
export type FaceSDKResultCode = (typeof FaceSDKResultCode)[keyof typeof FaceSDKResultCode];
/**
*
* @export
* @interface FaceSDKResult
*/
export interface FaceSDKResult {
/**
*
* @type {FaceSDKResultCode}
* @memberof FaceSDKResult
*/
'code': FaceSDKResultCode;
}
/**
* @type DetectResponse
* @export
*/
export type DetectResponse = DetectResponseAllOf & FaceSDKResult;
/**
* Regula Face SDK Web API
* <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process and image quality assurance. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face detection and image quality assessment</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness detection</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
*
* The version of the OpenAPI document: 6.2.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
*
* @export
* @interface DetectionFace
*/
export interface DetectionFace {
/**
* The detected face index number.
* @type {number}
* @memberof DetectionFace
*/
'faceIndex'?: number;
/**
* Absolute coordinates (x,y) of five points of each detected face: left eye, right eye, nose, left point of lips, right point of lips.
* @type {Array<Array<number>>}
* @memberof DetectionFace
*/
'landmarks'?: Array<Array<number>>;
/**
* Angle of rotation of the face from the vertical axis, degrees.
* @type {number}
* @memberof DetectionFace
*/
'rotationAngle'?: number;
/**
* The rectangular area of a detected face that is represented by a set of four elements: the X and Y coordinates of the top-left point, and the width and height dimensions of the rectangle.
* @type {Array<number>}
* @memberof DetectionFace
*/
'roi'?: Array<number>;
/**
* S