azure_cognitiveservices_face 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/lib/1.0/generated/azure_cognitiveservices_face.rb +78 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/face.rb +955 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/face_client.rb +145 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/face_list_operations.rb +857 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/accessory.rb +59 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/accessory_type.rb +17 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/apierror.rb +47 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/azure_regions.rb +26 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/blur.rb +60 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/blur_level.rb +17 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/coordinate.rb +57 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/detected_face.rb +82 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/emotion.rb +124 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/error.rb +57 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/exposure.rb +62 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/exposure_level.rb +17 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/face_attribute_type.rb +28 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/face_attributes.rb +214 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/face_landmarks.rb +360 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/face_list.rb +92 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/face_rectangle.rb +81 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/facial_hair.rb +68 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/find_similar_match_mode.rb +16 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/find_similar_request.rb +121 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/gender.rb +17 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/glasses_type.rb +18 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/group_request.rb +58 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/group_result.rb +83 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/hair.rb +80 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/hair_color.rb +60 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/hair_color_type.rb +22 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/head_pose.rb +68 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/identify_candidate.rb +59 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/identify_request.rb +105 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/identify_result.rb +69 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/image_url.rb +47 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/makeup.rb +59 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/name_and_user_data_contract.rb +64 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/noise.rb +62 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/noise_level.rb +17 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/occlusion.rb +70 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/persisted_face.rb +63 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/person.rb +89 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/person_group.rb +72 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/similar_face.rb +73 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/training_status.rb +89 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/training_status_type.rb +18 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/update_person_face_request.rb +50 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/verify_face_to_face_request.rb +57 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/verify_face_to_person_request.rb +75 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/verify_result.rb +62 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/module_definition.rb +9 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/person_group_operations.rb +678 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/person_group_person.rb +1121 -0
- data/lib/azure_cognitiveservices_face.rb +6 -0
- data/lib/module_definition.rb +7 -0
- data/lib/profiles/latest/face_latest_profile_client.rb +38 -0
- data/lib/profiles/latest/face_module_definition.rb +8 -0
- data/lib/profiles/latest/modules/face_profile_module.rb +253 -0
- data/lib/version.rb +7 -0
- metadata +180 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
|
4
|
+
# regenerated.
|
|
5
|
+
|
|
6
|
+
module Azure::CognitiveServices::Face::V1_0
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
# Error body.
|
|
10
|
+
#
|
|
11
|
+
class Error
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
# @return [String]
|
|
16
|
+
attr_accessor :code
|
|
17
|
+
|
|
18
|
+
# @return [String]
|
|
19
|
+
attr_accessor :message
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
#
|
|
23
|
+
# Mapper for Error class as Ruby Hash.
|
|
24
|
+
# This will be used for serialization/deserialization.
|
|
25
|
+
#
|
|
26
|
+
def self.mapper()
|
|
27
|
+
{
|
|
28
|
+
client_side_validation: true,
|
|
29
|
+
required: false,
|
|
30
|
+
serialized_name: 'Error',
|
|
31
|
+
type: {
|
|
32
|
+
name: 'Composite',
|
|
33
|
+
class_name: 'Error',
|
|
34
|
+
model_properties: {
|
|
35
|
+
code: {
|
|
36
|
+
client_side_validation: true,
|
|
37
|
+
required: false,
|
|
38
|
+
serialized_name: 'code',
|
|
39
|
+
type: {
|
|
40
|
+
name: 'String'
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
message: {
|
|
44
|
+
client_side_validation: true,
|
|
45
|
+
required: false,
|
|
46
|
+
serialized_name: 'message',
|
|
47
|
+
type: {
|
|
48
|
+
name: 'String'
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
|
4
|
+
# regenerated.
|
|
5
|
+
|
|
6
|
+
module Azure::CognitiveServices::Face::V1_0
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
# Properties describing exposure level of the image.
|
|
10
|
+
#
|
|
11
|
+
class Exposure
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
# @return [ExposureLevel] An enum value indicating level of exposure.
|
|
16
|
+
# Possible values include: 'UnderExposure', 'GoodExposure',
|
|
17
|
+
# 'OverExposure'
|
|
18
|
+
attr_accessor :exposure_level
|
|
19
|
+
|
|
20
|
+
# @return [Float] A number indicating level of exposure level ranging
|
|
21
|
+
# from 0 to 1. [0, 0.25) is under exposure. [0.25, 0.75) is good
|
|
22
|
+
# exposure. [0.75, 1] is over exposure.
|
|
23
|
+
attr_accessor :value
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
#
|
|
27
|
+
# Mapper for Exposure class as Ruby Hash.
|
|
28
|
+
# This will be used for serialization/deserialization.
|
|
29
|
+
#
|
|
30
|
+
def self.mapper()
|
|
31
|
+
{
|
|
32
|
+
client_side_validation: true,
|
|
33
|
+
required: false,
|
|
34
|
+
serialized_name: 'Exposure',
|
|
35
|
+
type: {
|
|
36
|
+
name: 'Composite',
|
|
37
|
+
class_name: 'Exposure',
|
|
38
|
+
model_properties: {
|
|
39
|
+
exposure_level: {
|
|
40
|
+
client_side_validation: true,
|
|
41
|
+
required: false,
|
|
42
|
+
serialized_name: 'exposureLevel',
|
|
43
|
+
type: {
|
|
44
|
+
name: 'Enum',
|
|
45
|
+
module: 'ExposureLevel'
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
value: {
|
|
49
|
+
client_side_validation: true,
|
|
50
|
+
required: false,
|
|
51
|
+
serialized_name: 'value',
|
|
52
|
+
type: {
|
|
53
|
+
name: 'Double'
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
|
4
|
+
# regenerated.
|
|
5
|
+
|
|
6
|
+
module Azure::CognitiveServices::Face::V1_0
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
# Defines values for ExposureLevel
|
|
10
|
+
#
|
|
11
|
+
module ExposureLevel
|
|
12
|
+
UnderExposure = "UnderExposure"
|
|
13
|
+
GoodExposure = "GoodExposure"
|
|
14
|
+
OverExposure = "OverExposure"
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
|
4
|
+
# regenerated.
|
|
5
|
+
|
|
6
|
+
module Azure::CognitiveServices::Face::V1_0
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
# Defines values for FaceAttributeType
|
|
10
|
+
#
|
|
11
|
+
module FaceAttributeType
|
|
12
|
+
Age = "age"
|
|
13
|
+
Gender = "gender"
|
|
14
|
+
HeadPose = "headPose"
|
|
15
|
+
Smile = "smile"
|
|
16
|
+
FacialHair = "facialHair"
|
|
17
|
+
Glasses = "glasses"
|
|
18
|
+
Emotion = "emotion"
|
|
19
|
+
Hair = "hair"
|
|
20
|
+
Makeup = "makeup"
|
|
21
|
+
Occlusion = "occlusion"
|
|
22
|
+
Accessories = "accessories"
|
|
23
|
+
Blur = "blur"
|
|
24
|
+
Exposure = "exposure"
|
|
25
|
+
Noise = "noise"
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
|
4
|
+
# regenerated.
|
|
5
|
+
|
|
6
|
+
module Azure::CognitiveServices::Face::V1_0
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
# Face Attributes
|
|
10
|
+
#
|
|
11
|
+
class FaceAttributes
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
# @return [Float] Age in years
|
|
16
|
+
attr_accessor :age
|
|
17
|
+
|
|
18
|
+
# @return [Gender] Possible gender of the face. Possible values include:
|
|
19
|
+
# 'male', 'female', 'genderless'
|
|
20
|
+
attr_accessor :gender
|
|
21
|
+
|
|
22
|
+
# @return [Float] Smile intensity, a number between [0,1]
|
|
23
|
+
attr_accessor :smile
|
|
24
|
+
|
|
25
|
+
# @return [FacialHair] Properties describing facial hair attributes.
|
|
26
|
+
attr_accessor :facial_hair
|
|
27
|
+
|
|
28
|
+
# @return [GlassesType] Glasses type if any of the face. Possible values
|
|
29
|
+
# include: 'noGlasses', 'readingGlasses', 'sunglasses', 'swimmingGoggles'
|
|
30
|
+
attr_accessor :glasses
|
|
31
|
+
|
|
32
|
+
# @return [HeadPose] Properties indicating head pose of the face.
|
|
33
|
+
attr_accessor :head_pose
|
|
34
|
+
|
|
35
|
+
# @return [Emotion] Properties describing facial emotion in form of
|
|
36
|
+
# confidence ranging from 0 to 1.
|
|
37
|
+
attr_accessor :emotion
|
|
38
|
+
|
|
39
|
+
# @return [Hair] Properties describing hair attributes.
|
|
40
|
+
attr_accessor :hair
|
|
41
|
+
|
|
42
|
+
# @return [Makeup] Properties describing present makeups on a given face.
|
|
43
|
+
attr_accessor :makeup
|
|
44
|
+
|
|
45
|
+
# @return [Occlusion] Properties describing occlusions on a given face.
|
|
46
|
+
attr_accessor :occlusion
|
|
47
|
+
|
|
48
|
+
# @return [Array<Accessory>] Properties describing any accessories on a
|
|
49
|
+
# given face.
|
|
50
|
+
attr_accessor :accessories
|
|
51
|
+
|
|
52
|
+
# @return [Blur] Properties describing any presence of blur within the
|
|
53
|
+
# image.
|
|
54
|
+
attr_accessor :blur
|
|
55
|
+
|
|
56
|
+
# @return [Exposure] Properties describing exposure level of the image.
|
|
57
|
+
attr_accessor :exposure
|
|
58
|
+
|
|
59
|
+
# @return [Noise] Properties describing noise level of the image.
|
|
60
|
+
attr_accessor :noise
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
#
|
|
64
|
+
# Mapper for FaceAttributes class as Ruby Hash.
|
|
65
|
+
# This will be used for serialization/deserialization.
|
|
66
|
+
#
|
|
67
|
+
def self.mapper()
|
|
68
|
+
{
|
|
69
|
+
client_side_validation: true,
|
|
70
|
+
required: false,
|
|
71
|
+
serialized_name: 'FaceAttributes',
|
|
72
|
+
type: {
|
|
73
|
+
name: 'Composite',
|
|
74
|
+
class_name: 'FaceAttributes',
|
|
75
|
+
model_properties: {
|
|
76
|
+
age: {
|
|
77
|
+
client_side_validation: true,
|
|
78
|
+
required: false,
|
|
79
|
+
serialized_name: 'age',
|
|
80
|
+
type: {
|
|
81
|
+
name: 'Double'
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
gender: {
|
|
85
|
+
client_side_validation: true,
|
|
86
|
+
required: false,
|
|
87
|
+
serialized_name: 'gender',
|
|
88
|
+
type: {
|
|
89
|
+
name: 'Enum',
|
|
90
|
+
module: 'Gender'
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
smile: {
|
|
94
|
+
client_side_validation: true,
|
|
95
|
+
required: false,
|
|
96
|
+
serialized_name: 'smile',
|
|
97
|
+
type: {
|
|
98
|
+
name: 'Double'
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
facial_hair: {
|
|
102
|
+
client_side_validation: true,
|
|
103
|
+
required: false,
|
|
104
|
+
serialized_name: 'facialHair',
|
|
105
|
+
type: {
|
|
106
|
+
name: 'Composite',
|
|
107
|
+
class_name: 'FacialHair'
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
glasses: {
|
|
111
|
+
client_side_validation: true,
|
|
112
|
+
required: false,
|
|
113
|
+
serialized_name: 'glasses',
|
|
114
|
+
type: {
|
|
115
|
+
name: 'Enum',
|
|
116
|
+
module: 'GlassesType'
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
head_pose: {
|
|
120
|
+
client_side_validation: true,
|
|
121
|
+
required: false,
|
|
122
|
+
serialized_name: 'headPose',
|
|
123
|
+
type: {
|
|
124
|
+
name: 'Composite',
|
|
125
|
+
class_name: 'HeadPose'
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
emotion: {
|
|
129
|
+
client_side_validation: true,
|
|
130
|
+
required: false,
|
|
131
|
+
serialized_name: 'emotion',
|
|
132
|
+
type: {
|
|
133
|
+
name: 'Composite',
|
|
134
|
+
class_name: 'Emotion'
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
hair: {
|
|
138
|
+
client_side_validation: true,
|
|
139
|
+
required: false,
|
|
140
|
+
serialized_name: 'hair',
|
|
141
|
+
type: {
|
|
142
|
+
name: 'Composite',
|
|
143
|
+
class_name: 'Hair'
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
makeup: {
|
|
147
|
+
client_side_validation: true,
|
|
148
|
+
required: false,
|
|
149
|
+
serialized_name: 'makeup',
|
|
150
|
+
type: {
|
|
151
|
+
name: 'Composite',
|
|
152
|
+
class_name: 'Makeup'
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
occlusion: {
|
|
156
|
+
client_side_validation: true,
|
|
157
|
+
required: false,
|
|
158
|
+
serialized_name: 'occlusion',
|
|
159
|
+
type: {
|
|
160
|
+
name: 'Composite',
|
|
161
|
+
class_name: 'Occlusion'
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
accessories: {
|
|
165
|
+
client_side_validation: true,
|
|
166
|
+
required: false,
|
|
167
|
+
serialized_name: 'accessories',
|
|
168
|
+
type: {
|
|
169
|
+
name: 'Sequence',
|
|
170
|
+
element: {
|
|
171
|
+
client_side_validation: true,
|
|
172
|
+
required: false,
|
|
173
|
+
serialized_name: 'AccessoryElementType',
|
|
174
|
+
type: {
|
|
175
|
+
name: 'Composite',
|
|
176
|
+
class_name: 'Accessory'
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
blur: {
|
|
182
|
+
client_side_validation: true,
|
|
183
|
+
required: false,
|
|
184
|
+
serialized_name: 'blur',
|
|
185
|
+
type: {
|
|
186
|
+
name: 'Composite',
|
|
187
|
+
class_name: 'Blur'
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
exposure: {
|
|
191
|
+
client_side_validation: true,
|
|
192
|
+
required: false,
|
|
193
|
+
serialized_name: 'exposure',
|
|
194
|
+
type: {
|
|
195
|
+
name: 'Composite',
|
|
196
|
+
class_name: 'Exposure'
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
noise: {
|
|
200
|
+
client_side_validation: true,
|
|
201
|
+
required: false,
|
|
202
|
+
serialized_name: 'noise',
|
|
203
|
+
type: {
|
|
204
|
+
name: 'Composite',
|
|
205
|
+
class_name: 'Noise'
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
end
|
|
212
|
+
end
|
|
213
|
+
end
|
|
214
|
+
end
|
|
@@ -0,0 +1,360 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
|
4
|
+
# regenerated.
|
|
5
|
+
|
|
6
|
+
module Azure::CognitiveServices::Face::V1_0
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
# A collection of 27-point face landmarks pointing to the important
|
|
10
|
+
# positions of face components.
|
|
11
|
+
#
|
|
12
|
+
class FaceLandmarks
|
|
13
|
+
|
|
14
|
+
include MsRestAzure
|
|
15
|
+
|
|
16
|
+
# @return [Coordinate]
|
|
17
|
+
attr_accessor :pupil_left
|
|
18
|
+
|
|
19
|
+
# @return [Coordinate]
|
|
20
|
+
attr_accessor :pupil_right
|
|
21
|
+
|
|
22
|
+
# @return [Coordinate]
|
|
23
|
+
attr_accessor :nose_tip
|
|
24
|
+
|
|
25
|
+
# @return [Coordinate]
|
|
26
|
+
attr_accessor :mouth_left
|
|
27
|
+
|
|
28
|
+
# @return [Coordinate]
|
|
29
|
+
attr_accessor :mouth_right
|
|
30
|
+
|
|
31
|
+
# @return [Coordinate]
|
|
32
|
+
attr_accessor :eyebrow_left_outer
|
|
33
|
+
|
|
34
|
+
# @return [Coordinate]
|
|
35
|
+
attr_accessor :eyebrow_left_inner
|
|
36
|
+
|
|
37
|
+
# @return [Coordinate]
|
|
38
|
+
attr_accessor :eye_left_outer
|
|
39
|
+
|
|
40
|
+
# @return [Coordinate]
|
|
41
|
+
attr_accessor :eye_left_top
|
|
42
|
+
|
|
43
|
+
# @return [Coordinate]
|
|
44
|
+
attr_accessor :eye_left_bottom
|
|
45
|
+
|
|
46
|
+
# @return [Coordinate]
|
|
47
|
+
attr_accessor :eye_left_inner
|
|
48
|
+
|
|
49
|
+
# @return [Coordinate]
|
|
50
|
+
attr_accessor :eyebrow_right_inner
|
|
51
|
+
|
|
52
|
+
# @return [Coordinate]
|
|
53
|
+
attr_accessor :eyebrow_right_outer
|
|
54
|
+
|
|
55
|
+
# @return [Coordinate]
|
|
56
|
+
attr_accessor :eye_right_inner
|
|
57
|
+
|
|
58
|
+
# @return [Coordinate]
|
|
59
|
+
attr_accessor :eye_right_top
|
|
60
|
+
|
|
61
|
+
# @return [Coordinate]
|
|
62
|
+
attr_accessor :eye_right_bottom
|
|
63
|
+
|
|
64
|
+
# @return [Coordinate]
|
|
65
|
+
attr_accessor :eye_right_outer
|
|
66
|
+
|
|
67
|
+
# @return [Coordinate]
|
|
68
|
+
attr_accessor :nose_root_left
|
|
69
|
+
|
|
70
|
+
# @return [Coordinate]
|
|
71
|
+
attr_accessor :nose_root_right
|
|
72
|
+
|
|
73
|
+
# @return [Coordinate]
|
|
74
|
+
attr_accessor :nose_left_alar_top
|
|
75
|
+
|
|
76
|
+
# @return [Coordinate]
|
|
77
|
+
attr_accessor :nose_right_alar_top
|
|
78
|
+
|
|
79
|
+
# @return [Coordinate]
|
|
80
|
+
attr_accessor :nose_left_alar_out_tip
|
|
81
|
+
|
|
82
|
+
# @return [Coordinate]
|
|
83
|
+
attr_accessor :nose_right_alar_out_tip
|
|
84
|
+
|
|
85
|
+
# @return [Coordinate]
|
|
86
|
+
attr_accessor :upper_lip_top
|
|
87
|
+
|
|
88
|
+
# @return [Coordinate]
|
|
89
|
+
attr_accessor :upper_lip_bottom
|
|
90
|
+
|
|
91
|
+
# @return [Coordinate]
|
|
92
|
+
attr_accessor :under_lip_top
|
|
93
|
+
|
|
94
|
+
# @return [Coordinate]
|
|
95
|
+
attr_accessor :under_lip_bottom
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
#
|
|
99
|
+
# Mapper for FaceLandmarks class as Ruby Hash.
|
|
100
|
+
# This will be used for serialization/deserialization.
|
|
101
|
+
#
|
|
102
|
+
def self.mapper()
|
|
103
|
+
{
|
|
104
|
+
client_side_validation: true,
|
|
105
|
+
required: false,
|
|
106
|
+
serialized_name: 'FaceLandmarks',
|
|
107
|
+
type: {
|
|
108
|
+
name: 'Composite',
|
|
109
|
+
class_name: 'FaceLandmarks',
|
|
110
|
+
model_properties: {
|
|
111
|
+
pupil_left: {
|
|
112
|
+
client_side_validation: true,
|
|
113
|
+
required: false,
|
|
114
|
+
serialized_name: 'pupilLeft',
|
|
115
|
+
type: {
|
|
116
|
+
name: 'Composite',
|
|
117
|
+
class_name: 'Coordinate'
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
pupil_right: {
|
|
121
|
+
client_side_validation: true,
|
|
122
|
+
required: false,
|
|
123
|
+
serialized_name: 'pupilRight',
|
|
124
|
+
type: {
|
|
125
|
+
name: 'Composite',
|
|
126
|
+
class_name: 'Coordinate'
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
nose_tip: {
|
|
130
|
+
client_side_validation: true,
|
|
131
|
+
required: false,
|
|
132
|
+
serialized_name: 'noseTip',
|
|
133
|
+
type: {
|
|
134
|
+
name: 'Composite',
|
|
135
|
+
class_name: 'Coordinate'
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
mouth_left: {
|
|
139
|
+
client_side_validation: true,
|
|
140
|
+
required: false,
|
|
141
|
+
serialized_name: 'mouthLeft',
|
|
142
|
+
type: {
|
|
143
|
+
name: 'Composite',
|
|
144
|
+
class_name: 'Coordinate'
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
mouth_right: {
|
|
148
|
+
client_side_validation: true,
|
|
149
|
+
required: false,
|
|
150
|
+
serialized_name: 'mouthRight',
|
|
151
|
+
type: {
|
|
152
|
+
name: 'Composite',
|
|
153
|
+
class_name: 'Coordinate'
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
eyebrow_left_outer: {
|
|
157
|
+
client_side_validation: true,
|
|
158
|
+
required: false,
|
|
159
|
+
serialized_name: 'eyebrowLeftOuter',
|
|
160
|
+
type: {
|
|
161
|
+
name: 'Composite',
|
|
162
|
+
class_name: 'Coordinate'
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
eyebrow_left_inner: {
|
|
166
|
+
client_side_validation: true,
|
|
167
|
+
required: false,
|
|
168
|
+
serialized_name: 'eyebrowLeftInner',
|
|
169
|
+
type: {
|
|
170
|
+
name: 'Composite',
|
|
171
|
+
class_name: 'Coordinate'
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
eye_left_outer: {
|
|
175
|
+
client_side_validation: true,
|
|
176
|
+
required: false,
|
|
177
|
+
serialized_name: 'eyeLeftOuter',
|
|
178
|
+
type: {
|
|
179
|
+
name: 'Composite',
|
|
180
|
+
class_name: 'Coordinate'
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
eye_left_top: {
|
|
184
|
+
client_side_validation: true,
|
|
185
|
+
required: false,
|
|
186
|
+
serialized_name: 'eyeLeftTop',
|
|
187
|
+
type: {
|
|
188
|
+
name: 'Composite',
|
|
189
|
+
class_name: 'Coordinate'
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
eye_left_bottom: {
|
|
193
|
+
client_side_validation: true,
|
|
194
|
+
required: false,
|
|
195
|
+
serialized_name: 'eyeLeftBottom',
|
|
196
|
+
type: {
|
|
197
|
+
name: 'Composite',
|
|
198
|
+
class_name: 'Coordinate'
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
eye_left_inner: {
|
|
202
|
+
client_side_validation: true,
|
|
203
|
+
required: false,
|
|
204
|
+
serialized_name: 'eyeLeftInner',
|
|
205
|
+
type: {
|
|
206
|
+
name: 'Composite',
|
|
207
|
+
class_name: 'Coordinate'
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
eyebrow_right_inner: {
|
|
211
|
+
client_side_validation: true,
|
|
212
|
+
required: false,
|
|
213
|
+
serialized_name: 'eyebrowRightInner',
|
|
214
|
+
type: {
|
|
215
|
+
name: 'Composite',
|
|
216
|
+
class_name: 'Coordinate'
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
eyebrow_right_outer: {
|
|
220
|
+
client_side_validation: true,
|
|
221
|
+
required: false,
|
|
222
|
+
serialized_name: 'eyebrowRightOuter',
|
|
223
|
+
type: {
|
|
224
|
+
name: 'Composite',
|
|
225
|
+
class_name: 'Coordinate'
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
eye_right_inner: {
|
|
229
|
+
client_side_validation: true,
|
|
230
|
+
required: false,
|
|
231
|
+
serialized_name: 'eyeRightInner',
|
|
232
|
+
type: {
|
|
233
|
+
name: 'Composite',
|
|
234
|
+
class_name: 'Coordinate'
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
eye_right_top: {
|
|
238
|
+
client_side_validation: true,
|
|
239
|
+
required: false,
|
|
240
|
+
serialized_name: 'eyeRightTop',
|
|
241
|
+
type: {
|
|
242
|
+
name: 'Composite',
|
|
243
|
+
class_name: 'Coordinate'
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
eye_right_bottom: {
|
|
247
|
+
client_side_validation: true,
|
|
248
|
+
required: false,
|
|
249
|
+
serialized_name: 'eyeRightBottom',
|
|
250
|
+
type: {
|
|
251
|
+
name: 'Composite',
|
|
252
|
+
class_name: 'Coordinate'
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
eye_right_outer: {
|
|
256
|
+
client_side_validation: true,
|
|
257
|
+
required: false,
|
|
258
|
+
serialized_name: 'eyeRightOuter',
|
|
259
|
+
type: {
|
|
260
|
+
name: 'Composite',
|
|
261
|
+
class_name: 'Coordinate'
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
nose_root_left: {
|
|
265
|
+
client_side_validation: true,
|
|
266
|
+
required: false,
|
|
267
|
+
serialized_name: 'noseRootLeft',
|
|
268
|
+
type: {
|
|
269
|
+
name: 'Composite',
|
|
270
|
+
class_name: 'Coordinate'
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
nose_root_right: {
|
|
274
|
+
client_side_validation: true,
|
|
275
|
+
required: false,
|
|
276
|
+
serialized_name: 'noseRootRight',
|
|
277
|
+
type: {
|
|
278
|
+
name: 'Composite',
|
|
279
|
+
class_name: 'Coordinate'
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
nose_left_alar_top: {
|
|
283
|
+
client_side_validation: true,
|
|
284
|
+
required: false,
|
|
285
|
+
serialized_name: 'noseLeftAlarTop',
|
|
286
|
+
type: {
|
|
287
|
+
name: 'Composite',
|
|
288
|
+
class_name: 'Coordinate'
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
nose_right_alar_top: {
|
|
292
|
+
client_side_validation: true,
|
|
293
|
+
required: false,
|
|
294
|
+
serialized_name: 'noseRightAlarTop',
|
|
295
|
+
type: {
|
|
296
|
+
name: 'Composite',
|
|
297
|
+
class_name: 'Coordinate'
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
nose_left_alar_out_tip: {
|
|
301
|
+
client_side_validation: true,
|
|
302
|
+
required: false,
|
|
303
|
+
serialized_name: 'noseLeftAlarOutTip',
|
|
304
|
+
type: {
|
|
305
|
+
name: 'Composite',
|
|
306
|
+
class_name: 'Coordinate'
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
nose_right_alar_out_tip: {
|
|
310
|
+
client_side_validation: true,
|
|
311
|
+
required: false,
|
|
312
|
+
serialized_name: 'noseRightAlarOutTip',
|
|
313
|
+
type: {
|
|
314
|
+
name: 'Composite',
|
|
315
|
+
class_name: 'Coordinate'
|
|
316
|
+
}
|
|
317
|
+
},
|
|
318
|
+
upper_lip_top: {
|
|
319
|
+
client_side_validation: true,
|
|
320
|
+
required: false,
|
|
321
|
+
serialized_name: 'upperLipTop',
|
|
322
|
+
type: {
|
|
323
|
+
name: 'Composite',
|
|
324
|
+
class_name: 'Coordinate'
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
upper_lip_bottom: {
|
|
328
|
+
client_side_validation: true,
|
|
329
|
+
required: false,
|
|
330
|
+
serialized_name: 'upperLipBottom',
|
|
331
|
+
type: {
|
|
332
|
+
name: 'Composite',
|
|
333
|
+
class_name: 'Coordinate'
|
|
334
|
+
}
|
|
335
|
+
},
|
|
336
|
+
under_lip_top: {
|
|
337
|
+
client_side_validation: true,
|
|
338
|
+
required: false,
|
|
339
|
+
serialized_name: 'underLipTop',
|
|
340
|
+
type: {
|
|
341
|
+
name: 'Composite',
|
|
342
|
+
class_name: 'Coordinate'
|
|
343
|
+
}
|
|
344
|
+
},
|
|
345
|
+
under_lip_bottom: {
|
|
346
|
+
client_side_validation: true,
|
|
347
|
+
required: false,
|
|
348
|
+
serialized_name: 'underLipBottom',
|
|
349
|
+
type: {
|
|
350
|
+
name: 'Composite',
|
|
351
|
+
class_name: 'Coordinate'
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
end
|
|
358
|
+
end
|
|
359
|
+
end
|
|
360
|
+
end
|