Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SP-12266 - fix detection types #73

Merged
merged 1 commit into from
Nov 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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