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,217 @@
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 FaceSDKResultCode(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
+ FACER_OK = int(0)
30
+
31
+ ""
32
+ FR_IMAGE_EMPTY = int(1)
33
+
34
+ ""
35
+ FR_FACE_NOT_DETECTED = int(2)
36
+
37
+ ""
38
+ FR_LANDMARKS_NOT_DETECTED = int(3)
39
+
40
+ ""
41
+ FR_FACE_ALIGHNER_FAILED = int(4)
42
+
43
+ ""
44
+ FR_DESCRIPTOR_EXTRACTOR_ERROR = int(5)
45
+
46
+ ""
47
+ FR_IMAGE_DECODE_ERROR = int(6)
48
+
49
+ ""
50
+ FR_INTERNAL_ERROR = int(7)
51
+
52
+ ""
53
+ FACER_CONFIG_ERROR = int(199)
54
+
55
+ ""
56
+ FACER_NO_LICENSE = int(200)
57
+
58
+ ""
59
+ FACER_IS_NOT_INITIALIZED = int(201)
60
+
61
+ ""
62
+ FACER_COMMAND_IS_NOT_SUPPORTED = int(202)
63
+
64
+ ""
65
+ FACER_COMMAND_PARAMS_READ_ERROR = int(203)
66
+
67
+ ""
68
+ FACER_LESS_THAN_TWO_IMAGES_IN_REQUEST = int(224)
69
+
70
+ ""
71
+ FACER_VIDEO_DECODE_ERROR = int(227)
72
+
73
+ ""
74
+ FACER_NOT_ENOUGH_FRAMES = int(228)
75
+
76
+ ""
77
+ FACER_OUTPUT_IS_NOT_DEFINED = int(229)
78
+
79
+ ""
80
+ FACER_CLOSED_EYES_DETECTED = int(230)
81
+
82
+ ""
83
+ FACER_LOW_QUALITY = int(231)
84
+
85
+ ""
86
+ FACER_HIGH_ASYMMETRY = int(232)
87
+
88
+ ""
89
+ FACER_FACE_OVER_EMOTIONAL = int(233)
90
+
91
+ ""
92
+ FACER_SUNGLASSES_DETECTED = int(234)
93
+
94
+ ""
95
+ FACER_SMALL_AGE = int(235)
96
+
97
+ ""
98
+ FACER_HEADDRESS_DETECTED = int(236)
99
+
100
+ ""
101
+ FACER_FACES_NOT_MATCHED = int(237)
102
+
103
+ ""
104
+ FACER_IMAGES_COUNT_LIMIT_EXCEEDED = int(238)
105
+
106
+ ""
107
+ FACER_MEDICINE_MASK_DETECTED = int(239)
108
+
109
+ ""
110
+ FACER_OCCLUSION_DETECTED = int(240)
111
+
112
+ ""
113
+ FACER_FOREHEAD_GLASSES_DETECTED = int(242)
114
+
115
+ ""
116
+ FACER_MOUTH_OPENED = int(243)
117
+
118
+ ""
119
+ FACER_ART_MASK_DETECTED = int(244)
120
+
121
+ ""
122
+ FACER_ELECTRONIC_DEVICE_DETECTED = int(245)
123
+
124
+ ""
125
+ FACER_TRACK_BREAK = int(246)
126
+
127
+ ""
128
+ FACER_WRONG_GEO = int(247)
129
+
130
+ ""
131
+ FACER_WRONG_OF = int(248)
132
+
133
+ ""
134
+ FACER_WRONG_VIEW = int(249)
135
+
136
+ ""
137
+ FACER_TIMEOUT_LIVENESS_TRANSACTION = int(250)
138
+
139
+ ""
140
+ FACER_FAILED_LIVENESS_TRANSACTION = int(251)
141
+
142
+ ""
143
+ FACER_ABORTED_LIVENESS_TRANSACTION = int(252)
144
+
145
+ ""
146
+ FACER_GENERAL_ERROR = int(253)
147
+
148
+ ""
149
+ FACER_PASSIVE_LIVENESS_FAIL = int(254)
150
+
151
+ allowable_values = [FACER_OK, FR_IMAGE_EMPTY, FR_FACE_NOT_DETECTED, FR_LANDMARKS_NOT_DETECTED, FR_FACE_ALIGHNER_FAILED, FR_DESCRIPTOR_EXTRACTOR_ERROR, FR_IMAGE_DECODE_ERROR, FR_INTERNAL_ERROR, FACER_CONFIG_ERROR, FACER_NO_LICENSE, FACER_IS_NOT_INITIALIZED, FACER_COMMAND_IS_NOT_SUPPORTED, FACER_COMMAND_PARAMS_READ_ERROR, FACER_LESS_THAN_TWO_IMAGES_IN_REQUEST, FACER_VIDEO_DECODE_ERROR, FACER_NOT_ENOUGH_FRAMES, FACER_OUTPUT_IS_NOT_DEFINED, FACER_CLOSED_EYES_DETECTED, FACER_LOW_QUALITY, FACER_HIGH_ASYMMETRY, FACER_FACE_OVER_EMOTIONAL, FACER_SUNGLASSES_DETECTED, FACER_SMALL_AGE, FACER_HEADDRESS_DETECTED, FACER_FACES_NOT_MATCHED, FACER_IMAGES_COUNT_LIMIT_EXCEEDED, FACER_MEDICINE_MASK_DETECTED, FACER_OCCLUSION_DETECTED, FACER_FOREHEAD_GLASSES_DETECTED, FACER_MOUTH_OPENED, FACER_ART_MASK_DETECTED, FACER_ELECTRONIC_DEVICE_DETECTED, FACER_TRACK_BREAK, FACER_WRONG_GEO, FACER_WRONG_OF, FACER_WRONG_VIEW, FACER_TIMEOUT_LIVENESS_TRANSACTION, FACER_FAILED_LIVENESS_TRANSACTION, FACER_ABORTED_LIVENESS_TRANSACTION, FACER_GENERAL_ERROR, FACER_PASSIVE_LIVENESS_FAIL] # noqa: E501
152
+
153
+ """
154
+ Attributes:
155
+ openapi_types (dict): The key is attribute name
156
+ and the value is attribute type.
157
+ attribute_map (dict): The key is attribute name
158
+ and the value is json key in definition.
159
+ """
160
+ openapi_types = {
161
+ }
162
+
163
+ attribute_map = {
164
+ }
165
+
166
+ def __init__(self, local_vars_configuration=None): # noqa: E501
167
+ """FaceSDKResultCode - a model defined in OpenAPI""" # noqa: E501
168
+ if local_vars_configuration is None:
169
+ local_vars_configuration = Configuration()
170
+ self.local_vars_configuration = local_vars_configuration
171
+ self.discriminator = None
172
+
173
+ def to_dict(self):
174
+ """Returns the model properties as a dict"""
175
+ result = {}
176
+
177
+ for attr, _ in six.iteritems(self.openapi_types):
178
+ value = getattr(self, attr)
179
+ if isinstance(value, list):
180
+ result[attr] = list(map(
181
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
182
+ value
183
+ ))
184
+ elif hasattr(value, "to_dict"):
185
+ result[attr] = value.to_dict()
186
+ elif isinstance(value, dict):
187
+ result[attr] = dict(map(
188
+ lambda item: (item[0], item[1].to_dict())
189
+ if hasattr(item[1], "to_dict") else item,
190
+ value.items()
191
+ ))
192
+ else:
193
+ result[attr] = value
194
+
195
+ return result
196
+
197
+ def to_str(self):
198
+ """Returns the string representation of the model"""
199
+ return pprint.pformat(self.to_dict())
200
+
201
+ def __repr__(self):
202
+ """For `print` and `pprint`"""
203
+ return self.to_str()
204
+
205
+ def __eq__(self, other):
206
+ """Returns true if both objects are equal"""
207
+ if not isinstance(other, FaceSDKResultCode):
208
+ return False
209
+
210
+ return self.to_dict() == other.to_dict()
211
+
212
+ def __ne__(self, other):
213
+ """Returns true if both objects are not equal"""
214
+ if not isinstance(other, FaceSDKResultCode):
215
+ return True
216
+
217
+ return self.to_dict() != other.to_dict()
@@ -0,0 +1,286 @@
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 FacesResponse(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
+ 'persons': '[PersonWithImages]',
43
+ }
44
+
45
+ attribute_map = {
46
+ 'face_index': 'faceIndex',
47
+ 'landmarks': 'landmarks',
48
+ 'rotation_angle': 'rotationAngle',
49
+ 'roi': 'roi',
50
+ 'thumbnail': 'thumbnail',
51
+ 'crop': 'crop',
52
+ 'persons': 'persons',
53
+ }
54
+
55
+ def __init__(self, face_index=None, landmarks=None, rotation_angle=None, roi=None, thumbnail=None, crop=None, persons=None, local_vars_configuration=None): # noqa: E501
56
+ """FacesResponse - a model defined in OpenAPI""" # noqa: E501
57
+ if local_vars_configuration is None:
58
+ local_vars_configuration = Configuration()
59
+ self.local_vars_configuration = local_vars_configuration
60
+
61
+ self._face_index = None
62
+ self._landmarks = None
63
+ self._rotation_angle = None
64
+ self._roi = None
65
+ self._thumbnail = None
66
+ self._crop = None
67
+ self._persons = None
68
+ self.discriminator = None
69
+
70
+ if face_index is not None:
71
+ self.face_index = face_index
72
+ if landmarks is not None:
73
+ self.landmarks = landmarks
74
+ if rotation_angle is not None:
75
+ self.rotation_angle = rotation_angle
76
+ if roi is not None:
77
+ self.roi = roi
78
+ if thumbnail is not None:
79
+ self.thumbnail = thumbnail
80
+ if crop is not None:
81
+ self.crop = crop
82
+ if persons is not None:
83
+ self.persons = persons
84
+
85
+ @property
86
+ def face_index(self):
87
+ """Gets the face_index of this FacesResponse. # noqa: E501
88
+
89
+ The detected face index number. # noqa: E501
90
+
91
+ :return: The face_index of this FacesResponse. # noqa: E501
92
+ :rtype: float
93
+ """
94
+ return self._face_index
95
+
96
+ @face_index.setter
97
+ def face_index(self, face_index):
98
+ """Sets the face_index of this FacesResponse.
99
+
100
+ The detected face index number. # noqa: E501
101
+
102
+ :param face_index: The face_index of this FacesResponse. # noqa: E501
103
+ :type face_index: float
104
+ """
105
+
106
+ self._face_index = face_index
107
+
108
+ @property
109
+ def landmarks(self):
110
+ """Gets the landmarks of this FacesResponse. # noqa: E501
111
+
112
+ 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
113
+
114
+ :return: The landmarks of this FacesResponse. # noqa: E501
115
+ :rtype: [[float]]
116
+ """
117
+ return self._landmarks
118
+
119
+ @landmarks.setter
120
+ def landmarks(self, landmarks):
121
+ """Sets the landmarks of this FacesResponse.
122
+
123
+ 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
124
+
125
+ :param landmarks: The landmarks of this FacesResponse. # noqa: E501
126
+ :type landmarks: [[float]]
127
+ """
128
+
129
+ self._landmarks = landmarks
130
+
131
+ @property
132
+ def rotation_angle(self):
133
+ """Gets the rotation_angle of this FacesResponse. # noqa: E501
134
+
135
+
136
+ :return: The rotation_angle of this FacesResponse. # noqa: E501
137
+ :rtype: float
138
+ """
139
+ return self._rotation_angle
140
+
141
+ @rotation_angle.setter
142
+ def rotation_angle(self, rotation_angle):
143
+ """Sets the rotation_angle of this FacesResponse.
144
+
145
+
146
+ :param rotation_angle: The rotation_angle of this FacesResponse. # noqa: E501
147
+ :type rotation_angle: float
148
+ """
149
+
150
+ self._rotation_angle = rotation_angle
151
+
152
+ @property
153
+ def roi(self):
154
+ """Gets the roi of this FacesResponse. # noqa: E501
155
+
156
+
157
+ :return: The roi of this FacesResponse. # noqa: E501
158
+ :rtype: FaceRectangular
159
+ """
160
+ return self._roi
161
+
162
+ @roi.setter
163
+ def roi(self, roi):
164
+ """Sets the roi of this FacesResponse.
165
+
166
+
167
+ :param roi: The roi of this FacesResponse. # noqa: E501
168
+ :type roi: FaceRectangular
169
+ """
170
+
171
+ self._roi = roi
172
+
173
+ @property
174
+ def thumbnail(self):
175
+ """Gets the thumbnail of this FacesResponse. # noqa: E501
176
+
177
+ See `crop` instead. # noqa: E501
178
+
179
+ :return: The thumbnail of this FacesResponse. # noqa: E501
180
+ :rtype: str
181
+ """
182
+ return self._thumbnail
183
+
184
+ @thumbnail.setter
185
+ def thumbnail(self, thumbnail):
186
+ """Sets the thumbnail of this FacesResponse.
187
+
188
+ See `crop` instead. # noqa: E501
189
+
190
+ :param thumbnail: The thumbnail of this FacesResponse. # noqa: E501
191
+ :type thumbnail: str
192
+ """
193
+
194
+ self._thumbnail = thumbnail
195
+
196
+ @property
197
+ def crop(self):
198
+ """Gets the crop of this FacesResponse. # noqa: E501
199
+
200
+ Base64-encoded aligned and cropped portrait. # noqa: E501
201
+
202
+ :return: The crop of this FacesResponse. # noqa: E501
203
+ :rtype: str
204
+ """
205
+ return self._crop
206
+
207
+ @crop.setter
208
+ def crop(self, crop):
209
+ """Sets the crop of this FacesResponse.
210
+
211
+ Base64-encoded aligned and cropped portrait. # noqa: E501
212
+
213
+ :param crop: The crop of this FacesResponse. # noqa: E501
214
+ :type crop: str
215
+ """
216
+
217
+ self._crop = crop
218
+
219
+ @property
220
+ def persons(self):
221
+ """Gets the persons of this FacesResponse. # noqa: E501
222
+
223
+ Detected Persons. # noqa: E501
224
+
225
+ :return: The persons of this FacesResponse. # noqa: E501
226
+ :rtype: [PersonWithImages]
227
+ """
228
+ return self._persons
229
+
230
+ @persons.setter
231
+ def persons(self, persons):
232
+ """Sets the persons of this FacesResponse.
233
+
234
+ Detected Persons. # noqa: E501
235
+
236
+ :param persons: The persons of this FacesResponse. # noqa: E501
237
+ :type persons: [PersonWithImages]
238
+ """
239
+
240
+ self._persons = persons
241
+
242
+ def to_dict(self):
243
+ """Returns the model properties as a dict"""
244
+ result = {}
245
+
246
+ for attr, _ in six.iteritems(self.openapi_types):
247
+ value = getattr(self, attr)
248
+ if isinstance(value, list):
249
+ result[attr] = list(map(
250
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
251
+ value
252
+ ))
253
+ elif hasattr(value, "to_dict"):
254
+ result[attr] = value.to_dict()
255
+ elif isinstance(value, dict):
256
+ result[attr] = dict(map(
257
+ lambda item: (item[0], item[1].to_dict())
258
+ if hasattr(item[1], "to_dict") else item,
259
+ value.items()
260
+ ))
261
+ else:
262
+ result[attr] = value
263
+
264
+ return result
265
+
266
+ def to_str(self):
267
+ """Returns the string representation of the model"""
268
+ return pprint.pformat(self.to_dict())
269
+
270
+ def __repr__(self):
271
+ """For `print` and `pprint`"""
272
+ return self.to_str()
273
+
274
+ def __eq__(self, other):
275
+ """Returns true if both objects are equal"""
276
+ if not isinstance(other, FacesResponse):
277
+ return False
278
+
279
+ return self.to_dict() == other.to_dict()
280
+
281
+ def __ne__(self, other):
282
+ """Returns true if both objects are not equal"""
283
+ if not isinstance(other, FacesResponse):
284
+ return True
285
+
286
+ 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 FacesResponseAllOf(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
+ 'persons': '[PersonWithImages]',
37
+ 'rotation_angle': 'float',
38
+ }
39
+
40
+ attribute_map = {
41
+ 'persons': 'persons',
42
+ 'rotation_angle': 'rotationAngle',
43
+ }
44
+
45
+ def __init__(self, persons=None, rotation_angle=None, local_vars_configuration=None): # noqa: E501
46
+ """FacesResponseAllOf - 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._persons = None
52
+ self._rotation_angle = None
53
+ self.discriminator = None
54
+
55
+ if persons is not None:
56
+ self.persons = persons
57
+ if rotation_angle is not None:
58
+ self.rotation_angle = rotation_angle
59
+
60
+ @property
61
+ def persons(self):
62
+ """Gets the persons of this FacesResponseAllOf. # noqa: E501
63
+
64
+ Detected Persons. # noqa: E501
65
+
66
+ :return: The persons of this FacesResponseAllOf. # noqa: E501
67
+ :rtype: [PersonWithImages]
68
+ """
69
+ return self._persons
70
+
71
+ @persons.setter
72
+ def persons(self, persons):
73
+ """Sets the persons of this FacesResponseAllOf.
74
+
75
+ Detected Persons. # noqa: E501
76
+
77
+ :param persons: The persons of this FacesResponseAllOf. # noqa: E501
78
+ :type persons: [PersonWithImages]
79
+ """
80
+
81
+ self._persons = persons
82
+
83
+ @property
84
+ def rotation_angle(self):
85
+ """Gets the rotation_angle of this FacesResponseAllOf. # noqa: E501
86
+
87
+
88
+ :return: The rotation_angle of this FacesResponseAllOf. # noqa: E501
89
+ :rtype: float
90
+ """
91
+ return self._rotation_angle
92
+
93
+ @rotation_angle.setter
94
+ def rotation_angle(self, rotation_angle):
95
+ """Sets the rotation_angle of this FacesResponseAllOf.
96
+
97
+
98
+ :param rotation_angle: The rotation_angle of this FacesResponseAllOf. # noqa: E501
99
+ :type rotation_angle: float
100
+ """
101
+
102
+ self._rotation_angle = rotation_angle
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, FacesResponseAllOf):
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, FacesResponseAllOf):
146
+ return True
147
+
148
+ return self.to_dict() != other.to_dict()