regula-facesdk-webclient 6.4.198.dev0__py3-none-any.whl
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.
Potentially problematic release.
This version of regula-facesdk-webclient might be problematic. Click here for more details.
- regula/__init__.py +0 -0
- regula/facesdk/__init__.py +0 -0
- regula/facesdk/webclient/__init__.py +15 -0
- regula/facesdk/webclient/ext/__init__.py +5 -0
- regula/facesdk/webclient/ext/api/__init__.py +3 -0
- regula/facesdk/webclient/ext/api/group_api.py +36 -0
- regula/facesdk/webclient/ext/api/match_api.py +46 -0
- regula/facesdk/webclient/ext/api/person_api.py +46 -0
- regula/facesdk/webclient/ext/api/sdk.py +28 -0
- regula/facesdk/webclient/ext/api/search_api.py +17 -0
- regula/facesdk/webclient/ext/common.py +7 -0
- regula/facesdk/webclient/ext/models/__init__.py +6 -0
- regula/facesdk/webclient/ext/models/detect_request.py +32 -0
- regula/facesdk/webclient/ext/models/match_image.py +19 -0
- regula/facesdk/webclient/ext/models/match_request.py +34 -0
- regula/facesdk/webclient/gen/__init__.py +27 -0
- regula/facesdk/webclient/gen/api/__init__.py +3 -0
- regula/facesdk/webclient/gen/api/diagnostics_api.py +162 -0
- regula/facesdk/webclient/gen/api/group_api.py +1040 -0
- regula/facesdk/webclient/gen/api/healthcheck_api.py +283 -0
- regula/facesdk/webclient/gen/api/liveness_2_0_api.py +168 -0
- regula/facesdk/webclient/gen/api/liveness_api.py +424 -0
- regula/facesdk/webclient/gen/api/match_api.py +463 -0
- regula/facesdk/webclient/gen/api/person_api.py +1345 -0
- regula/facesdk/webclient/gen/api/search_api.py +177 -0
- regula/facesdk/webclient/gen/api_client.py +695 -0
- regula/facesdk/webclient/gen/apis/__init__.py +22 -0
- regula/facesdk/webclient/gen/configuration.py +446 -0
- regula/facesdk/webclient/gen/exceptions.py +159 -0
- regula/facesdk/webclient/gen/model/__init__.py +5 -0
- regula/facesdk/webclient/gen/model/add_image_to_person_request.py +205 -0
- regula/facesdk/webclient/gen/model/add_image_to_person_request_image.py +204 -0
- regula/facesdk/webclient/gen/model/add_image_to_person_response.py +262 -0
- regula/facesdk/webclient/gen/model/attribute_config.py +120 -0
- regula/facesdk/webclient/gen/model/attribute_config_list.py +92 -0
- regula/facesdk/webclient/gen/model/crop.py +208 -0
- regula/facesdk/webclient/gen/model/detect_request.py +204 -0
- regula/facesdk/webclient/gen/model/detect_request_attributes.py +120 -0
- regula/facesdk/webclient/gen/model/detect_response.py +147 -0
- regula/facesdk/webclient/gen/model/detect_response_all_of.py +120 -0
- regula/facesdk/webclient/gen/model/detect_result.py +231 -0
- regula/facesdk/webclient/gen/model/detection.py +258 -0
- regula/facesdk/webclient/gen/model/detection_attributes.py +148 -0
- regula/facesdk/webclient/gen/model/detection_face.py +260 -0
- regula/facesdk/webclient/gen/model/detection_quality.py +234 -0
- regula/facesdk/webclient/gen/model/device_info.py +231 -0
- regula/facesdk/webclient/gen/model/face_align_type_quality.py +109 -0
- regula/facesdk/webclient/gen/model/face_attribute.py +133 -0
- regula/facesdk/webclient/gen/model/face_image_quality_align_type.py +109 -0
- regula/facesdk/webclient/gen/model/face_image_quality_groups.py +118 -0
- regula/facesdk/webclient/gen/model/face_image_quality_groups_strings.py +118 -0
- regula/facesdk/webclient/gen/model/face_image_quality_status.py +103 -0
- regula/facesdk/webclient/gen/model/face_quality_config_name.py +238 -0
- regula/facesdk/webclient/gen/model/face_quality_scenarios.py +121 -0
- regula/facesdk/webclient/gen/model/face_quality_status.py +103 -0
- regula/facesdk/webclient/gen/model/face_rectangular.py +92 -0
- regula/facesdk/webclient/gen/model/face_sdk_result.py +121 -0
- regula/facesdk/webclient/gen/model/face_sdk_result_code.py +217 -0
- regula/facesdk/webclient/gen/model/faces_response.py +286 -0
- regula/facesdk/webclient/gen/model/faces_response_all_of.py +148 -0
- regula/facesdk/webclient/gen/model/filter_op.py +100 -0
- regula/facesdk/webclient/gen/model/filter_search_request.py +176 -0
- regula/facesdk/webclient/gen/model/group.py +206 -0
- regula/facesdk/webclient/gen/model/group_all_of.py +150 -0
- regula/facesdk/webclient/gen/model/group_page.py +178 -0
- regula/facesdk/webclient/gen/model/group_page_all_of.py +122 -0
- regula/facesdk/webclient/gen/model/group_response.py +150 -0
- regula/facesdk/webclient/gen/model/group_to_create.py +180 -0
- regula/facesdk/webclient/gen/model/image.py +290 -0
- regula/facesdk/webclient/gen/model/image_fields.py +258 -0
- regula/facesdk/webclient/gen/model/image_fields_image.py +204 -0
- regula/facesdk/webclient/gen/model/image_page.py +176 -0
- regula/facesdk/webclient/gen/model/image_page_all_of.py +120 -0
- regula/facesdk/webclient/gen/model/image_source.py +115 -0
- regula/facesdk/webclient/gen/model/liveness_transaction.py +334 -0
- regula/facesdk/webclient/gen/model/liveness_type.py +100 -0
- regula/facesdk/webclient/gen/model/match_and_search_request.py +178 -0
- regula/facesdk/webclient/gen/model/match_and_search_request_all_of.py +178 -0
- regula/facesdk/webclient/gen/model/match_and_search_request_all_of_images.py +148 -0
- regula/facesdk/webclient/gen/model/match_and_search_response.py +233 -0
- regula/facesdk/webclient/gen/model/match_and_search_response_all_of.py +206 -0
- regula/facesdk/webclient/gen/model/match_and_search_response_all_of_detections.py +176 -0
- regula/facesdk/webclient/gen/model/match_image.py +205 -0
- regula/facesdk/webclient/gen/model/match_image_detection.py +178 -0
- regula/facesdk/webclient/gen/model/match_image_result.py +316 -0
- regula/facesdk/webclient/gen/model/match_request.py +204 -0
- regula/facesdk/webclient/gen/model/match_request_output_image_params.py +148 -0
- regula/facesdk/webclient/gen/model/match_request_output_image_params_crop.py +212 -0
- regula/facesdk/webclient/gen/model/match_response.py +205 -0
- regula/facesdk/webclient/gen/model/match_response_all_of.py +178 -0
- regula/facesdk/webclient/gen/model/operation_log.py +206 -0
- regula/facesdk/webclient/gen/model/output_image_params.py +146 -0
- regula/facesdk/webclient/gen/model/page.py +150 -0
- regula/facesdk/webclient/gen/model/person.py +318 -0
- regula/facesdk/webclient/gen/model/person_all_of.py +206 -0
- regula/facesdk/webclient/gen/model/person_created_response.py +178 -0
- regula/facesdk/webclient/gen/model/person_fields.py +234 -0
- regula/facesdk/webclient/gen/model/person_to_update_fields.py +206 -0
- regula/facesdk/webclient/gen/model/person_with_images.py +346 -0
- regula/facesdk/webclient/gen/model/person_with_images_all_of.py +122 -0
- regula/facesdk/webclient/gen/model/persons_page.py +176 -0
- regula/facesdk/webclient/gen/model/persons_page_all_of.py +120 -0
- regula/facesdk/webclient/gen/model/process_param.py +226 -0
- regula/facesdk/webclient/gen/model/process_param_attributes.py +120 -0
- regula/facesdk/webclient/gen/model/quality_config.py +154 -0
- regula/facesdk/webclient/gen/model/quality_config_list.py +92 -0
- regula/facesdk/webclient/gen/model/quality_detail.py +234 -0
- regula/facesdk/webclient/gen/model/quality_details_groups.py +202 -0
- regula/facesdk/webclient/gen/model/quality_request.py +146 -0
- regula/facesdk/webclient/gen/model/recognize_image.py +346 -0
- regula/facesdk/webclient/gen/model/recognize_image_all_of.py +150 -0
- regula/facesdk/webclient/gen/model/resize_options.py +178 -0
- regula/facesdk/webclient/gen/model/rgb.py +92 -0
- regula/facesdk/webclient/gen/model/search_bad_params.py +172 -0
- regula/facesdk/webclient/gen/model/search_detection.py +398 -0
- regula/facesdk/webclient/gen/model/search_parameters.py +174 -0
- regula/facesdk/webclient/gen/model/search_parameters_create_person.py +177 -0
- regula/facesdk/webclient/gen/model/search_person.py +372 -0
- regula/facesdk/webclient/gen/model/search_person_all_of.py +148 -0
- regula/facesdk/webclient/gen/model/search_request.py +338 -0
- regula/facesdk/webclient/gen/model/search_request_all_of.py +178 -0
- regula/facesdk/webclient/gen/model/search_result.py +313 -0
- regula/facesdk/webclient/gen/model/search_result_all_of.py +122 -0
- regula/facesdk/webclient/gen/model/transaction_config.py +92 -0
- regula/facesdk/webclient/gen/model/transaction_info.py +344 -0
- regula/facesdk/webclient/gen/model/update_group.py +150 -0
- regula/facesdk/webclient/gen/model_utils.py +2037 -0
- regula/facesdk/webclient/gen/models/__init__.py +96 -0
- regula/facesdk/webclient/gen/rest.py +346 -0
- regula_facesdk_webclient-6.4.198.dev0.dist-info/METADATA +73 -0
- regula_facesdk_webclient-6.4.198.dev0.dist-info/RECORD +133 -0
- regula_facesdk_webclient-6.4.198.dev0.dist-info/WHEEL +5 -0
- regula_facesdk_webclient-6.4.198.dev0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Regula Face SDK Web API
|
|
5
|
+
|
|
6
|
+
<a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process and image quality assurance. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face detection and image quality assessment</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness detection</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core # noqa: E501
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 6.2.0
|
|
9
|
+
Generated by: https://openapi-generator.tech
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
import pprint
|
|
14
|
+
import re # noqa: F401
|
|
15
|
+
|
|
16
|
+
import six
|
|
17
|
+
|
|
18
|
+
from regula.facesdk.webclient.gen.configuration import Configuration
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class MatchAndSearchRequestAllOf(object):
|
|
22
|
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
23
|
+
Ref: https://openapi-generator.tech
|
|
24
|
+
|
|
25
|
+
Do not edit the class manually.
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
"""
|
|
29
|
+
Attributes:
|
|
30
|
+
openapi_types (dict): The key is attribute name
|
|
31
|
+
and the value is attribute type.
|
|
32
|
+
attribute_map (dict): The key is attribute name
|
|
33
|
+
and the value is json key in definition.
|
|
34
|
+
"""
|
|
35
|
+
openapi_types = {
|
|
36
|
+
'tag': 'str',
|
|
37
|
+
'images': '[MatchAndSearchRequestAllOfImages]',
|
|
38
|
+
'group_ids': '[str]',
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
attribute_map = {
|
|
42
|
+
'tag': 'tag',
|
|
43
|
+
'images': 'images',
|
|
44
|
+
'group_ids': 'groupIds',
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
def __init__(self, tag=None, images=None, group_ids=None, local_vars_configuration=None): # noqa: E501
|
|
48
|
+
"""MatchAndSearchRequestAllOf - a model defined in OpenAPI""" # noqa: E501
|
|
49
|
+
if local_vars_configuration is None:
|
|
50
|
+
local_vars_configuration = Configuration()
|
|
51
|
+
self.local_vars_configuration = local_vars_configuration
|
|
52
|
+
|
|
53
|
+
self._tag = None
|
|
54
|
+
self._images = None
|
|
55
|
+
self._group_ids = None
|
|
56
|
+
self.discriminator = None
|
|
57
|
+
|
|
58
|
+
if tag is not None:
|
|
59
|
+
self.tag = tag
|
|
60
|
+
if images is not None:
|
|
61
|
+
self.images = images
|
|
62
|
+
if group_ids is not None:
|
|
63
|
+
self.group_ids = group_ids
|
|
64
|
+
|
|
65
|
+
@property
|
|
66
|
+
def tag(self):
|
|
67
|
+
"""Gets the tag of this MatchAndSearchRequestAllOf. # noqa: E501
|
|
68
|
+
|
|
69
|
+
Session identificator, should be unique for each session. # noqa: E501
|
|
70
|
+
|
|
71
|
+
:return: The tag of this MatchAndSearchRequestAllOf. # noqa: E501
|
|
72
|
+
:rtype: str
|
|
73
|
+
"""
|
|
74
|
+
return self._tag
|
|
75
|
+
|
|
76
|
+
@tag.setter
|
|
77
|
+
def tag(self, tag):
|
|
78
|
+
"""Sets the tag of this MatchAndSearchRequestAllOf.
|
|
79
|
+
|
|
80
|
+
Session identificator, should be unique for each session. # noqa: E501
|
|
81
|
+
|
|
82
|
+
:param tag: The tag of this MatchAndSearchRequestAllOf. # noqa: E501
|
|
83
|
+
:type tag: str
|
|
84
|
+
"""
|
|
85
|
+
|
|
86
|
+
self._tag = tag
|
|
87
|
+
|
|
88
|
+
@property
|
|
89
|
+
def images(self):
|
|
90
|
+
"""Gets the images of this MatchAndSearchRequestAllOf. # noqa: E501
|
|
91
|
+
|
|
92
|
+
Person's images. # noqa: E501
|
|
93
|
+
|
|
94
|
+
:return: The images of this MatchAndSearchRequestAllOf. # noqa: E501
|
|
95
|
+
:rtype: [MatchAndSearchRequestAllOfImages]
|
|
96
|
+
"""
|
|
97
|
+
return self._images
|
|
98
|
+
|
|
99
|
+
@images.setter
|
|
100
|
+
def images(self, images):
|
|
101
|
+
"""Sets the images of this MatchAndSearchRequestAllOf.
|
|
102
|
+
|
|
103
|
+
Person's images. # noqa: E501
|
|
104
|
+
|
|
105
|
+
:param images: The images of this MatchAndSearchRequestAllOf. # noqa: E501
|
|
106
|
+
:type images: [MatchAndSearchRequestAllOfImages]
|
|
107
|
+
"""
|
|
108
|
+
|
|
109
|
+
self._images = images
|
|
110
|
+
|
|
111
|
+
@property
|
|
112
|
+
def group_ids(self):
|
|
113
|
+
"""Gets the group_ids of this MatchAndSearchRequestAllOf. # noqa: E501
|
|
114
|
+
|
|
115
|
+
IDs of the groups in which the search is performed. # noqa: E501
|
|
116
|
+
|
|
117
|
+
:return: The group_ids of this MatchAndSearchRequestAllOf. # noqa: E501
|
|
118
|
+
:rtype: [str]
|
|
119
|
+
"""
|
|
120
|
+
return self._group_ids
|
|
121
|
+
|
|
122
|
+
@group_ids.setter
|
|
123
|
+
def group_ids(self, group_ids):
|
|
124
|
+
"""Sets the group_ids of this MatchAndSearchRequestAllOf.
|
|
125
|
+
|
|
126
|
+
IDs of the groups in which the search is performed. # noqa: E501
|
|
127
|
+
|
|
128
|
+
:param group_ids: The group_ids of this MatchAndSearchRequestAllOf. # noqa: E501
|
|
129
|
+
:type group_ids: [str]
|
|
130
|
+
"""
|
|
131
|
+
|
|
132
|
+
self._group_ids = group_ids
|
|
133
|
+
|
|
134
|
+
def to_dict(self):
|
|
135
|
+
"""Returns the model properties as a dict"""
|
|
136
|
+
result = {}
|
|
137
|
+
|
|
138
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
139
|
+
value = getattr(self, attr)
|
|
140
|
+
if isinstance(value, list):
|
|
141
|
+
result[attr] = list(map(
|
|
142
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
143
|
+
value
|
|
144
|
+
))
|
|
145
|
+
elif hasattr(value, "to_dict"):
|
|
146
|
+
result[attr] = value.to_dict()
|
|
147
|
+
elif isinstance(value, dict):
|
|
148
|
+
result[attr] = dict(map(
|
|
149
|
+
lambda item: (item[0], item[1].to_dict())
|
|
150
|
+
if hasattr(item[1], "to_dict") else item,
|
|
151
|
+
value.items()
|
|
152
|
+
))
|
|
153
|
+
else:
|
|
154
|
+
result[attr] = value
|
|
155
|
+
|
|
156
|
+
return result
|
|
157
|
+
|
|
158
|
+
def to_str(self):
|
|
159
|
+
"""Returns the string representation of the model"""
|
|
160
|
+
return pprint.pformat(self.to_dict())
|
|
161
|
+
|
|
162
|
+
def __repr__(self):
|
|
163
|
+
"""For `print` and `pprint`"""
|
|
164
|
+
return self.to_str()
|
|
165
|
+
|
|
166
|
+
def __eq__(self, other):
|
|
167
|
+
"""Returns true if both objects are equal"""
|
|
168
|
+
if not isinstance(other, MatchAndSearchRequestAllOf):
|
|
169
|
+
return False
|
|
170
|
+
|
|
171
|
+
return self.to_dict() == other.to_dict()
|
|
172
|
+
|
|
173
|
+
def __ne__(self, other):
|
|
174
|
+
"""Returns true if both objects are not equal"""
|
|
175
|
+
if not isinstance(other, MatchAndSearchRequestAllOf):
|
|
176
|
+
return True
|
|
177
|
+
|
|
178
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Regula Face SDK Web API
|
|
5
|
+
|
|
6
|
+
<a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process and image quality assurance. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face detection and image quality assessment</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness detection</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core # noqa: E501
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 6.2.0
|
|
9
|
+
Generated by: https://openapi-generator.tech
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
import pprint
|
|
14
|
+
import re # noqa: F401
|
|
15
|
+
|
|
16
|
+
import six
|
|
17
|
+
|
|
18
|
+
from regula.facesdk.webclient.gen.configuration import Configuration
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class MatchAndSearchRequestAllOfImages(object):
|
|
22
|
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
23
|
+
Ref: https://openapi-generator.tech
|
|
24
|
+
|
|
25
|
+
Do not edit the class manually.
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
"""
|
|
29
|
+
Attributes:
|
|
30
|
+
openapi_types (dict): The key is attribute name
|
|
31
|
+
and the value is attribute type.
|
|
32
|
+
attribute_map (dict): The key is attribute name
|
|
33
|
+
and the value is json key in definition.
|
|
34
|
+
"""
|
|
35
|
+
openapi_types = {
|
|
36
|
+
'content': 'str',
|
|
37
|
+
'type': 'ImageSource',
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
attribute_map = {
|
|
41
|
+
'content': 'content',
|
|
42
|
+
'type': 'type',
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
def __init__(self, content=None, type=None, local_vars_configuration=None): # noqa: E501
|
|
46
|
+
"""MatchAndSearchRequestAllOfImages - a model defined in OpenAPI""" # noqa: E501
|
|
47
|
+
if local_vars_configuration is None:
|
|
48
|
+
local_vars_configuration = Configuration()
|
|
49
|
+
self.local_vars_configuration = local_vars_configuration
|
|
50
|
+
|
|
51
|
+
self._content = None
|
|
52
|
+
self._type = None
|
|
53
|
+
self.discriminator = None
|
|
54
|
+
|
|
55
|
+
if content is not None:
|
|
56
|
+
self.content = content
|
|
57
|
+
if type is not None:
|
|
58
|
+
self.type = type
|
|
59
|
+
|
|
60
|
+
@property
|
|
61
|
+
def content(self):
|
|
62
|
+
"""Gets the content of this MatchAndSearchRequestAllOfImages. # noqa: E501
|
|
63
|
+
|
|
64
|
+
Base64-encoded image. # noqa: E501
|
|
65
|
+
|
|
66
|
+
:return: The content of this MatchAndSearchRequestAllOfImages. # noqa: E501
|
|
67
|
+
:rtype: str
|
|
68
|
+
"""
|
|
69
|
+
return self._content
|
|
70
|
+
|
|
71
|
+
@content.setter
|
|
72
|
+
def content(self, content):
|
|
73
|
+
"""Sets the content of this MatchAndSearchRequestAllOfImages.
|
|
74
|
+
|
|
75
|
+
Base64-encoded image. # noqa: E501
|
|
76
|
+
|
|
77
|
+
:param content: The content of this MatchAndSearchRequestAllOfImages. # noqa: E501
|
|
78
|
+
:type content: str
|
|
79
|
+
"""
|
|
80
|
+
|
|
81
|
+
self._content = content
|
|
82
|
+
|
|
83
|
+
@property
|
|
84
|
+
def type(self):
|
|
85
|
+
"""Gets the type of this MatchAndSearchRequestAllOfImages. # noqa: E501
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
:return: The type of this MatchAndSearchRequestAllOfImages. # noqa: E501
|
|
89
|
+
:rtype: ImageSource
|
|
90
|
+
"""
|
|
91
|
+
return self._type
|
|
92
|
+
|
|
93
|
+
@type.setter
|
|
94
|
+
def type(self, type):
|
|
95
|
+
"""Sets the type of this MatchAndSearchRequestAllOfImages.
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
:param type: The type of this MatchAndSearchRequestAllOfImages. # noqa: E501
|
|
99
|
+
:type type: ImageSource
|
|
100
|
+
"""
|
|
101
|
+
|
|
102
|
+
self._type = type
|
|
103
|
+
|
|
104
|
+
def to_dict(self):
|
|
105
|
+
"""Returns the model properties as a dict"""
|
|
106
|
+
result = {}
|
|
107
|
+
|
|
108
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
109
|
+
value = getattr(self, attr)
|
|
110
|
+
if isinstance(value, list):
|
|
111
|
+
result[attr] = list(map(
|
|
112
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
113
|
+
value
|
|
114
|
+
))
|
|
115
|
+
elif hasattr(value, "to_dict"):
|
|
116
|
+
result[attr] = value.to_dict()
|
|
117
|
+
elif isinstance(value, dict):
|
|
118
|
+
result[attr] = dict(map(
|
|
119
|
+
lambda item: (item[0], item[1].to_dict())
|
|
120
|
+
if hasattr(item[1], "to_dict") else item,
|
|
121
|
+
value.items()
|
|
122
|
+
))
|
|
123
|
+
else:
|
|
124
|
+
result[attr] = value
|
|
125
|
+
|
|
126
|
+
return result
|
|
127
|
+
|
|
128
|
+
def to_str(self):
|
|
129
|
+
"""Returns the string representation of the model"""
|
|
130
|
+
return pprint.pformat(self.to_dict())
|
|
131
|
+
|
|
132
|
+
def __repr__(self):
|
|
133
|
+
"""For `print` and `pprint`"""
|
|
134
|
+
return self.to_str()
|
|
135
|
+
|
|
136
|
+
def __eq__(self, other):
|
|
137
|
+
"""Returns true if both objects are equal"""
|
|
138
|
+
if not isinstance(other, MatchAndSearchRequestAllOfImages):
|
|
139
|
+
return False
|
|
140
|
+
|
|
141
|
+
return self.to_dict() == other.to_dict()
|
|
142
|
+
|
|
143
|
+
def __ne__(self, other):
|
|
144
|
+
"""Returns true if both objects are not equal"""
|
|
145
|
+
if not isinstance(other, MatchAndSearchRequestAllOfImages):
|
|
146
|
+
return True
|
|
147
|
+
|
|
148
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Regula Face SDK Web API
|
|
5
|
+
|
|
6
|
+
<a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process and image quality assurance. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face detection and image quality assessment</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness detection</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core # noqa: E501
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 6.2.0
|
|
9
|
+
Generated by: https://openapi-generator.tech
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
import pprint
|
|
14
|
+
import re # noqa: F401
|
|
15
|
+
|
|
16
|
+
import six
|
|
17
|
+
|
|
18
|
+
from regula.facesdk.webclient.gen.configuration import Configuration
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class MatchAndSearchResponse(object):
|
|
22
|
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
23
|
+
Ref: https://openapi-generator.tech
|
|
24
|
+
|
|
25
|
+
Do not edit the class manually.
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
"""
|
|
29
|
+
Attributes:
|
|
30
|
+
openapi_types (dict): The key is attribute name
|
|
31
|
+
and the value is attribute type.
|
|
32
|
+
attribute_map (dict): The key is attribute name
|
|
33
|
+
and the value is json key in definition.
|
|
34
|
+
"""
|
|
35
|
+
openapi_types = {
|
|
36
|
+
'code': 'FaceSDKResultCode',
|
|
37
|
+
'results': '[MatchImageResult]',
|
|
38
|
+
'elapsed_time': 'float',
|
|
39
|
+
'metadata': '{str: (bool, date, datetime, dict, float, int, list, str, none_type)}',
|
|
40
|
+
'detections': '[MatchAndSearchResponseAllOfDetections]',
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
attribute_map = {
|
|
44
|
+
'code': 'code',
|
|
45
|
+
'results': 'results',
|
|
46
|
+
'elapsed_time': 'elapsedTime',
|
|
47
|
+
'metadata': 'metadata',
|
|
48
|
+
'detections': 'detections',
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
def __init__(self, code=None, results=None, elapsed_time=None, metadata=None, detections=None, local_vars_configuration=None): # noqa: E501
|
|
52
|
+
"""MatchAndSearchResponse - a model defined in OpenAPI""" # noqa: E501
|
|
53
|
+
if local_vars_configuration is None:
|
|
54
|
+
local_vars_configuration = Configuration()
|
|
55
|
+
self.local_vars_configuration = local_vars_configuration
|
|
56
|
+
|
|
57
|
+
self._code = None
|
|
58
|
+
self._results = None
|
|
59
|
+
self._elapsed_time = None
|
|
60
|
+
self._metadata = None
|
|
61
|
+
self._detections = None
|
|
62
|
+
self.discriminator = None
|
|
63
|
+
|
|
64
|
+
self.code = code
|
|
65
|
+
if results is not None:
|
|
66
|
+
self.results = results
|
|
67
|
+
if elapsed_time is not None:
|
|
68
|
+
self.elapsed_time = elapsed_time
|
|
69
|
+
if metadata is not None:
|
|
70
|
+
self.metadata = metadata
|
|
71
|
+
if detections is not None:
|
|
72
|
+
self.detections = detections
|
|
73
|
+
|
|
74
|
+
@property
|
|
75
|
+
def code(self):
|
|
76
|
+
"""Gets the code of this MatchAndSearchResponse. # noqa: E501
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
:return: The code of this MatchAndSearchResponse. # noqa: E501
|
|
80
|
+
:rtype: FaceSDKResultCode
|
|
81
|
+
"""
|
|
82
|
+
return self._code
|
|
83
|
+
|
|
84
|
+
@code.setter
|
|
85
|
+
def code(self, code):
|
|
86
|
+
"""Sets the code of this MatchAndSearchResponse.
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
:param code: The code of this MatchAndSearchResponse. # noqa: E501
|
|
90
|
+
:type code: FaceSDKResultCode
|
|
91
|
+
"""
|
|
92
|
+
if self.local_vars_configuration.client_side_validation and code is None: # noqa: E501
|
|
93
|
+
raise ValueError("Invalid value for `code`, must not be `None`") # noqa: E501
|
|
94
|
+
|
|
95
|
+
self._code = code
|
|
96
|
+
|
|
97
|
+
@property
|
|
98
|
+
def results(self):
|
|
99
|
+
"""Gets the results of this MatchAndSearchResponse. # noqa: E501
|
|
100
|
+
|
|
101
|
+
The match and search results. # noqa: E501
|
|
102
|
+
|
|
103
|
+
:return: The results of this MatchAndSearchResponse. # noqa: E501
|
|
104
|
+
:rtype: [MatchImageResult]
|
|
105
|
+
"""
|
|
106
|
+
return self._results
|
|
107
|
+
|
|
108
|
+
@results.setter
|
|
109
|
+
def results(self, results):
|
|
110
|
+
"""Sets the results of this MatchAndSearchResponse.
|
|
111
|
+
|
|
112
|
+
The match and search results. # noqa: E501
|
|
113
|
+
|
|
114
|
+
:param results: The results of this MatchAndSearchResponse. # noqa: E501
|
|
115
|
+
:type results: [MatchImageResult]
|
|
116
|
+
"""
|
|
117
|
+
|
|
118
|
+
self._results = results
|
|
119
|
+
|
|
120
|
+
@property
|
|
121
|
+
def elapsed_time(self):
|
|
122
|
+
"""Gets the elapsed_time of this MatchAndSearchResponse. # noqa: E501
|
|
123
|
+
|
|
124
|
+
Time the processing has taken, ms. # noqa: E501
|
|
125
|
+
|
|
126
|
+
:return: The elapsed_time of this MatchAndSearchResponse. # noqa: E501
|
|
127
|
+
:rtype: float
|
|
128
|
+
"""
|
|
129
|
+
return self._elapsed_time
|
|
130
|
+
|
|
131
|
+
@elapsed_time.setter
|
|
132
|
+
def elapsed_time(self, elapsed_time):
|
|
133
|
+
"""Sets the elapsed_time of this MatchAndSearchResponse.
|
|
134
|
+
|
|
135
|
+
Time the processing has taken, ms. # noqa: E501
|
|
136
|
+
|
|
137
|
+
:param elapsed_time: The elapsed_time of this MatchAndSearchResponse. # noqa: E501
|
|
138
|
+
:type elapsed_time: float
|
|
139
|
+
"""
|
|
140
|
+
|
|
141
|
+
self._elapsed_time = elapsed_time
|
|
142
|
+
|
|
143
|
+
@property
|
|
144
|
+
def metadata(self):
|
|
145
|
+
"""Gets the metadata of this MatchAndSearchResponse. # noqa: E501
|
|
146
|
+
|
|
147
|
+
A free-form object containing person's extended attributes. # noqa: E501
|
|
148
|
+
|
|
149
|
+
:return: The metadata of this MatchAndSearchResponse. # noqa: E501
|
|
150
|
+
:rtype: {str: (bool, date, datetime, dict, float, int, list, str, none_type)}
|
|
151
|
+
"""
|
|
152
|
+
return self._metadata
|
|
153
|
+
|
|
154
|
+
@metadata.setter
|
|
155
|
+
def metadata(self, metadata):
|
|
156
|
+
"""Sets the metadata of this MatchAndSearchResponse.
|
|
157
|
+
|
|
158
|
+
A free-form object containing person's extended attributes. # noqa: E501
|
|
159
|
+
|
|
160
|
+
:param metadata: The metadata of this MatchAndSearchResponse. # noqa: E501
|
|
161
|
+
:type metadata: {str: (bool, date, datetime, dict, float, int, list, str, none_type)}
|
|
162
|
+
"""
|
|
163
|
+
|
|
164
|
+
self._metadata = metadata
|
|
165
|
+
|
|
166
|
+
@property
|
|
167
|
+
def detections(self):
|
|
168
|
+
"""Gets the detections of this MatchAndSearchResponse. # noqa: E501
|
|
169
|
+
|
|
170
|
+
The detection results. # noqa: E501
|
|
171
|
+
|
|
172
|
+
:return: The detections of this MatchAndSearchResponse. # noqa: E501
|
|
173
|
+
:rtype: [MatchAndSearchResponseAllOfDetections]
|
|
174
|
+
"""
|
|
175
|
+
return self._detections
|
|
176
|
+
|
|
177
|
+
@detections.setter
|
|
178
|
+
def detections(self, detections):
|
|
179
|
+
"""Sets the detections of this MatchAndSearchResponse.
|
|
180
|
+
|
|
181
|
+
The detection results. # noqa: E501
|
|
182
|
+
|
|
183
|
+
:param detections: The detections of this MatchAndSearchResponse. # noqa: E501
|
|
184
|
+
:type detections: [MatchAndSearchResponseAllOfDetections]
|
|
185
|
+
"""
|
|
186
|
+
|
|
187
|
+
self._detections = detections
|
|
188
|
+
|
|
189
|
+
def to_dict(self):
|
|
190
|
+
"""Returns the model properties as a dict"""
|
|
191
|
+
result = {}
|
|
192
|
+
|
|
193
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
194
|
+
value = getattr(self, attr)
|
|
195
|
+
if isinstance(value, list):
|
|
196
|
+
result[attr] = list(map(
|
|
197
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
198
|
+
value
|
|
199
|
+
))
|
|
200
|
+
elif hasattr(value, "to_dict"):
|
|
201
|
+
result[attr] = value.to_dict()
|
|
202
|
+
elif isinstance(value, dict):
|
|
203
|
+
result[attr] = dict(map(
|
|
204
|
+
lambda item: (item[0], item[1].to_dict())
|
|
205
|
+
if hasattr(item[1], "to_dict") else item,
|
|
206
|
+
value.items()
|
|
207
|
+
))
|
|
208
|
+
else:
|
|
209
|
+
result[attr] = value
|
|
210
|
+
|
|
211
|
+
return result
|
|
212
|
+
|
|
213
|
+
def to_str(self):
|
|
214
|
+
"""Returns the string representation of the model"""
|
|
215
|
+
return pprint.pformat(self.to_dict())
|
|
216
|
+
|
|
217
|
+
def __repr__(self):
|
|
218
|
+
"""For `print` and `pprint`"""
|
|
219
|
+
return self.to_str()
|
|
220
|
+
|
|
221
|
+
def __eq__(self, other):
|
|
222
|
+
"""Returns true if both objects are equal"""
|
|
223
|
+
if not isinstance(other, MatchAndSearchResponse):
|
|
224
|
+
return False
|
|
225
|
+
|
|
226
|
+
return self.to_dict() == other.to_dict()
|
|
227
|
+
|
|
228
|
+
def __ne__(self, other):
|
|
229
|
+
"""Returns true if both objects are not equal"""
|
|
230
|
+
if not isinstance(other, MatchAndSearchResponse):
|
|
231
|
+
return True
|
|
232
|
+
|
|
233
|
+
return self.to_dict() != other.to_dict()
|