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,204 @@
|
|
|
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 MatchRequest(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
|
+
'thumbnails': 'bool, date, datetime, dict, float, int, list, str, none_type',
|
|
38
|
+
'images': '[MatchImage]',
|
|
39
|
+
'output_image_params': 'OutputImageParams',
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
attribute_map = {
|
|
43
|
+
'tag': 'tag',
|
|
44
|
+
'thumbnails': 'thumbnails',
|
|
45
|
+
'images': 'images',
|
|
46
|
+
'output_image_params': 'outputImageParams',
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
def __init__(self, tag=None, thumbnails=None, images=None, output_image_params=None, local_vars_configuration=None): # noqa: E501
|
|
50
|
+
"""MatchRequest - a model defined in OpenAPI""" # noqa: E501
|
|
51
|
+
if local_vars_configuration is None:
|
|
52
|
+
local_vars_configuration = Configuration()
|
|
53
|
+
self.local_vars_configuration = local_vars_configuration
|
|
54
|
+
|
|
55
|
+
self._tag = None
|
|
56
|
+
self._thumbnails = None
|
|
57
|
+
self._images = None
|
|
58
|
+
self._output_image_params = None
|
|
59
|
+
self.discriminator = None
|
|
60
|
+
|
|
61
|
+
if tag is not None:
|
|
62
|
+
self.tag = tag
|
|
63
|
+
self.thumbnails = thumbnails
|
|
64
|
+
self.images = images
|
|
65
|
+
if output_image_params is not None:
|
|
66
|
+
self.output_image_params = output_image_params
|
|
67
|
+
|
|
68
|
+
@property
|
|
69
|
+
def tag(self):
|
|
70
|
+
"""Gets the tag of this MatchRequest. # noqa: E501
|
|
71
|
+
|
|
72
|
+
Session identificator, should be unique for each session. # noqa: E501
|
|
73
|
+
|
|
74
|
+
:return: The tag of this MatchRequest. # noqa: E501
|
|
75
|
+
:rtype: str
|
|
76
|
+
"""
|
|
77
|
+
return self._tag
|
|
78
|
+
|
|
79
|
+
@tag.setter
|
|
80
|
+
def tag(self, tag):
|
|
81
|
+
"""Sets the tag of this MatchRequest.
|
|
82
|
+
|
|
83
|
+
Session identificator, should be unique for each session. # noqa: E501
|
|
84
|
+
|
|
85
|
+
:param tag: The tag of this MatchRequest. # noqa: E501
|
|
86
|
+
:type tag: str
|
|
87
|
+
"""
|
|
88
|
+
|
|
89
|
+
self._tag = tag
|
|
90
|
+
|
|
91
|
+
@property
|
|
92
|
+
def thumbnails(self):
|
|
93
|
+
"""Gets the thumbnails of this MatchRequest. # noqa: E501
|
|
94
|
+
|
|
95
|
+
Use `outputImageParams.crop` instead. # noqa: E501
|
|
96
|
+
|
|
97
|
+
:return: The thumbnails of this MatchRequest. # noqa: E501
|
|
98
|
+
:rtype: bool, date, datetime, dict, float, int, list, str, none_type
|
|
99
|
+
"""
|
|
100
|
+
return self._thumbnails
|
|
101
|
+
|
|
102
|
+
@thumbnails.setter
|
|
103
|
+
def thumbnails(self, thumbnails):
|
|
104
|
+
"""Sets the thumbnails of this MatchRequest.
|
|
105
|
+
|
|
106
|
+
Use `outputImageParams.crop` instead. # noqa: E501
|
|
107
|
+
|
|
108
|
+
:param thumbnails: The thumbnails of this MatchRequest. # noqa: E501
|
|
109
|
+
:type thumbnails: bool, date, datetime, dict, float, int, list, str, none_type
|
|
110
|
+
"""
|
|
111
|
+
|
|
112
|
+
self._thumbnails = thumbnails
|
|
113
|
+
|
|
114
|
+
@property
|
|
115
|
+
def images(self):
|
|
116
|
+
"""Gets the images of this MatchRequest. # noqa: E501
|
|
117
|
+
|
|
118
|
+
All images included in the comparison. # noqa: E501
|
|
119
|
+
|
|
120
|
+
:return: The images of this MatchRequest. # noqa: E501
|
|
121
|
+
:rtype: [MatchImage]
|
|
122
|
+
"""
|
|
123
|
+
return self._images
|
|
124
|
+
|
|
125
|
+
@images.setter
|
|
126
|
+
def images(self, images):
|
|
127
|
+
"""Sets the images of this MatchRequest.
|
|
128
|
+
|
|
129
|
+
All images included in the comparison. # noqa: E501
|
|
130
|
+
|
|
131
|
+
:param images: The images of this MatchRequest. # noqa: E501
|
|
132
|
+
:type images: [MatchImage]
|
|
133
|
+
"""
|
|
134
|
+
if self.local_vars_configuration.client_side_validation and images is None: # noqa: E501
|
|
135
|
+
raise ValueError("Invalid value for `images`, must not be `None`") # noqa: E501
|
|
136
|
+
|
|
137
|
+
self._images = images
|
|
138
|
+
|
|
139
|
+
@property
|
|
140
|
+
def output_image_params(self):
|
|
141
|
+
"""Gets the output_image_params of this MatchRequest. # noqa: E501
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
:return: The output_image_params of this MatchRequest. # noqa: E501
|
|
145
|
+
:rtype: OutputImageParams
|
|
146
|
+
"""
|
|
147
|
+
return self._output_image_params
|
|
148
|
+
|
|
149
|
+
@output_image_params.setter
|
|
150
|
+
def output_image_params(self, output_image_params):
|
|
151
|
+
"""Sets the output_image_params of this MatchRequest.
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
:param output_image_params: The output_image_params of this MatchRequest. # noqa: E501
|
|
155
|
+
:type output_image_params: OutputImageParams
|
|
156
|
+
"""
|
|
157
|
+
|
|
158
|
+
self._output_image_params = output_image_params
|
|
159
|
+
|
|
160
|
+
def to_dict(self):
|
|
161
|
+
"""Returns the model properties as a dict"""
|
|
162
|
+
result = {}
|
|
163
|
+
|
|
164
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
165
|
+
value = getattr(self, attr)
|
|
166
|
+
if isinstance(value, list):
|
|
167
|
+
result[attr] = list(map(
|
|
168
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
169
|
+
value
|
|
170
|
+
))
|
|
171
|
+
elif hasattr(value, "to_dict"):
|
|
172
|
+
result[attr] = value.to_dict()
|
|
173
|
+
elif isinstance(value, dict):
|
|
174
|
+
result[attr] = dict(map(
|
|
175
|
+
lambda item: (item[0], item[1].to_dict())
|
|
176
|
+
if hasattr(item[1], "to_dict") else item,
|
|
177
|
+
value.items()
|
|
178
|
+
))
|
|
179
|
+
else:
|
|
180
|
+
result[attr] = value
|
|
181
|
+
|
|
182
|
+
return result
|
|
183
|
+
|
|
184
|
+
def to_str(self):
|
|
185
|
+
"""Returns the string representation of the model"""
|
|
186
|
+
return pprint.pformat(self.to_dict())
|
|
187
|
+
|
|
188
|
+
def __repr__(self):
|
|
189
|
+
"""For `print` and `pprint`"""
|
|
190
|
+
return self.to_str()
|
|
191
|
+
|
|
192
|
+
def __eq__(self, other):
|
|
193
|
+
"""Returns true if both objects are equal"""
|
|
194
|
+
if not isinstance(other, MatchRequest):
|
|
195
|
+
return False
|
|
196
|
+
|
|
197
|
+
return self.to_dict() == other.to_dict()
|
|
198
|
+
|
|
199
|
+
def __ne__(self, other):
|
|
200
|
+
"""Returns true if both objects are not equal"""
|
|
201
|
+
if not isinstance(other, MatchRequest):
|
|
202
|
+
return True
|
|
203
|
+
|
|
204
|
+
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.1.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 MatchRequestOutputImageParams(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
|
+
'background_color': '[int]',
|
|
37
|
+
'crop': 'MatchRequestOutputImageParamsCrop',
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
attribute_map = {
|
|
41
|
+
'background_color': 'backgroundColor',
|
|
42
|
+
'crop': 'crop',
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
def __init__(self, background_color=None, crop=None, local_vars_configuration=None): # noqa: E501
|
|
46
|
+
"""MatchRequestOutputImageParams - 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._background_color = None
|
|
52
|
+
self._crop = None
|
|
53
|
+
self.discriminator = None
|
|
54
|
+
|
|
55
|
+
if background_color is not None:
|
|
56
|
+
self.background_color = background_color
|
|
57
|
+
if crop is not None:
|
|
58
|
+
self.crop = crop
|
|
59
|
+
|
|
60
|
+
@property
|
|
61
|
+
def background_color(self):
|
|
62
|
+
"""Gets the background_color of this MatchRequestOutputImageParams. # noqa: E501
|
|
63
|
+
|
|
64
|
+
The RGB value of a color for filling background behind a person's silhouette and for aligning the image. # noqa: E501
|
|
65
|
+
|
|
66
|
+
:return: The background_color of this MatchRequestOutputImageParams. # noqa: E501
|
|
67
|
+
:rtype: [int]
|
|
68
|
+
"""
|
|
69
|
+
return self._background_color
|
|
70
|
+
|
|
71
|
+
@background_color.setter
|
|
72
|
+
def background_color(self, background_color):
|
|
73
|
+
"""Sets the background_color of this MatchRequestOutputImageParams.
|
|
74
|
+
|
|
75
|
+
The RGB value of a color for filling background behind a person's silhouette and for aligning the image. # noqa: E501
|
|
76
|
+
|
|
77
|
+
:param background_color: The background_color of this MatchRequestOutputImageParams. # noqa: E501
|
|
78
|
+
:type background_color: [int]
|
|
79
|
+
"""
|
|
80
|
+
|
|
81
|
+
self._background_color = background_color
|
|
82
|
+
|
|
83
|
+
@property
|
|
84
|
+
def crop(self):
|
|
85
|
+
"""Gets the crop of this MatchRequestOutputImageParams. # noqa: E501
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
:return: The crop of this MatchRequestOutputImageParams. # noqa: E501
|
|
89
|
+
:rtype: MatchRequestOutputImageParamsCrop
|
|
90
|
+
"""
|
|
91
|
+
return self._crop
|
|
92
|
+
|
|
93
|
+
@crop.setter
|
|
94
|
+
def crop(self, crop):
|
|
95
|
+
"""Sets the crop of this MatchRequestOutputImageParams.
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
:param crop: The crop of this MatchRequestOutputImageParams. # noqa: E501
|
|
99
|
+
:type crop: MatchRequestOutputImageParamsCrop
|
|
100
|
+
"""
|
|
101
|
+
|
|
102
|
+
self._crop = crop
|
|
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, MatchRequestOutputImageParams):
|
|
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, MatchRequestOutputImageParams):
|
|
146
|
+
return True
|
|
147
|
+
|
|
148
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -0,0 +1,212 @@
|
|
|
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.1.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 MatchRequestOutputImageParamsCrop(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
|
+
'pad_color': '[int]',
|
|
37
|
+
'return_original_rect': 'bool',
|
|
38
|
+
'size': '[int]',
|
|
39
|
+
'type': 'int',
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
attribute_map = {
|
|
43
|
+
'pad_color': 'padColor',
|
|
44
|
+
'return_original_rect': 'returnOriginalRect',
|
|
45
|
+
'size': 'size',
|
|
46
|
+
'type': 'type',
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
def __init__(self, pad_color=None, return_original_rect=None, size=None, type=None, local_vars_configuration=None): # noqa: E501
|
|
50
|
+
"""MatchRequestOutputImageParamsCrop - a model defined in OpenAPI""" # noqa: E501
|
|
51
|
+
if local_vars_configuration is None:
|
|
52
|
+
local_vars_configuration = Configuration()
|
|
53
|
+
self.local_vars_configuration = local_vars_configuration
|
|
54
|
+
|
|
55
|
+
self._pad_color = None
|
|
56
|
+
self._return_original_rect = None
|
|
57
|
+
self._size = None
|
|
58
|
+
self._type = None
|
|
59
|
+
self.discriminator = None
|
|
60
|
+
|
|
61
|
+
if pad_color is not None:
|
|
62
|
+
self.pad_color = pad_color
|
|
63
|
+
if return_original_rect is not None:
|
|
64
|
+
self.return_original_rect = return_original_rect
|
|
65
|
+
if size is not None:
|
|
66
|
+
self.size = size
|
|
67
|
+
if type is not None:
|
|
68
|
+
self.type = type
|
|
69
|
+
|
|
70
|
+
@property
|
|
71
|
+
def pad_color(self):
|
|
72
|
+
"""Gets the pad_color of this MatchRequestOutputImageParamsCrop. # noqa: E501
|
|
73
|
+
|
|
74
|
+
The RGB value of a color for filling background behind a person's silhouette and for aligning the image. # noqa: E501
|
|
75
|
+
|
|
76
|
+
:return: The pad_color of this MatchRequestOutputImageParamsCrop. # noqa: E501
|
|
77
|
+
:rtype: [int]
|
|
78
|
+
"""
|
|
79
|
+
return self._pad_color
|
|
80
|
+
|
|
81
|
+
@pad_color.setter
|
|
82
|
+
def pad_color(self, pad_color):
|
|
83
|
+
"""Sets the pad_color of this MatchRequestOutputImageParamsCrop.
|
|
84
|
+
|
|
85
|
+
The RGB value of a color for filling background behind a person's silhouette and for aligning the image. # noqa: E501
|
|
86
|
+
|
|
87
|
+
:param pad_color: The pad_color of this MatchRequestOutputImageParamsCrop. # noqa: E501
|
|
88
|
+
:type pad_color: [int]
|
|
89
|
+
"""
|
|
90
|
+
|
|
91
|
+
self._pad_color = pad_color
|
|
92
|
+
|
|
93
|
+
@property
|
|
94
|
+
def return_original_rect(self):
|
|
95
|
+
"""Gets the return_original_rect of this MatchRequestOutputImageParamsCrop. # noqa: E501
|
|
96
|
+
|
|
97
|
+
Whether to return the coordinates of the rectangle with the face in the original image prepared for the face crop. # noqa: E501
|
|
98
|
+
|
|
99
|
+
:return: The return_original_rect of this MatchRequestOutputImageParamsCrop. # noqa: E501
|
|
100
|
+
:rtype: bool
|
|
101
|
+
"""
|
|
102
|
+
return self._return_original_rect
|
|
103
|
+
|
|
104
|
+
@return_original_rect.setter
|
|
105
|
+
def return_original_rect(self, return_original_rect):
|
|
106
|
+
"""Sets the return_original_rect of this MatchRequestOutputImageParamsCrop.
|
|
107
|
+
|
|
108
|
+
Whether to return the coordinates of the rectangle with the face in the original image prepared for the face crop. # noqa: E501
|
|
109
|
+
|
|
110
|
+
:param return_original_rect: The return_original_rect of this MatchRequestOutputImageParamsCrop. # noqa: E501
|
|
111
|
+
:type return_original_rect: bool
|
|
112
|
+
"""
|
|
113
|
+
|
|
114
|
+
self._return_original_rect = return_original_rect
|
|
115
|
+
|
|
116
|
+
@property
|
|
117
|
+
def size(self):
|
|
118
|
+
"""Gets the size of this MatchRequestOutputImageParamsCrop. # noqa: E501
|
|
119
|
+
|
|
120
|
+
The resize value in case `type` matches this value. If it doesn't, no resize is performed. # noqa: E501
|
|
121
|
+
|
|
122
|
+
:return: The size of this MatchRequestOutputImageParamsCrop. # noqa: E501
|
|
123
|
+
:rtype: [int]
|
|
124
|
+
"""
|
|
125
|
+
return self._size
|
|
126
|
+
|
|
127
|
+
@size.setter
|
|
128
|
+
def size(self, size):
|
|
129
|
+
"""Sets the size of this MatchRequestOutputImageParamsCrop.
|
|
130
|
+
|
|
131
|
+
The resize value in case `type` matches this value. If it doesn't, no resize is performed. # noqa: E501
|
|
132
|
+
|
|
133
|
+
:param size: The size of this MatchRequestOutputImageParamsCrop. # noqa: E501
|
|
134
|
+
:type size: [int]
|
|
135
|
+
"""
|
|
136
|
+
|
|
137
|
+
self._size = size
|
|
138
|
+
|
|
139
|
+
@property
|
|
140
|
+
def type(self):
|
|
141
|
+
"""Gets the type of this MatchRequestOutputImageParamsCrop. # noqa: E501
|
|
142
|
+
|
|
143
|
+
The aspect ratio according to which face alignment is performed. See the [FaceImageQualityAlignType enum](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/enums/face-image-quality-align-type/). To get a thumbnail with aspect ratio 3:4, set `0`. # noqa: E501
|
|
144
|
+
|
|
145
|
+
:return: The type of this MatchRequestOutputImageParamsCrop. # noqa: E501
|
|
146
|
+
:rtype: int
|
|
147
|
+
"""
|
|
148
|
+
return self._type
|
|
149
|
+
|
|
150
|
+
@type.setter
|
|
151
|
+
def type(self, type):
|
|
152
|
+
"""Sets the type of this MatchRequestOutputImageParamsCrop.
|
|
153
|
+
|
|
154
|
+
The aspect ratio according to which face alignment is performed. See the [FaceImageQualityAlignType enum](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/enums/face-image-quality-align-type/). To get a thumbnail with aspect ratio 3:4, set `0`. # noqa: E501
|
|
155
|
+
|
|
156
|
+
:param type: The type of this MatchRequestOutputImageParamsCrop. # noqa: E501
|
|
157
|
+
:type type: int
|
|
158
|
+
"""
|
|
159
|
+
allowed_values = [0, 1, 2, 3, 4] # noqa: E501
|
|
160
|
+
if self.local_vars_configuration.client_side_validation and type not in allowed_values: # noqa: E501
|
|
161
|
+
raise ValueError(
|
|
162
|
+
"Invalid value for `type` ({0}), must be one of {1}" # noqa: E501
|
|
163
|
+
.format(type, allowed_values)
|
|
164
|
+
)
|
|
165
|
+
|
|
166
|
+
self._type = type
|
|
167
|
+
|
|
168
|
+
def to_dict(self):
|
|
169
|
+
"""Returns the model properties as a dict"""
|
|
170
|
+
result = {}
|
|
171
|
+
|
|
172
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
173
|
+
value = getattr(self, attr)
|
|
174
|
+
if isinstance(value, list):
|
|
175
|
+
result[attr] = list(map(
|
|
176
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
177
|
+
value
|
|
178
|
+
))
|
|
179
|
+
elif hasattr(value, "to_dict"):
|
|
180
|
+
result[attr] = value.to_dict()
|
|
181
|
+
elif isinstance(value, dict):
|
|
182
|
+
result[attr] = dict(map(
|
|
183
|
+
lambda item: (item[0], item[1].to_dict())
|
|
184
|
+
if hasattr(item[1], "to_dict") else item,
|
|
185
|
+
value.items()
|
|
186
|
+
))
|
|
187
|
+
else:
|
|
188
|
+
result[attr] = value
|
|
189
|
+
|
|
190
|
+
return result
|
|
191
|
+
|
|
192
|
+
def to_str(self):
|
|
193
|
+
"""Returns the string representation of the model"""
|
|
194
|
+
return pprint.pformat(self.to_dict())
|
|
195
|
+
|
|
196
|
+
def __repr__(self):
|
|
197
|
+
"""For `print` and `pprint`"""
|
|
198
|
+
return self.to_str()
|
|
199
|
+
|
|
200
|
+
def __eq__(self, other):
|
|
201
|
+
"""Returns true if both objects are equal"""
|
|
202
|
+
if not isinstance(other, MatchRequestOutputImageParamsCrop):
|
|
203
|
+
return False
|
|
204
|
+
|
|
205
|
+
return self.to_dict() == other.to_dict()
|
|
206
|
+
|
|
207
|
+
def __ne__(self, other):
|
|
208
|
+
"""Returns true if both objects are not equal"""
|
|
209
|
+
if not isinstance(other, MatchRequestOutputImageParamsCrop):
|
|
210
|
+
return True
|
|
211
|
+
|
|
212
|
+
return self.to_dict() != other.to_dict()
|