You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: specification/ai/Face/models.common.tsp
+7-24Lines changed: 7 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -113,7 +113,7 @@ model ReturnRecognitionModelOptions {
113
113
modelTrainingStatus {
114
114
@doc("Training status of the container.")
115
115
@lroStatus
116
-
status:TrainingStatusType;
116
+
status:Foundations.OperationState;
117
117
118
118
@doc("A combined UTC date and time string that describes the created time of the person group, large person group or large face list.")
119
119
createdDateTime:utcDateTime;
@@ -128,34 +128,17 @@ model TrainingStatus {
128
128
message?:string;
129
129
}
130
130
131
-
@doc("Type of training status.")
132
-
enumTrainingStatusType {
133
-
@doc("If the training process is waiting to perform, the status is notstarted.")
134
-
nonstarted,
135
-
136
-
@doc("If the training is ongoing, the status is running.")
137
-
running,
138
-
139
-
@lroSucceeded
140
-
@doc("Status succeed means this person group or large person group is ready for Face - Identify, or this large face list is ready for Face - Find Similar.")
141
-
succeeded,
142
-
143
-
@lroFailed
144
-
@doc("Status failed is often caused by no person or no persisted face exist in the person group or large person group, or no persisted face exist in the large face list.")
145
-
failed,
146
-
}
147
-
148
131
@doc("Identify result.")
149
-
modelIdentifyResult {
132
+
modelFaceIdentificationResult {
150
133
@doc("Face ID of the query face.")
151
134
faceId:string;
152
135
153
136
@doc("The top candidate returned from the database.")
154
-
candidates:IdentifyCandidate[];
137
+
candidates:FaceIdentificationCandidate[];
155
138
}
156
139
157
140
@doc("Candidate for identify call.")
158
-
modelIdentifyCandidate {
141
+
modelFaceIdentificationCandidate {
159
142
@doc("PersonId of the candidate.")
160
143
personId:string;
161
144
@@ -164,7 +147,7 @@ model IdentifyCandidate {
164
147
}
165
148
166
149
@doc("Verify result.")
167
-
modelVerifyResult {
150
+
modelFaceVerificationResult {
168
151
@doc("True if the two faces belong to the same person or the face belongs to the person, otherwise false.")
169
152
isIdentical:boolean;
170
153
@@ -182,7 +165,7 @@ enum FindSimilarMatchMode {
182
165
}
183
166
184
167
@doc("Response body for find similar face operation.")
185
-
modelFindSimilarResult {
168
+
modelFaceFindSimilarResult {
186
169
@doc("Confidence value of the candidate. The higher confidence, the more similar. Range between [0,1].")
187
170
confidence:float32;
188
171
@@ -194,7 +177,7 @@ model FindSimilarResult {
194
177
}
195
178
196
179
@doc("Response body for group face operation.")
197
-
modelGroupResult {
180
+
modelFaceGroupingResult {
198
181
@doc("A partition of the original faces based on face similarity. Groups are ranked by number of faces.")
Copy file name to clipboardExpand all lines: specification/ai/Face/routes.common.tsp
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -135,7 +135,7 @@ op IdentifyOperation<T extends TypeSpec.Reflection.Model> is Azure.Core.RpcOpera
135
135
@doc("Customized identification confidence threshold, in the range of [0, 1]. Advanced user can tweak this value to override default internal threshold for better precision on their scenario data. Note there is no guarantee of this threshold value working on other data and after algorithm updates.")
136
136
confidenceThreshold?:float32;
137
137
},
138
-
Body<IdentifyResult[]>,
138
+
Body<FaceIdentificationResult[]>,
139
139
ServiceTraits
140
140
>;
141
141
@@ -149,7 +149,7 @@ op VerifyOperation<T extends TypeSpec.Reflection.Model> is Azure.Core.RpcOperati
149
149
150
150
...T;
151
151
},
152
-
VerifyResult,
152
+
FaceVerificationResult,
153
153
ServiceTraits
154
154
>;
155
155
@@ -170,7 +170,7 @@ op FindSimilarOperation<Ttarget extends TypeSpec.Reflection.Model> is Azure.Core
170
170
171
171
...Ttarget;
172
172
},
173
-
Body<FindSimilarResult[]>,
173
+
Body<FaceFindSimilarResult[]>,
174
174
ServiceTraits
175
175
>;
176
176
@@ -231,7 +231,7 @@ op verify is Azure.Core.RpcOperation<
231
231
@doc("faceId of the face, comes from Face - Detect.")
232
232
faceId2:string;
233
233
},
234
-
VerifyResult,
234
+
FaceVerificationResult,
235
235
ServiceTraits
236
236
>;
237
237
@@ -244,6 +244,6 @@ op group is Azure.Core.RpcOperation<
244
244
@doc("Array of candidate faceId created by Face - Detect. The maximum is 1000 faces.")
0 commit comments