Skip to content

Commit

Permalink
SP-12266 - fix detection types
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Nov 1, 2023
1 parent 95741e7 commit 19d57b0
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ models/detect-request.ts
models/detect-response-all-of.ts
models/detect-response.ts
models/detect-result.ts
models/detection-attributes.ts
models/detection-face.ts
models/detection-quality.ts
models/detection.ts
Expand Down
36 changes: 36 additions & 0 deletions src/models/detection-attributes.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/* tslint:disable */
/* eslint-disable */
/**
* Regula FaceSDK Web API
* Regula FaceSDK Web API # 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: 5.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;
}

5 changes: 3 additions & 2 deletions src/models/detection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
*/


import { DetectionAttributes } from './detection-attributes';
import { DetectionQuality } from './detection-quality';
import { ImageData } from './image-data';

Expand All @@ -30,10 +31,10 @@ export interface Detection {
'crop'?: ImageData;
/**
*
* @type {{ [key: string]: object; }}
* @type {DetectionAttributes}
* @memberof Detection
*/
'attributes'?: { [key: string]: object; };
'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>>}
Expand Down
1 change: 1 addition & 0 deletions src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export * from './detect-response';
export * from './detect-response-all-of';
export * from './detect-result';
export * from './detection';
export * from './detection-attributes';
export * from './detection-face';
export * from './detection-quality';
export * from './face-attribute';
Expand Down

0 comments on commit 19d57b0

Please sign in to comment.