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.

Files changed (133) hide show
  1. regula/__init__.py +0 -0
  2. regula/facesdk/__init__.py +0 -0
  3. regula/facesdk/webclient/__init__.py +15 -0
  4. regula/facesdk/webclient/ext/__init__.py +5 -0
  5. regula/facesdk/webclient/ext/api/__init__.py +3 -0
  6. regula/facesdk/webclient/ext/api/group_api.py +36 -0
  7. regula/facesdk/webclient/ext/api/match_api.py +46 -0
  8. regula/facesdk/webclient/ext/api/person_api.py +46 -0
  9. regula/facesdk/webclient/ext/api/sdk.py +28 -0
  10. regula/facesdk/webclient/ext/api/search_api.py +17 -0
  11. regula/facesdk/webclient/ext/common.py +7 -0
  12. regula/facesdk/webclient/ext/models/__init__.py +6 -0
  13. regula/facesdk/webclient/ext/models/detect_request.py +32 -0
  14. regula/facesdk/webclient/ext/models/match_image.py +19 -0
  15. regula/facesdk/webclient/ext/models/match_request.py +34 -0
  16. regula/facesdk/webclient/gen/__init__.py +27 -0
  17. regula/facesdk/webclient/gen/api/__init__.py +3 -0
  18. regula/facesdk/webclient/gen/api/diagnostics_api.py +162 -0
  19. regula/facesdk/webclient/gen/api/group_api.py +1040 -0
  20. regula/facesdk/webclient/gen/api/healthcheck_api.py +283 -0
  21. regula/facesdk/webclient/gen/api/liveness_2_0_api.py +168 -0
  22. regula/facesdk/webclient/gen/api/liveness_api.py +424 -0
  23. regula/facesdk/webclient/gen/api/match_api.py +463 -0
  24. regula/facesdk/webclient/gen/api/person_api.py +1345 -0
  25. regula/facesdk/webclient/gen/api/search_api.py +177 -0
  26. regula/facesdk/webclient/gen/api_client.py +695 -0
  27. regula/facesdk/webclient/gen/apis/__init__.py +22 -0
  28. regula/facesdk/webclient/gen/configuration.py +446 -0
  29. regula/facesdk/webclient/gen/exceptions.py +159 -0
  30. regula/facesdk/webclient/gen/model/__init__.py +5 -0
  31. regula/facesdk/webclient/gen/model/add_image_to_person_request.py +205 -0
  32. regula/facesdk/webclient/gen/model/add_image_to_person_request_image.py +204 -0
  33. regula/facesdk/webclient/gen/model/add_image_to_person_response.py +262 -0
  34. regula/facesdk/webclient/gen/model/attribute_config.py +120 -0
  35. regula/facesdk/webclient/gen/model/attribute_config_list.py +92 -0
  36. regula/facesdk/webclient/gen/model/crop.py +208 -0
  37. regula/facesdk/webclient/gen/model/detect_request.py +204 -0
  38. regula/facesdk/webclient/gen/model/detect_request_attributes.py +120 -0
  39. regula/facesdk/webclient/gen/model/detect_response.py +147 -0
  40. regula/facesdk/webclient/gen/model/detect_response_all_of.py +120 -0
  41. regula/facesdk/webclient/gen/model/detect_result.py +231 -0
  42. regula/facesdk/webclient/gen/model/detection.py +258 -0
  43. regula/facesdk/webclient/gen/model/detection_attributes.py +148 -0
  44. regula/facesdk/webclient/gen/model/detection_face.py +260 -0
  45. regula/facesdk/webclient/gen/model/detection_quality.py +234 -0
  46. regula/facesdk/webclient/gen/model/device_info.py +231 -0
  47. regula/facesdk/webclient/gen/model/face_align_type_quality.py +109 -0
  48. regula/facesdk/webclient/gen/model/face_attribute.py +133 -0
  49. regula/facesdk/webclient/gen/model/face_image_quality_align_type.py +109 -0
  50. regula/facesdk/webclient/gen/model/face_image_quality_groups.py +118 -0
  51. regula/facesdk/webclient/gen/model/face_image_quality_groups_strings.py +118 -0
  52. regula/facesdk/webclient/gen/model/face_image_quality_status.py +103 -0
  53. regula/facesdk/webclient/gen/model/face_quality_config_name.py +238 -0
  54. regula/facesdk/webclient/gen/model/face_quality_scenarios.py +121 -0
  55. regula/facesdk/webclient/gen/model/face_quality_status.py +103 -0
  56. regula/facesdk/webclient/gen/model/face_rectangular.py +92 -0
  57. regula/facesdk/webclient/gen/model/face_sdk_result.py +121 -0
  58. regula/facesdk/webclient/gen/model/face_sdk_result_code.py +217 -0
  59. regula/facesdk/webclient/gen/model/faces_response.py +286 -0
  60. regula/facesdk/webclient/gen/model/faces_response_all_of.py +148 -0
  61. regula/facesdk/webclient/gen/model/filter_op.py +100 -0
  62. regula/facesdk/webclient/gen/model/filter_search_request.py +176 -0
  63. regula/facesdk/webclient/gen/model/group.py +206 -0
  64. regula/facesdk/webclient/gen/model/group_all_of.py +150 -0
  65. regula/facesdk/webclient/gen/model/group_page.py +178 -0
  66. regula/facesdk/webclient/gen/model/group_page_all_of.py +122 -0
  67. regula/facesdk/webclient/gen/model/group_response.py +150 -0
  68. regula/facesdk/webclient/gen/model/group_to_create.py +180 -0
  69. regula/facesdk/webclient/gen/model/image.py +290 -0
  70. regula/facesdk/webclient/gen/model/image_fields.py +258 -0
  71. regula/facesdk/webclient/gen/model/image_fields_image.py +204 -0
  72. regula/facesdk/webclient/gen/model/image_page.py +176 -0
  73. regula/facesdk/webclient/gen/model/image_page_all_of.py +120 -0
  74. regula/facesdk/webclient/gen/model/image_source.py +115 -0
  75. regula/facesdk/webclient/gen/model/liveness_transaction.py +334 -0
  76. regula/facesdk/webclient/gen/model/liveness_type.py +100 -0
  77. regula/facesdk/webclient/gen/model/match_and_search_request.py +178 -0
  78. regula/facesdk/webclient/gen/model/match_and_search_request_all_of.py +178 -0
  79. regula/facesdk/webclient/gen/model/match_and_search_request_all_of_images.py +148 -0
  80. regula/facesdk/webclient/gen/model/match_and_search_response.py +233 -0
  81. regula/facesdk/webclient/gen/model/match_and_search_response_all_of.py +206 -0
  82. regula/facesdk/webclient/gen/model/match_and_search_response_all_of_detections.py +176 -0
  83. regula/facesdk/webclient/gen/model/match_image.py +205 -0
  84. regula/facesdk/webclient/gen/model/match_image_detection.py +178 -0
  85. regula/facesdk/webclient/gen/model/match_image_result.py +316 -0
  86. regula/facesdk/webclient/gen/model/match_request.py +204 -0
  87. regula/facesdk/webclient/gen/model/match_request_output_image_params.py +148 -0
  88. regula/facesdk/webclient/gen/model/match_request_output_image_params_crop.py +212 -0
  89. regula/facesdk/webclient/gen/model/match_response.py +205 -0
  90. regula/facesdk/webclient/gen/model/match_response_all_of.py +178 -0
  91. regula/facesdk/webclient/gen/model/operation_log.py +206 -0
  92. regula/facesdk/webclient/gen/model/output_image_params.py +146 -0
  93. regula/facesdk/webclient/gen/model/page.py +150 -0
  94. regula/facesdk/webclient/gen/model/person.py +318 -0
  95. regula/facesdk/webclient/gen/model/person_all_of.py +206 -0
  96. regula/facesdk/webclient/gen/model/person_created_response.py +178 -0
  97. regula/facesdk/webclient/gen/model/person_fields.py +234 -0
  98. regula/facesdk/webclient/gen/model/person_to_update_fields.py +206 -0
  99. regula/facesdk/webclient/gen/model/person_with_images.py +346 -0
  100. regula/facesdk/webclient/gen/model/person_with_images_all_of.py +122 -0
  101. regula/facesdk/webclient/gen/model/persons_page.py +176 -0
  102. regula/facesdk/webclient/gen/model/persons_page_all_of.py +120 -0
  103. regula/facesdk/webclient/gen/model/process_param.py +226 -0
  104. regula/facesdk/webclient/gen/model/process_param_attributes.py +120 -0
  105. regula/facesdk/webclient/gen/model/quality_config.py +154 -0
  106. regula/facesdk/webclient/gen/model/quality_config_list.py +92 -0
  107. regula/facesdk/webclient/gen/model/quality_detail.py +234 -0
  108. regula/facesdk/webclient/gen/model/quality_details_groups.py +202 -0
  109. regula/facesdk/webclient/gen/model/quality_request.py +146 -0
  110. regula/facesdk/webclient/gen/model/recognize_image.py +346 -0
  111. regula/facesdk/webclient/gen/model/recognize_image_all_of.py +150 -0
  112. regula/facesdk/webclient/gen/model/resize_options.py +178 -0
  113. regula/facesdk/webclient/gen/model/rgb.py +92 -0
  114. regula/facesdk/webclient/gen/model/search_bad_params.py +172 -0
  115. regula/facesdk/webclient/gen/model/search_detection.py +398 -0
  116. regula/facesdk/webclient/gen/model/search_parameters.py +174 -0
  117. regula/facesdk/webclient/gen/model/search_parameters_create_person.py +177 -0
  118. regula/facesdk/webclient/gen/model/search_person.py +372 -0
  119. regula/facesdk/webclient/gen/model/search_person_all_of.py +148 -0
  120. regula/facesdk/webclient/gen/model/search_request.py +338 -0
  121. regula/facesdk/webclient/gen/model/search_request_all_of.py +178 -0
  122. regula/facesdk/webclient/gen/model/search_result.py +313 -0
  123. regula/facesdk/webclient/gen/model/search_result_all_of.py +122 -0
  124. regula/facesdk/webclient/gen/model/transaction_config.py +92 -0
  125. regula/facesdk/webclient/gen/model/transaction_info.py +344 -0
  126. regula/facesdk/webclient/gen/model/update_group.py +150 -0
  127. regula/facesdk/webclient/gen/model_utils.py +2037 -0
  128. regula/facesdk/webclient/gen/models/__init__.py +96 -0
  129. regula/facesdk/webclient/gen/rest.py +346 -0
  130. regula_facesdk_webclient-6.4.198.dev0.dist-info/METADATA +73 -0
  131. regula_facesdk_webclient-6.4.198.dev0.dist-info/RECORD +133 -0
  132. regula_facesdk_webclient-6.4.198.dev0.dist-info/WHEEL +5 -0
  133. regula_facesdk_webclient-6.4.198.dev0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,258 @@
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 Detection(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
+ 'crop': 'str',
37
+ 'attributes': 'DetectionAttributes',
38
+ 'landmarks': '[[int]]',
39
+ 'quality': 'DetectionQuality',
40
+ 'roi': 'FaceRectangular',
41
+ 'thumbnail': 'str',
42
+ }
43
+
44
+ attribute_map = {
45
+ 'crop': 'crop',
46
+ 'attributes': 'attributes',
47
+ 'landmarks': 'landmarks',
48
+ 'quality': 'quality',
49
+ 'roi': 'roi',
50
+ 'thumbnail': 'thumbnail',
51
+ }
52
+
53
+ def __init__(self, crop=None, attributes=None, landmarks=None, quality=None, roi=None, thumbnail=None, local_vars_configuration=None): # noqa: E501
54
+ """Detection - a model defined in OpenAPI""" # noqa: E501
55
+ if local_vars_configuration is None:
56
+ local_vars_configuration = Configuration()
57
+ self.local_vars_configuration = local_vars_configuration
58
+
59
+ self._crop = None
60
+ self._attributes = None
61
+ self._landmarks = None
62
+ self._quality = None
63
+ self._roi = None
64
+ self._thumbnail = None
65
+ self.discriminator = None
66
+
67
+ if crop is not None:
68
+ self.crop = crop
69
+ if attributes is not None:
70
+ self.attributes = attributes
71
+ self.landmarks = landmarks
72
+ if quality is not None:
73
+ self.quality = quality
74
+ self.roi = roi
75
+ if thumbnail is not None:
76
+ self.thumbnail = thumbnail
77
+
78
+ @property
79
+ def crop(self):
80
+ """Gets the crop of this Detection. # noqa: E501
81
+
82
+ Base64-encoded image. # noqa: E501
83
+
84
+ :return: The crop of this Detection. # noqa: E501
85
+ :rtype: str
86
+ """
87
+ return self._crop
88
+
89
+ @crop.setter
90
+ def crop(self, crop):
91
+ """Sets the crop of this Detection.
92
+
93
+ Base64-encoded image. # noqa: E501
94
+
95
+ :param crop: The crop of this Detection. # noqa: E501
96
+ :type crop: str
97
+ """
98
+
99
+ self._crop = crop
100
+
101
+ @property
102
+ def attributes(self):
103
+ """Gets the attributes of this Detection. # noqa: E501
104
+
105
+
106
+ :return: The attributes of this Detection. # noqa: E501
107
+ :rtype: DetectionAttributes
108
+ """
109
+ return self._attributes
110
+
111
+ @attributes.setter
112
+ def attributes(self, attributes):
113
+ """Sets the attributes of this Detection.
114
+
115
+
116
+ :param attributes: The attributes of this Detection. # noqa: E501
117
+ :type attributes: DetectionAttributes
118
+ """
119
+
120
+ self._attributes = attributes
121
+
122
+ @property
123
+ def landmarks(self):
124
+ """Gets the landmarks of this Detection. # noqa: E501
125
+
126
+ Absolute coordinates (x,y) of five points of each detected face: left eye, right eye, nose, left point of lips, right point of lips. # noqa: E501
127
+
128
+ :return: The landmarks of this Detection. # noqa: E501
129
+ :rtype: [[int]]
130
+ """
131
+ return self._landmarks
132
+
133
+ @landmarks.setter
134
+ def landmarks(self, landmarks):
135
+ """Sets the landmarks of this Detection.
136
+
137
+ Absolute coordinates (x,y) of five points of each detected face: left eye, right eye, nose, left point of lips, right point of lips. # noqa: E501
138
+
139
+ :param landmarks: The landmarks of this Detection. # noqa: E501
140
+ :type landmarks: [[int]]
141
+ """
142
+ if self.local_vars_configuration.client_side_validation and landmarks is None: # noqa: E501
143
+ raise ValueError("Invalid value for `landmarks`, must not be `None`") # noqa: E501
144
+
145
+ self._landmarks = landmarks
146
+
147
+ @property
148
+ def quality(self):
149
+ """Gets the quality of this Detection. # noqa: E501
150
+
151
+
152
+ :return: The quality of this Detection. # noqa: E501
153
+ :rtype: DetectionQuality
154
+ """
155
+ return self._quality
156
+
157
+ @quality.setter
158
+ def quality(self, quality):
159
+ """Sets the quality of this Detection.
160
+
161
+
162
+ :param quality: The quality of this Detection. # noqa: E501
163
+ :type quality: DetectionQuality
164
+ """
165
+
166
+ self._quality = quality
167
+
168
+ @property
169
+ def roi(self):
170
+ """Gets the roi of this Detection. # noqa: E501
171
+
172
+
173
+ :return: The roi of this Detection. # noqa: E501
174
+ :rtype: FaceRectangular
175
+ """
176
+ return self._roi
177
+
178
+ @roi.setter
179
+ def roi(self, roi):
180
+ """Sets the roi of this Detection.
181
+
182
+
183
+ :param roi: The roi of this Detection. # noqa: E501
184
+ :type roi: FaceRectangular
185
+ """
186
+ if self.local_vars_configuration.client_side_validation and roi is None: # noqa: E501
187
+ raise ValueError("Invalid value for `roi`, must not be `None`") # noqa: E501
188
+
189
+ self._roi = roi
190
+
191
+ @property
192
+ def thumbnail(self):
193
+ """Gets the thumbnail of this Detection. # noqa: E501
194
+
195
+ See `crop` instead. # noqa: E501
196
+
197
+ :return: The thumbnail of this Detection. # noqa: E501
198
+ :rtype: str
199
+ """
200
+ return self._thumbnail
201
+
202
+ @thumbnail.setter
203
+ def thumbnail(self, thumbnail):
204
+ """Sets the thumbnail of this Detection.
205
+
206
+ See `crop` instead. # noqa: E501
207
+
208
+ :param thumbnail: The thumbnail of this Detection. # noqa: E501
209
+ :type thumbnail: str
210
+ """
211
+
212
+ self._thumbnail = thumbnail
213
+
214
+ def to_dict(self):
215
+ """Returns the model properties as a dict"""
216
+ result = {}
217
+
218
+ for attr, _ in six.iteritems(self.openapi_types):
219
+ value = getattr(self, attr)
220
+ if isinstance(value, list):
221
+ result[attr] = list(map(
222
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
223
+ value
224
+ ))
225
+ elif hasattr(value, "to_dict"):
226
+ result[attr] = value.to_dict()
227
+ elif isinstance(value, dict):
228
+ result[attr] = dict(map(
229
+ lambda item: (item[0], item[1].to_dict())
230
+ if hasattr(item[1], "to_dict") else item,
231
+ value.items()
232
+ ))
233
+ else:
234
+ result[attr] = value
235
+
236
+ return result
237
+
238
+ def to_str(self):
239
+ """Returns the string representation of the model"""
240
+ return pprint.pformat(self.to_dict())
241
+
242
+ def __repr__(self):
243
+ """For `print` and `pprint`"""
244
+ return self.to_str()
245
+
246
+ def __eq__(self, other):
247
+ """Returns true if both objects are equal"""
248
+ if not isinstance(other, Detection):
249
+ return False
250
+
251
+ return self.to_dict() == other.to_dict()
252
+
253
+ def __ne__(self, other):
254
+ """Returns true if both objects are not equal"""
255
+ if not isinstance(other, Detection):
256
+ return True
257
+
258
+ 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 DetectionAttributes(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
+ 'details': '[{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]',
37
+ 'elapsed_time': 'float',
38
+ }
39
+
40
+ attribute_map = {
41
+ 'details': 'details',
42
+ 'elapsed_time': 'elapsedTime',
43
+ }
44
+
45
+ def __init__(self, details=None, elapsed_time=None, local_vars_configuration=None): # noqa: E501
46
+ """DetectionAttributes - 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._details = None
52
+ self._elapsed_time = None
53
+ self.discriminator = None
54
+
55
+ if details is not None:
56
+ self.details = details
57
+ if elapsed_time is not None:
58
+ self.elapsed_time = elapsed_time
59
+
60
+ @property
61
+ def details(self):
62
+ """Gets the details of this DetectionAttributes. # noqa: E501
63
+
64
+
65
+ :return: The details of this DetectionAttributes. # noqa: E501
66
+ :rtype: [{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]
67
+ """
68
+ return self._details
69
+
70
+ @details.setter
71
+ def details(self, details):
72
+ """Sets the details of this DetectionAttributes.
73
+
74
+
75
+ :param details: The details of this DetectionAttributes. # noqa: E501
76
+ :type details: [{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]
77
+ """
78
+
79
+ self._details = details
80
+
81
+ @property
82
+ def elapsed_time(self):
83
+ """Gets the elapsed_time of this DetectionAttributes. # noqa: E501
84
+
85
+ The elapsed time for attribute detection. # noqa: E501
86
+
87
+ :return: The elapsed_time of this DetectionAttributes. # noqa: E501
88
+ :rtype: float
89
+ """
90
+ return self._elapsed_time
91
+
92
+ @elapsed_time.setter
93
+ def elapsed_time(self, elapsed_time):
94
+ """Sets the elapsed_time of this DetectionAttributes.
95
+
96
+ The elapsed time for attribute detection. # noqa: E501
97
+
98
+ :param elapsed_time: The elapsed_time of this DetectionAttributes. # noqa: E501
99
+ :type elapsed_time: float
100
+ """
101
+
102
+ self._elapsed_time = elapsed_time
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, DetectionAttributes):
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, DetectionAttributes):
146
+ return True
147
+
148
+ return self.to_dict() != other.to_dict()
@@ -0,0 +1,260 @@
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 DetectionFace(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
+ 'face_index': 'float',
37
+ 'landmarks': '[[float]]',
38
+ 'rotation_angle': 'float',
39
+ 'roi': 'FaceRectangular',
40
+ 'thumbnail': 'str',
41
+ 'crop': 'str',
42
+ }
43
+
44
+ attribute_map = {
45
+ 'face_index': 'faceIndex',
46
+ 'landmarks': 'landmarks',
47
+ 'rotation_angle': 'rotationAngle',
48
+ 'roi': 'roi',
49
+ 'thumbnail': 'thumbnail',
50
+ 'crop': 'crop',
51
+ }
52
+
53
+ def __init__(self, face_index=None, landmarks=None, rotation_angle=None, roi=None, thumbnail=None, crop=None, local_vars_configuration=None): # noqa: E501
54
+ """DetectionFace - a model defined in OpenAPI""" # noqa: E501
55
+ if local_vars_configuration is None:
56
+ local_vars_configuration = Configuration()
57
+ self.local_vars_configuration = local_vars_configuration
58
+
59
+ self._face_index = None
60
+ self._landmarks = None
61
+ self._rotation_angle = None
62
+ self._roi = None
63
+ self._thumbnail = None
64
+ self._crop = None
65
+ self.discriminator = None
66
+
67
+ if face_index is not None:
68
+ self.face_index = face_index
69
+ if landmarks is not None:
70
+ self.landmarks = landmarks
71
+ if rotation_angle is not None:
72
+ self.rotation_angle = rotation_angle
73
+ if roi is not None:
74
+ self.roi = roi
75
+ if thumbnail is not None:
76
+ self.thumbnail = thumbnail
77
+ if crop is not None:
78
+ self.crop = crop
79
+
80
+ @property
81
+ def face_index(self):
82
+ """Gets the face_index of this DetectionFace. # noqa: E501
83
+
84
+ The detected face index number. # noqa: E501
85
+
86
+ :return: The face_index of this DetectionFace. # noqa: E501
87
+ :rtype: float
88
+ """
89
+ return self._face_index
90
+
91
+ @face_index.setter
92
+ def face_index(self, face_index):
93
+ """Sets the face_index of this DetectionFace.
94
+
95
+ The detected face index number. # noqa: E501
96
+
97
+ :param face_index: The face_index of this DetectionFace. # noqa: E501
98
+ :type face_index: float
99
+ """
100
+
101
+ self._face_index = face_index
102
+
103
+ @property
104
+ def landmarks(self):
105
+ """Gets the landmarks of this DetectionFace. # noqa: E501
106
+
107
+ Absolute coordinates (x,y) of five points of each detected face: left eye, right eye, nose, left point of lips, right point of lips. # noqa: E501
108
+
109
+ :return: The landmarks of this DetectionFace. # noqa: E501
110
+ :rtype: [[float]]
111
+ """
112
+ return self._landmarks
113
+
114
+ @landmarks.setter
115
+ def landmarks(self, landmarks):
116
+ """Sets the landmarks of this DetectionFace.
117
+
118
+ Absolute coordinates (x,y) of five points of each detected face: left eye, right eye, nose, left point of lips, right point of lips. # noqa: E501
119
+
120
+ :param landmarks: The landmarks of this DetectionFace. # noqa: E501
121
+ :type landmarks: [[float]]
122
+ """
123
+
124
+ self._landmarks = landmarks
125
+
126
+ @property
127
+ def rotation_angle(self):
128
+ """Gets the rotation_angle of this DetectionFace. # noqa: E501
129
+
130
+ Angle of rotation of the face from the vertical axis, degrees. # noqa: E501
131
+
132
+ :return: The rotation_angle of this DetectionFace. # noqa: E501
133
+ :rtype: float
134
+ """
135
+ return self._rotation_angle
136
+
137
+ @rotation_angle.setter
138
+ def rotation_angle(self, rotation_angle):
139
+ """Sets the rotation_angle of this DetectionFace.
140
+
141
+ Angle of rotation of the face from the vertical axis, degrees. # noqa: E501
142
+
143
+ :param rotation_angle: The rotation_angle of this DetectionFace. # noqa: E501
144
+ :type rotation_angle: float
145
+ """
146
+
147
+ self._rotation_angle = rotation_angle
148
+
149
+ @property
150
+ def roi(self):
151
+ """Gets the roi of this DetectionFace. # noqa: E501
152
+
153
+
154
+ :return: The roi of this DetectionFace. # noqa: E501
155
+ :rtype: FaceRectangular
156
+ """
157
+ return self._roi
158
+
159
+ @roi.setter
160
+ def roi(self, roi):
161
+ """Sets the roi of this DetectionFace.
162
+
163
+
164
+ :param roi: The roi of this DetectionFace. # noqa: E501
165
+ :type roi: FaceRectangular
166
+ """
167
+
168
+ self._roi = roi
169
+
170
+ @property
171
+ def thumbnail(self):
172
+ """Gets the thumbnail of this DetectionFace. # noqa: E501
173
+
174
+ See `crop` instead. # noqa: E501
175
+
176
+ :return: The thumbnail of this DetectionFace. # noqa: E501
177
+ :rtype: str
178
+ """
179
+ return self._thumbnail
180
+
181
+ @thumbnail.setter
182
+ def thumbnail(self, thumbnail):
183
+ """Sets the thumbnail of this DetectionFace.
184
+
185
+ See `crop` instead. # noqa: E501
186
+
187
+ :param thumbnail: The thumbnail of this DetectionFace. # noqa: E501
188
+ :type thumbnail: str
189
+ """
190
+
191
+ self._thumbnail = thumbnail
192
+
193
+ @property
194
+ def crop(self):
195
+ """Gets the crop of this DetectionFace. # noqa: E501
196
+
197
+ Base64-encoded aligned and cropped portrait. # noqa: E501
198
+
199
+ :return: The crop of this DetectionFace. # noqa: E501
200
+ :rtype: str
201
+ """
202
+ return self._crop
203
+
204
+ @crop.setter
205
+ def crop(self, crop):
206
+ """Sets the crop of this DetectionFace.
207
+
208
+ Base64-encoded aligned and cropped portrait. # noqa: E501
209
+
210
+ :param crop: The crop of this DetectionFace. # noqa: E501
211
+ :type crop: str
212
+ """
213
+
214
+ self._crop = crop
215
+
216
+ def to_dict(self):
217
+ """Returns the model properties as a dict"""
218
+ result = {}
219
+
220
+ for attr, _ in six.iteritems(self.openapi_types):
221
+ value = getattr(self, attr)
222
+ if isinstance(value, list):
223
+ result[attr] = list(map(
224
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
225
+ value
226
+ ))
227
+ elif hasattr(value, "to_dict"):
228
+ result[attr] = value.to_dict()
229
+ elif isinstance(value, dict):
230
+ result[attr] = dict(map(
231
+ lambda item: (item[0], item[1].to_dict())
232
+ if hasattr(item[1], "to_dict") else item,
233
+ value.items()
234
+ ))
235
+ else:
236
+ result[attr] = value
237
+
238
+ return result
239
+
240
+ def to_str(self):
241
+ """Returns the string representation of the model"""
242
+ return pprint.pformat(self.to_dict())
243
+
244
+ def __repr__(self):
245
+ """For `print` and `pprint`"""
246
+ return self.to_str()
247
+
248
+ def __eq__(self, other):
249
+ """Returns true if both objects are equal"""
250
+ if not isinstance(other, DetectionFace):
251
+ return False
252
+
253
+ return self.to_dict() == other.to_dict()
254
+
255
+ def __ne__(self, other):
256
+ """Returns true if both objects are not equal"""
257
+ if not isinstance(other, DetectionFace):
258
+ return True
259
+
260
+ return self.to_dict() != other.to_dict()