1 package face
2
3
4
5
6
7
8
9
10 type AccessoryType string
11
12 const (
13
14 Glasses AccessoryType = "glasses"
15
16 HeadWear AccessoryType = "headWear"
17
18 Mask AccessoryType = "mask"
19 )
20
21
22 func PossibleAccessoryTypeValues() []AccessoryType {
23 return []AccessoryType{Glasses, HeadWear, Mask}
24 }
25
26
27 type AttributeType string
28
29 const (
30
31 AttributeTypeAccessories AttributeType = "accessories"
32
33 AttributeTypeAge AttributeType = "age"
34
35 AttributeTypeBlur AttributeType = "blur"
36
37 AttributeTypeEmotion AttributeType = "emotion"
38
39 AttributeTypeExposure AttributeType = "exposure"
40
41 AttributeTypeFacialHair AttributeType = "facialHair"
42
43 AttributeTypeGender AttributeType = "gender"
44
45 AttributeTypeGlasses AttributeType = "glasses"
46
47 AttributeTypeHair AttributeType = "hair"
48
49 AttributeTypeHeadPose AttributeType = "headPose"
50
51 AttributeTypeMakeup AttributeType = "makeup"
52
53 AttributeTypeNoise AttributeType = "noise"
54
55 AttributeTypeOcclusion AttributeType = "occlusion"
56
57 AttributeTypeSmile AttributeType = "smile"
58 )
59
60
61 func PossibleAttributeTypeValues() []AttributeType {
62 return []AttributeType{AttributeTypeAccessories, AttributeTypeAge, AttributeTypeBlur, AttributeTypeEmotion, AttributeTypeExposure, AttributeTypeFacialHair, AttributeTypeGender, AttributeTypeGlasses, AttributeTypeHair, AttributeTypeHeadPose, AttributeTypeMakeup, AttributeTypeNoise, AttributeTypeOcclusion, AttributeTypeSmile}
63 }
64
65
66 type BlurLevel string
67
68 const (
69
70 High BlurLevel = "High"
71
72 Low BlurLevel = "Low"
73
74 Medium BlurLevel = "Medium"
75 )
76
77
78 func PossibleBlurLevelValues() []BlurLevel {
79 return []BlurLevel{High, Low, Medium}
80 }
81
82
83 type DetectionModel string
84
85 const (
86
87 Detection01 DetectionModel = "detection_01"
88
89 Detection02 DetectionModel = "detection_02"
90 )
91
92
93 func PossibleDetectionModelValues() []DetectionModel {
94 return []DetectionModel{Detection01, Detection02}
95 }
96
97
98 type ExposureLevel string
99
100 const (
101
102 GoodExposure ExposureLevel = "GoodExposure"
103
104 OverExposure ExposureLevel = "OverExposure"
105
106 UnderExposure ExposureLevel = "UnderExposure"
107 )
108
109
110 func PossibleExposureLevelValues() []ExposureLevel {
111 return []ExposureLevel{GoodExposure, OverExposure, UnderExposure}
112 }
113
114
115 type FindSimilarMatchMode string
116
117 const (
118
119 MatchFace FindSimilarMatchMode = "matchFace"
120
121 MatchPerson FindSimilarMatchMode = "matchPerson"
122 )
123
124
125 func PossibleFindSimilarMatchModeValues() []FindSimilarMatchMode {
126 return []FindSimilarMatchMode{MatchFace, MatchPerson}
127 }
128
129
130 type Gender string
131
132 const (
133
134 Female Gender = "female"
135
136 Male Gender = "male"
137 )
138
139
140 func PossibleGenderValues() []Gender {
141 return []Gender{Female, Male}
142 }
143
144
145 type GlassesType string
146
147 const (
148
149 NoGlasses GlassesType = "noGlasses"
150
151 ReadingGlasses GlassesType = "readingGlasses"
152
153 Sunglasses GlassesType = "sunglasses"
154
155 SwimmingGoggles GlassesType = "swimmingGoggles"
156 )
157
158
159 func PossibleGlassesTypeValues() []GlassesType {
160 return []GlassesType{NoGlasses, ReadingGlasses, Sunglasses, SwimmingGoggles}
161 }
162
163
164 type HairColorType string
165
166 const (
167
168 Black HairColorType = "black"
169
170 Blond HairColorType = "blond"
171
172 Brown HairColorType = "brown"
173
174 Gray HairColorType = "gray"
175
176 Other HairColorType = "other"
177
178 Red HairColorType = "red"
179
180 Unknown HairColorType = "unknown"
181
182 White HairColorType = "white"
183 )
184
185
186 func PossibleHairColorTypeValues() []HairColorType {
187 return []HairColorType{Black, Blond, Brown, Gray, Other, Red, Unknown, White}
188 }
189
190
191 type NoiseLevel string
192
193 const (
194
195 NoiseLevelHigh NoiseLevel = "High"
196
197 NoiseLevelLow NoiseLevel = "Low"
198
199 NoiseLevelMedium NoiseLevel = "Medium"
200 )
201
202
203 func PossibleNoiseLevelValues() []NoiseLevel {
204 return []NoiseLevel{NoiseLevelHigh, NoiseLevelLow, NoiseLevelMedium}
205 }
206
207
208 type OperationStatusType string
209
210 const (
211
212 Failed OperationStatusType = "failed"
213
214 Notstarted OperationStatusType = "notstarted"
215
216 Running OperationStatusType = "running"
217
218 Succeeded OperationStatusType = "succeeded"
219 )
220
221
222 func PossibleOperationStatusTypeValues() []OperationStatusType {
223 return []OperationStatusType{Failed, Notstarted, Running, Succeeded}
224 }
225
226
227 type RecognitionModel string
228
229 const (
230
231 Recognition01 RecognitionModel = "recognition_01"
232
233 Recognition02 RecognitionModel = "recognition_02"
234
235 Recognition03 RecognitionModel = "recognition_03"
236 )
237
238
239 func PossibleRecognitionModelValues() []RecognitionModel {
240 return []RecognitionModel{Recognition01, Recognition02, Recognition03}
241 }
242
243
244 type SnapshotApplyMode string
245
246 const (
247
248 CreateNew SnapshotApplyMode = "CreateNew"
249 )
250
251
252 func PossibleSnapshotApplyModeValues() []SnapshotApplyMode {
253 return []SnapshotApplyMode{CreateNew}
254 }
255
256
257 type SnapshotObjectType string
258
259 const (
260
261 SnapshotObjectTypeFaceList SnapshotObjectType = "FaceList"
262
263 SnapshotObjectTypeLargeFaceList SnapshotObjectType = "LargeFaceList"
264
265 SnapshotObjectTypeLargePersonGroup SnapshotObjectType = "LargePersonGroup"
266
267 SnapshotObjectTypePersonGroup SnapshotObjectType = "PersonGroup"
268 )
269
270
271 func PossibleSnapshotObjectTypeValues() []SnapshotObjectType {
272 return []SnapshotObjectType{SnapshotObjectTypeFaceList, SnapshotObjectTypeLargeFaceList, SnapshotObjectTypeLargePersonGroup, SnapshotObjectTypePersonGroup}
273 }
274
275
276 type TrainingStatusType string
277
278 const (
279
280 TrainingStatusTypeFailed TrainingStatusType = "failed"
281
282 TrainingStatusTypeNonstarted TrainingStatusType = "nonstarted"
283
284 TrainingStatusTypeRunning TrainingStatusType = "running"
285
286 TrainingStatusTypeSucceeded TrainingStatusType = "succeeded"
287 )
288
289
290 func PossibleTrainingStatusTypeValues() []TrainingStatusType {
291 return []TrainingStatusType{TrainingStatusTypeFailed, TrainingStatusTypeNonstarted, TrainingStatusTypeRunning, TrainingStatusTypeSucceeded}
292 }
293
View as plain text