Skip to content
Closed
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
26 changes: 16 additions & 10 deletions sdk/cognitiveservices/cognitiveservices-face/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,8 @@ export interface FaceAttributes {
export interface DetectedFace {
faceId?: string;
/**
* Possible values include: 'recognition_01', 'recognition_02'. Default value: 'recognition_01'.
* Possible values include: 'recognition_01', 'recognition_02', 'recognition_03'. Default value:
* 'recognition_01'.
*/
recognitionModel?: RecognitionModel;
faceRectangle: FaceRectangle;
Expand Down Expand Up @@ -568,7 +569,8 @@ export interface NameAndUserDataContract {
*/
export interface MetaDataContract extends NameAndUserDataContract {
/**
* Possible values include: 'recognition_01', 'recognition_02'. Default value: 'recognition_01'.
* Possible values include: 'recognition_01', 'recognition_02', 'recognition_03'. Default value:
* 'recognition_01'.
*/
recognitionModel?: RecognitionModel;
}
Expand Down Expand Up @@ -915,7 +917,7 @@ export interface FaceDetectWithUrlOptionalParams extends msRest.RequestOptionsBa
* name can be provided when performing Face - Detect or (Large)FaceList - Create or
* (Large)PersonGroup - Create. The default value is 'recognition_01', if latest model needed,
* please explicitly specify the model you need. Possible values include: 'recognition_01',
* 'recognition_02'. Default value: 'recognition_01'.
* 'recognition_02', 'recognition_03'. Default value: 'recognition_01'.
*/
recognitionModel?: RecognitionModel;
/**
Expand Down Expand Up @@ -978,7 +980,7 @@ export interface FaceDetectWithStreamOptionalParams extends msRest.RequestOption
* name can be provided when performing Face - Detect or (Large)FaceList - Create or
* (Large)PersonGroup - Create. The default value is 'recognition_01', if latest model needed,
* please explicitly specify the model you need. Possible values include: 'recognition_01',
* 'recognition_02'. Default value: 'recognition_01'.
* 'recognition_02', 'recognition_03'. Default value: 'recognition_01'.
*/
recognitionModel?: RecognitionModel;
/**
Expand Down Expand Up @@ -1111,7 +1113,8 @@ export interface PersonGroupCreateOptionalParams extends msRest.RequestOptionsBa
*/
userData?: string;
/**
* Possible values include: 'recognition_01', 'recognition_02'. Default value: 'recognition_01'.
* Possible values include: 'recognition_01', 'recognition_02', 'recognition_03'. Default value:
* 'recognition_01'.
*/
recognitionModel?: RecognitionModel;
}
Expand Down Expand Up @@ -1173,7 +1176,8 @@ export interface FaceListCreateOptionalParams extends msRest.RequestOptionsBase
*/
userData?: string;
/**
* Possible values include: 'recognition_01', 'recognition_02'. Default value: 'recognition_01'.
* Possible values include: 'recognition_01', 'recognition_02', 'recognition_03'. Default value:
* 'recognition_01'.
*/
recognitionModel?: RecognitionModel;
}
Expand Down Expand Up @@ -1379,7 +1383,8 @@ export interface LargePersonGroupCreateOptionalParams extends msRest.RequestOpti
*/
userData?: string;
/**
* Possible values include: 'recognition_01', 'recognition_02'. Default value: 'recognition_01'.
* Possible values include: 'recognition_01', 'recognition_02', 'recognition_03'. Default value:
* 'recognition_01'.
*/
recognitionModel?: RecognitionModel;
}
Expand Down Expand Up @@ -1441,7 +1446,8 @@ export interface LargeFaceListCreateOptionalParams extends msRest.RequestOptions
*/
userData?: string;
/**
* Possible values include: 'recognition_01', 'recognition_02'. Default value: 'recognition_01'.
* Possible values include: 'recognition_01', 'recognition_02', 'recognition_03'. Default value:
* 'recognition_01'.
*/
recognitionModel?: RecognitionModel;
}
Expand Down Expand Up @@ -1637,11 +1643,11 @@ export interface SnapshotApplyHeaders {

/**
* Defines values for RecognitionModel.
* Possible values include: 'recognition_01', 'recognition_02'
* Possible values include: 'recognition_01', 'recognition_02', 'recognition_03'
* @readonly
* @enum {string}
*/
export type RecognitionModel = 'recognition_01' | 'recognition_02';
export type RecognitionModel = 'recognition_01' | 'recognition_02' | 'recognition_03';

/**
* Defines values for Gender.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,9 @@ export class Face {
* | 'recognition_01': | The default recognition model for [Face -
* Detect](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/detectwithurl). All
* those faceIds created before 2019 March are bonded with this recognition model. |
* | 'recognition_02': | Recognition model released in 2019 March. 'recognition_02' is recommended
* since its overall accuracy is improved compared with 'recognition_01'. |
* | 'recognition_02': | Recognition model released in 2019 March. |
* | 'recognition_03': | Recognition model released in 2020 May. 'recognition_03' is recommended
* since its overall accuracy is improved compared with 'recognition_01' and 'recognition_02'. |
* @param url Publicly reachable URL of an image
* @param [options] The optional parameters
* @returns Promise<Models.FaceDetectWithUrlResponse>
Expand Down Expand Up @@ -377,8 +378,9 @@ export class Face {
* | 'recognition_01': | The default recognition model for [Face -
* Detect](https://docs.microsoft.com/rest/api/cognitiveservices/face/face/detectwithurl). All
* those faceIds created before 2019 March are bonded with this recognition model. |
* | 'recognition_02': | Recognition model released in 2019 March. 'recognition_02' is recommended
* since its overall accuracy is improved compared with 'recognition_01'. |
* | 'recognition_02': | Recognition model released in 2019 March. |
* | 'recognition_03': | Recognition model released in 2020 May. 'recognition_03' is recommended
* since its overall accuracy is improved compared with 'recognition_01' and 'recognition_02'. |
* @param image An image stream.
* @param [options] The optional parameters
* @returns Promise<Models.FaceDetectWithStreamResponse>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,9 @@ export class FaceListOperations {
* * 'recognition_01': The default recognition model for [FaceList-
* Create](https://docs.microsoft.com/rest/api/cognitiveservices/face/facelist/create). All those
* face lists created before 2019 March are bonded with this recognition model.
* * 'recognition_02': Recognition model released in 2019 March. 'recognition_02' is recommended
* since its overall accuracy is improved compared with 'recognition_01'.
* * 'recognition_02': Recognition model released in 2019 March.
* * 'recognition_03': Recognition model released in 2020 May. 'recognition_03' is recommended
* since its overall accuracy is improved compared with 'recognition_01' and 'recognition_02'.
* @param faceListId Id referencing a particular face list.
* @param [options] The optional parameters
* @returns Promise<msRest.RestResponse>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,9 @@ export class LargeFaceListOperations {
* * 'recognition_01': The default recognition model for [LargeFaceList-
* Create](https://docs.microsoft.com/rest/api/cognitiveservices/face/largefacelist/create). All
* those large face lists created before 2019 March are bonded with this recognition model.
* * 'recognition_02': Recognition model released in 2019 March. 'recognition_02' is recommended
* since its overall accuracy is improved compared with 'recognition_01'.
* * 'recognition_02': Recognition model released in 2019 March.
* * 'recognition_03': Recognition model released in 2020 May. 'recognition_03' is recommended
* since its overall accuracy is improved compared with 'recognition_01' and 'recognition_02'.
*
* Large face list quota:
* * Free-tier subscription quota: 64 large face lists.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@ export class LargePersonGroupOperations {
* * 'recognition_01': The default recognition model for [LargePersonGroup -
* Create](https://docs.microsoft.com/rest/api/cognitiveservices/face/largepersongroup/create). All
* those large person groups created before 2019 March are bonded with this recognition model.
* * 'recognition_02': Recognition model released in 2019 March. 'recognition_02' is recommended
* since its overall accuracy is improved compared with 'recognition_01'.
* * 'recognition_02': Recognition model released in 2019 March.
* * 'recognition_03': Recognition model released in 2020 May. 'recognition_03' is recommended
* since its overall accuracy is improved compared with 'recognition_01' and 'recognition_02'.
*
* Large person group quota:
* * Free-tier subscription quota: 1,000 large person groups.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ export class PersonGroupOperations {
* * 'recognition_01': The default recognition model for [PersonGroup -
* Create](https://docs.microsoft.com/rest/api/cognitiveservices/face/persongroup/create). All
* those person groups created before 2019 March are bonded with this recognition model.
* * 'recognition_02': Recognition model released in 2019 March. 'recognition_02' is recommended
* since its overall accuracy is improved compared with 'recognition_01'.
* * 'recognition_02': Recognition model released in 2019 March.
* * 'recognition_03': Recognition model released in 2020 May. 'recognition_03' is recommended
* since its overall accuracy is improved compared with 'recognition_01' and 'recognition_02'.
*
* Person group quota:
* * Free-tier subscription quota: 1,000 person groups. Each holds up to 1,000 persons.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,8 @@ const takeOperationSpec: msRest.OperationSpec = {
headersMapper: Mappers.SnapshotTakeHeaders
},
default: {
bodyMapper: Mappers.APIError
bodyMapper: Mappers.APIError,
headersMapper: Mappers.SnapshotTakeHeaders
}
},
serializer
Expand Down Expand Up @@ -461,7 +462,8 @@ const applyOperationSpec: msRest.OperationSpec = {
headersMapper: Mappers.SnapshotApplyHeaders
},
default: {
bodyMapper: Mappers.APIError
bodyMapper: Mappers.APIError,
headersMapper: Mappers.SnapshotApplyHeaders
}
},
serializer
Expand Down