azure_cognitiveservices_face 0.17.1 → 0.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/1.0/generated/azure_cognitiveservices_face.rb +38 -22
- data/lib/1.0/generated/azure_cognitiveservices_face/face.rb +554 -77
- data/lib/1.0/generated/azure_cognitiveservices_face/face_client.rb +24 -5
- data/lib/1.0/generated/azure_cognitiveservices_face/face_list_operations.rb +169 -36
- data/lib/1.0/generated/azure_cognitiveservices_face/large_face_list_operations.rb +1559 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/large_person_group_operations.rb +854 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/large_person_group_person.rb +1151 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/apply_snapshot_request.rb +69 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/detected_face.rb +13 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/face_attributes.rb +1 -1
- data/lib/1.0/generated/azure_cognitiveservices_face/models/face_list.rb +10 -1
- data/lib/1.0/generated/azure_cognitiveservices_face/models/find_similar_request.rb +23 -1
- data/lib/1.0/generated/azure_cognitiveservices_face/models/gender.rb +0 -1
- data/lib/1.0/generated/azure_cognitiveservices_face/models/identify_request.rb +34 -16
- data/lib/1.0/generated/azure_cognitiveservices_face/models/large_face_list.rb +81 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/large_person_group.rb +81 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/meta_data_contract.rb +72 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/name_and_user_data_contract.rb +1 -1
- data/lib/1.0/generated/azure_cognitiveservices_face/models/operation_status.rb +112 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/operation_status_type.rb +18 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/person_group.rb +11 -2
- data/lib/1.0/generated/azure_cognitiveservices_face/models/recognition_model.rb +16 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/snapshot.rb +136 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/snapshot_apply_mode.rb +15 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/snapshot_object_type.rb +18 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/take_snapshot_request.rb +101 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/training_status.rb +25 -7
- data/lib/1.0/generated/azure_cognitiveservices_face/models/{update_person_face_request.rb → update_face_request.rb} +5 -5
- data/lib/1.0/generated/azure_cognitiveservices_face/models/update_snapshot_request.rb +73 -0
- data/lib/1.0/generated/azure_cognitiveservices_face/models/verify_face_to_face_request.rb +1 -1
- data/lib/1.0/generated/azure_cognitiveservices_face/models/verify_face_to_person_request.rb +27 -7
- data/lib/1.0/generated/azure_cognitiveservices_face/person_group_operations.rb +203 -34
- data/lib/1.0/generated/azure_cognitiveservices_face/person_group_person.rb +49 -29
- data/lib/1.0/generated/azure_cognitiveservices_face/snapshot_operations.rb +969 -0
- data/lib/profiles/latest/modules/face_profile_module.rb +125 -69
- data/lib/version.rb +1 -1
- metadata +19 -3
@@ -0,0 +1,69 @@
|
|
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
|
+
# Request body for applying snapshot operation.
|
10
|
+
#
|
11
|
+
class ApplySnapshotRequest
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] User specified target object id to be created from the
|
16
|
+
# snapshot.
|
17
|
+
attr_accessor :object_id
|
18
|
+
|
19
|
+
# @return [SnapshotApplyMode] Snapshot applying mode. Currently only
|
20
|
+
# CreateNew is supported, which means the apply operation will fail if
|
21
|
+
# target subscription already contains an object of same type and using
|
22
|
+
# the same objectId. Users can specify the "objectId" in request body to
|
23
|
+
# avoid such conflicts. Possible values include: 'CreateNew'. Default
|
24
|
+
# value: 'CreateNew' .
|
25
|
+
attr_accessor :mode
|
26
|
+
|
27
|
+
|
28
|
+
#
|
29
|
+
# Mapper for ApplySnapshotRequest class as Ruby Hash.
|
30
|
+
# This will be used for serialization/deserialization.
|
31
|
+
#
|
32
|
+
def self.mapper()
|
33
|
+
{
|
34
|
+
client_side_validation: true,
|
35
|
+
required: false,
|
36
|
+
serialized_name: 'ApplySnapshotRequest',
|
37
|
+
type: {
|
38
|
+
name: 'Composite',
|
39
|
+
class_name: 'ApplySnapshotRequest',
|
40
|
+
model_properties: {
|
41
|
+
object_id: {
|
42
|
+
client_side_validation: true,
|
43
|
+
required: true,
|
44
|
+
serialized_name: 'objectId',
|
45
|
+
constraints: {
|
46
|
+
MaxLength: 64,
|
47
|
+
Pattern: '^[a-z0-9-_]+$'
|
48
|
+
},
|
49
|
+
type: {
|
50
|
+
name: 'String'
|
51
|
+
}
|
52
|
+
},
|
53
|
+
mode: {
|
54
|
+
client_side_validation: true,
|
55
|
+
required: false,
|
56
|
+
serialized_name: 'mode',
|
57
|
+
default_value: 'CreateNew',
|
58
|
+
type: {
|
59
|
+
name: 'Enum',
|
60
|
+
module: 'SnapshotApplyMode'
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
@@ -15,6 +15,10 @@ module Azure::CognitiveServices::Face::V1_0
|
|
15
15
|
# @return
|
16
16
|
attr_accessor :face_id
|
17
17
|
|
18
|
+
# @return [RecognitionModel] Possible values include: 'recognition_01',
|
19
|
+
# 'recognition_02'. Default value: 'recognition_01' .
|
20
|
+
attr_accessor :recognition_model
|
21
|
+
|
18
22
|
# @return [FaceRectangle]
|
19
23
|
attr_accessor :face_rectangle
|
20
24
|
|
@@ -46,6 +50,15 @@ module Azure::CognitiveServices::Face::V1_0
|
|
46
50
|
name: 'String'
|
47
51
|
}
|
48
52
|
},
|
53
|
+
recognition_model: {
|
54
|
+
client_side_validation: true,
|
55
|
+
required: false,
|
56
|
+
serialized_name: 'recognitionModel',
|
57
|
+
default_value: 'recognition_01',
|
58
|
+
type: {
|
59
|
+
name: 'String'
|
60
|
+
}
|
61
|
+
},
|
49
62
|
face_rectangle: {
|
50
63
|
client_side_validation: true,
|
51
64
|
required: true,
|
@@ -16,7 +16,7 @@ module Azure::CognitiveServices::Face::V1_0
|
|
16
16
|
attr_accessor :age
|
17
17
|
|
18
18
|
# @return [Gender] Possible gender of the face. Possible values include:
|
19
|
-
# 'male', 'female'
|
19
|
+
# 'male', 'female'
|
20
20
|
attr_accessor :gender
|
21
21
|
|
22
22
|
# @return [Float] Smile intensity, a number between [0,1]
|
@@ -8,7 +8,7 @@ module Azure::CognitiveServices::Face::V1_0
|
|
8
8
|
#
|
9
9
|
# Face list object.
|
10
10
|
#
|
11
|
-
class FaceList <
|
11
|
+
class FaceList < MetaDataContract
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
@@ -54,6 +54,15 @@ module Azure::CognitiveServices::Face::V1_0
|
|
54
54
|
name: 'String'
|
55
55
|
}
|
56
56
|
},
|
57
|
+
recognition_model: {
|
58
|
+
client_side_validation: true,
|
59
|
+
required: false,
|
60
|
+
serialized_name: 'recognitionModel',
|
61
|
+
default_value: 'recognition_01',
|
62
|
+
type: {
|
63
|
+
name: 'String'
|
64
|
+
}
|
65
|
+
},
|
57
66
|
face_list_id: {
|
58
67
|
client_side_validation: true,
|
59
68
|
required: true,
|
@@ -20,11 +20,21 @@ module Azure::CognitiveServices::Face::V1_0
|
|
20
20
|
# @return [String] An existing user-specified unique candidate face list,
|
21
21
|
# created in Face List - Create a Face List. Face list contains a set of
|
22
22
|
# persistedFaceIds which are persisted and will never expire. Parameter
|
23
|
-
# faceListId and faceIds should not be provided at the
|
23
|
+
# faceListId, largeFaceListId and faceIds should not be provided at the
|
24
|
+
# same time.
|
24
25
|
attr_accessor :face_list_id
|
25
26
|
|
27
|
+
# @return [String] An existing user-specified unique candidate large face
|
28
|
+
# list, created in LargeFaceList - Create. Large face list contains a set
|
29
|
+
# of persistedFaceIds which are persisted and will never expire.
|
30
|
+
# Parameter faceListId, largeFaceListId and faceIds should not be
|
31
|
+
# provided at the same time.
|
32
|
+
attr_accessor :large_face_list_id
|
33
|
+
|
26
34
|
# @return An array of candidate faceIds. All of them are created by Face
|
27
35
|
# - Detect and the faceIds will expire 24 hours after the detection call.
|
36
|
+
# The number of faceIds is limited to 1000. Parameter faceListId,
|
37
|
+
# largeFaceListId and faceIds should not be provided at the same time.
|
28
38
|
attr_accessor :face_ids
|
29
39
|
|
30
40
|
# @return [Integer] The number of top similar faces returned. The valid
|
@@ -70,6 +80,18 @@ module Azure::CognitiveServices::Face::V1_0
|
|
70
80
|
name: 'String'
|
71
81
|
}
|
72
82
|
},
|
83
|
+
large_face_list_id: {
|
84
|
+
client_side_validation: true,
|
85
|
+
required: false,
|
86
|
+
serialized_name: 'largeFaceListId',
|
87
|
+
constraints: {
|
88
|
+
MaxLength: 64,
|
89
|
+
Pattern: '^[a-z0-9-_]+$'
|
90
|
+
},
|
91
|
+
type: {
|
92
|
+
name: 'String'
|
93
|
+
}
|
94
|
+
},
|
73
95
|
face_ids: {
|
74
96
|
client_side_validation: true,
|
75
97
|
required: false,
|
@@ -12,15 +12,21 @@ module Azure::CognitiveServices::Face::V1_0
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
-
# @return [String] PersonGroupId of the target person group, created by
|
16
|
-
# PersonGroups.Create
|
17
|
-
attr_accessor :person_group_id
|
18
|
-
|
19
15
|
# @return Array of query faces faceIds, created by the Face - Detect.
|
20
16
|
# Each of the faces are identified independently. The valid number of
|
21
17
|
# faceIds is between [1, 10].
|
22
18
|
attr_accessor :face_ids
|
23
19
|
|
20
|
+
# @return [String] PersonGroupId of the target person group, created by
|
21
|
+
# PersonGroup - Create. Parameter personGroupId and largePersonGroupId
|
22
|
+
# should not be provided at the same time.
|
23
|
+
attr_accessor :person_group_id
|
24
|
+
|
25
|
+
# @return [String] LargePersonGroupId of the target large person group,
|
26
|
+
# created by LargePersonGroup - Create. Parameter personGroupId and
|
27
|
+
# largePersonGroupId should not be provided at the same time.
|
28
|
+
attr_accessor :large_person_group_id
|
29
|
+
|
24
30
|
# @return [Integer] The range of maxNumOfCandidatesReturned is between 1
|
25
31
|
# and 5 (default is 1). Default value: 1 .
|
26
32
|
attr_accessor :max_num_of_candidates_returned
|
@@ -44,18 +50,6 @@ module Azure::CognitiveServices::Face::V1_0
|
|
44
50
|
name: 'Composite',
|
45
51
|
class_name: 'IdentifyRequest',
|
46
52
|
model_properties: {
|
47
|
-
person_group_id: {
|
48
|
-
client_side_validation: true,
|
49
|
-
required: true,
|
50
|
-
serialized_name: 'personGroupId',
|
51
|
-
constraints: {
|
52
|
-
MaxLength: 64,
|
53
|
-
Pattern: '^[a-z0-9-_]+$'
|
54
|
-
},
|
55
|
-
type: {
|
56
|
-
name: 'String'
|
57
|
-
}
|
58
|
-
},
|
59
53
|
face_ids: {
|
60
54
|
client_side_validation: true,
|
61
55
|
required: true,
|
@@ -75,6 +69,30 @@ module Azure::CognitiveServices::Face::V1_0
|
|
75
69
|
}
|
76
70
|
}
|
77
71
|
},
|
72
|
+
person_group_id: {
|
73
|
+
client_side_validation: true,
|
74
|
+
required: false,
|
75
|
+
serialized_name: 'personGroupId',
|
76
|
+
constraints: {
|
77
|
+
MaxLength: 64,
|
78
|
+
Pattern: '^[a-z0-9-_]+$'
|
79
|
+
},
|
80
|
+
type: {
|
81
|
+
name: 'String'
|
82
|
+
}
|
83
|
+
},
|
84
|
+
large_person_group_id: {
|
85
|
+
client_side_validation: true,
|
86
|
+
required: false,
|
87
|
+
serialized_name: 'largePersonGroupId',
|
88
|
+
constraints: {
|
89
|
+
MaxLength: 64,
|
90
|
+
Pattern: '^[a-z0-9-_]+$'
|
91
|
+
},
|
92
|
+
type: {
|
93
|
+
name: 'String'
|
94
|
+
}
|
95
|
+
},
|
78
96
|
max_num_of_candidates_returned: {
|
79
97
|
client_side_validation: true,
|
80
98
|
required: false,
|
@@ -0,0 +1,81 @@
|
|
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
|
+
# Large face list object.
|
10
|
+
#
|
11
|
+
class LargeFaceList < MetaDataContract
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] LargeFaceListId of the target large face list.
|
16
|
+
attr_accessor :large_face_list_id
|
17
|
+
|
18
|
+
|
19
|
+
#
|
20
|
+
# Mapper for LargeFaceList class as Ruby Hash.
|
21
|
+
# This will be used for serialization/deserialization.
|
22
|
+
#
|
23
|
+
def self.mapper()
|
24
|
+
{
|
25
|
+
client_side_validation: true,
|
26
|
+
required: false,
|
27
|
+
serialized_name: 'LargeFaceList',
|
28
|
+
type: {
|
29
|
+
name: 'Composite',
|
30
|
+
class_name: 'LargeFaceList',
|
31
|
+
model_properties: {
|
32
|
+
name: {
|
33
|
+
client_side_validation: true,
|
34
|
+
required: false,
|
35
|
+
serialized_name: 'name',
|
36
|
+
constraints: {
|
37
|
+
MaxLength: 128
|
38
|
+
},
|
39
|
+
type: {
|
40
|
+
name: 'String'
|
41
|
+
}
|
42
|
+
},
|
43
|
+
user_data: {
|
44
|
+
client_side_validation: true,
|
45
|
+
required: false,
|
46
|
+
serialized_name: 'userData',
|
47
|
+
constraints: {
|
48
|
+
MaxLength: 16384
|
49
|
+
},
|
50
|
+
type: {
|
51
|
+
name: 'String'
|
52
|
+
}
|
53
|
+
},
|
54
|
+
recognition_model: {
|
55
|
+
client_side_validation: true,
|
56
|
+
required: false,
|
57
|
+
serialized_name: 'recognitionModel',
|
58
|
+
default_value: 'recognition_01',
|
59
|
+
type: {
|
60
|
+
name: 'String'
|
61
|
+
}
|
62
|
+
},
|
63
|
+
large_face_list_id: {
|
64
|
+
client_side_validation: true,
|
65
|
+
required: true,
|
66
|
+
serialized_name: 'largeFaceListId',
|
67
|
+
constraints: {
|
68
|
+
MaxLength: 64,
|
69
|
+
Pattern: '^[a-z0-9-_]+$'
|
70
|
+
},
|
71
|
+
type: {
|
72
|
+
name: 'String'
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}
|
77
|
+
}
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
@@ -0,0 +1,81 @@
|
|
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
|
+
# Large person group object.
|
10
|
+
#
|
11
|
+
class LargePersonGroup < MetaDataContract
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] LargePersonGroupId of the target large person groups
|
16
|
+
attr_accessor :large_person_group_id
|
17
|
+
|
18
|
+
|
19
|
+
#
|
20
|
+
# Mapper for LargePersonGroup class as Ruby Hash.
|
21
|
+
# This will be used for serialization/deserialization.
|
22
|
+
#
|
23
|
+
def self.mapper()
|
24
|
+
{
|
25
|
+
client_side_validation: true,
|
26
|
+
required: false,
|
27
|
+
serialized_name: 'LargePersonGroup',
|
28
|
+
type: {
|
29
|
+
name: 'Composite',
|
30
|
+
class_name: 'LargePersonGroup',
|
31
|
+
model_properties: {
|
32
|
+
name: {
|
33
|
+
client_side_validation: true,
|
34
|
+
required: false,
|
35
|
+
serialized_name: 'name',
|
36
|
+
constraints: {
|
37
|
+
MaxLength: 128
|
38
|
+
},
|
39
|
+
type: {
|
40
|
+
name: 'String'
|
41
|
+
}
|
42
|
+
},
|
43
|
+
user_data: {
|
44
|
+
client_side_validation: true,
|
45
|
+
required: false,
|
46
|
+
serialized_name: 'userData',
|
47
|
+
constraints: {
|
48
|
+
MaxLength: 16384
|
49
|
+
},
|
50
|
+
type: {
|
51
|
+
name: 'String'
|
52
|
+
}
|
53
|
+
},
|
54
|
+
recognition_model: {
|
55
|
+
client_side_validation: true,
|
56
|
+
required: false,
|
57
|
+
serialized_name: 'recognitionModel',
|
58
|
+
default_value: 'recognition_01',
|
59
|
+
type: {
|
60
|
+
name: 'String'
|
61
|
+
}
|
62
|
+
},
|
63
|
+
large_person_group_id: {
|
64
|
+
client_side_validation: true,
|
65
|
+
required: true,
|
66
|
+
serialized_name: 'largePersonGroupId',
|
67
|
+
constraints: {
|
68
|
+
MaxLength: 64,
|
69
|
+
Pattern: '^[a-z0-9-_]+$'
|
70
|
+
},
|
71
|
+
type: {
|
72
|
+
name: 'String'
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}
|
77
|
+
}
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
@@ -0,0 +1,72 @@
|
|
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 combination of user defined name and user specified data and
|
10
|
+
# recognition model name for largePersonGroup/personGroup, and
|
11
|
+
# largeFaceList/faceList.
|
12
|
+
#
|
13
|
+
class MetaDataContract < NameAndUserDataContract
|
14
|
+
|
15
|
+
include MsRestAzure
|
16
|
+
|
17
|
+
# @return [RecognitionModel] Possible values include: 'recognition_01',
|
18
|
+
# 'recognition_02'. Default value: 'recognition_01' .
|
19
|
+
attr_accessor :recognition_model
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# Mapper for MetaDataContract 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: 'MetaDataContract',
|
31
|
+
type: {
|
32
|
+
name: 'Composite',
|
33
|
+
class_name: 'MetaDataContract',
|
34
|
+
model_properties: {
|
35
|
+
name: {
|
36
|
+
client_side_validation: true,
|
37
|
+
required: false,
|
38
|
+
serialized_name: 'name',
|
39
|
+
constraints: {
|
40
|
+
MaxLength: 128
|
41
|
+
},
|
42
|
+
type: {
|
43
|
+
name: 'String'
|
44
|
+
}
|
45
|
+
},
|
46
|
+
user_data: {
|
47
|
+
client_side_validation: true,
|
48
|
+
required: false,
|
49
|
+
serialized_name: 'userData',
|
50
|
+
constraints: {
|
51
|
+
MaxLength: 16384
|
52
|
+
},
|
53
|
+
type: {
|
54
|
+
name: 'String'
|
55
|
+
}
|
56
|
+
},
|
57
|
+
recognition_model: {
|
58
|
+
client_side_validation: true,
|
59
|
+
required: false,
|
60
|
+
serialized_name: 'recognitionModel',
|
61
|
+
default_value: 'recognition_01',
|
62
|
+
type: {
|
63
|
+
name: 'String'
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
}
|
68
|
+
}
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|