regula-facesdk-webclient 7.2.388.dev0__py3-none-any.whl → 8.1.433.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.
- regula/facesdk/webclient/__init__.py +5 -5
- regula/facesdk/webclient/ext/api/group_api.py +2 -27
- regula/facesdk/webclient/ext/api/match_api.py +3 -29
- regula/facesdk/webclient/ext/api/person_api.py +8 -34
- regula/facesdk/webclient/ext/api/sdk.py +5 -3
- regula/facesdk/webclient/ext/api/search_api.py +2 -6
- regula/facesdk/webclient/ext/models/detect_request.py +6 -5
- regula/facesdk/webclient/ext/models/match_image.py +3 -3
- regula/facesdk/webclient/ext/models/match_request.py +7 -5
- regula/facesdk/webclient/gen/__init__.py +349 -18
- regula/facesdk/webclient/gen/api/__init__.py +30 -3
- regula/facesdk/webclient/gen/api/group_api.py +1854 -799
- regula/facesdk/webclient/gen/api/healthcheck_api.py +475 -215
- regula/facesdk/webclient/gen/api/liveness20_api.py +565 -0
- regula/facesdk/webclient/gen/api/match_api.py +801 -355
- regula/facesdk/webclient/gen/api/person_api.py +2399 -1039
- regula/facesdk/webclient/gen/api/search_api.py +286 -130
- regula/facesdk/webclient/gen/api_client.py +577 -476
- regula/facesdk/webclient/gen/api_response.py +21 -0
- regula/facesdk/webclient/gen/configuration.py +231 -105
- regula/facesdk/webclient/gen/exceptions.py +82 -33
- regula/facesdk/webclient/gen/models/__init__.py +202 -95
- regula/facesdk/webclient/gen/models/add_image_to_person_request.py +96 -0
- regula/facesdk/webclient/gen/models/add_image_to_person_request_data.py +92 -0
- regula/facesdk/webclient/gen/models/add_image_to_person_request_image.py +92 -0
- regula/facesdk/webclient/gen/models/add_image_to_person_response.py +92 -0
- regula/facesdk/webclient/gen/models/attribute_config.py +83 -0
- regula/facesdk/webclient/gen/models/attributes_data.py +82 -0
- regula/facesdk/webclient/gen/models/crop.py +88 -0
- regula/facesdk/webclient/gen/models/detail_item.py +136 -0
- regula/facesdk/webclient/gen/models/detect_attributes_details.py +84 -0
- regula/facesdk/webclient/gen/models/detect_details_meta.py +86 -0
- regula/facesdk/webclient/gen/models/detect_meta_data.py +84 -0
- regula/facesdk/webclient/gen/models/detect_request.py +94 -0
- regula/facesdk/webclient/gen/models/detect_request_data.py +90 -0
- regula/facesdk/webclient/gen/models/detect_response.py +89 -0
- regula/facesdk/webclient/gen/models/detect_response_results.py +86 -0
- regula/facesdk/webclient/gen/models/detect_result.py +98 -0
- regula/facesdk/webclient/gen/models/detection.py +98 -0
- regula/facesdk/webclient/gen/models/detection_attributes.py +92 -0
- regula/facesdk/webclient/gen/models/detection_attributes_details_inner.py +132 -0
- regula/facesdk/webclient/gen/models/detection_face.py +90 -0
- regula/facesdk/webclient/gen/models/detection_quality.py +107 -0
- regula/facesdk/webclient/gen/models/device_info.py +111 -0
- regula/facesdk/webclient/gen/models/face_attribute.py +40 -0
- regula/facesdk/webclient/gen/models/face_image_quality_align_type.py +32 -0
- regula/facesdk/webclient/gen/models/face_image_quality_groups.py +35 -0
- regula/facesdk/webclient/gen/models/face_image_quality_groups_strings.py +35 -0
- regula/facesdk/webclient/gen/models/face_image_quality_status.py +30 -0
- regula/facesdk/webclient/gen/models/face_quality_config_name.py +75 -0
- regula/facesdk/webclient/gen/models/face_quality_scenarios.py +37 -0
- regula/facesdk/webclient/gen/models/face_sdk_result.py +83 -0
- regula/facesdk/webclient/gen/models/face_sdk_result_code.py +68 -0
- regula/facesdk/webclient/gen/models/faces_response.py +100 -0
- regula/facesdk/webclient/gen/models/faces_response_data.py +90 -0
- regula/facesdk/webclient/gen/models/filter_op.py +29 -0
- regula/facesdk/webclient/gen/models/filter_search_request.py +87 -0
- regula/facesdk/webclient/gen/models/group.py +89 -0
- regula/facesdk/webclient/gen/models/group_data.py +85 -0
- regula/facesdk/webclient/gen/models/group_page.py +94 -0
- regula/facesdk/webclient/gen/models/group_page_items.py +90 -0
- regula/facesdk/webclient/gen/models/group_response.py +84 -0
- regula/facesdk/webclient/gen/models/group_to_create.py +86 -0
- regula/facesdk/webclient/gen/models/image.py +96 -0
- regula/facesdk/webclient/gen/models/image_fields.py +100 -0
- regula/facesdk/webclient/gen/models/image_fields_image.py +92 -0
- regula/facesdk/webclient/gen/models/image_page.py +94 -0
- regula/facesdk/webclient/gen/models/image_page_items.py +90 -0
- regula/facesdk/webclient/gen/models/image_source.py +34 -0
- regula/facesdk/webclient/gen/models/liveness_type.py +29 -0
- regula/facesdk/webclient/gen/models/match_and_search_request.py +103 -0
- regula/facesdk/webclient/gen/models/match_and_search_request_images_item.py +87 -0
- regula/facesdk/webclient/gen/models/match_and_search_response.py +107 -0
- regula/facesdk/webclient/gen/models/match_and_search_response_data.py +104 -0
- regula/facesdk/webclient/gen/models/match_and_search_response_data_detections_item.py +95 -0
- regula/facesdk/webclient/gen/models/match_image.py +89 -0
- regula/facesdk/webclient/gen/models/match_image_detection.py +95 -0
- regula/facesdk/webclient/gen/models/match_image_result.py +97 -0
- regula/facesdk/webclient/gen/models/match_request.py +102 -0
- regula/facesdk/webclient/gen/models/match_request_data.py +98 -0
- regula/facesdk/webclient/gen/models/match_response.py +105 -0
- regula/facesdk/webclient/gen/models/match_response_data.py +102 -0
- regula/facesdk/webclient/gen/models/operation_log.py +88 -0
- regula/facesdk/webclient/gen/models/output_image_params.py +89 -0
- regula/facesdk/webclient/gen/models/page.py +84 -0
- regula/facesdk/webclient/gen/models/person.py +97 -0
- regula/facesdk/webclient/gen/models/person_data.py +87 -0
- regula/facesdk/webclient/gen/models/person_fields.py +91 -0
- regula/facesdk/webclient/gen/models/person_items.py +90 -0
- regula/facesdk/webclient/gen/models/person_to_update_fields.py +89 -0
- regula/facesdk/webclient/gen/models/person_with_images.py +107 -0
- regula/facesdk/webclient/gen/models/person_with_images_data.py +90 -0
- regula/facesdk/webclient/gen/models/persons_page.py +94 -0
- regula/facesdk/webclient/gen/models/process_param.py +103 -0
- regula/facesdk/webclient/gen/models/process_param_attributes.py +90 -0
- regula/facesdk/webclient/gen/models/quality_config.py +86 -0
- regula/facesdk/webclient/gen/models/quality_detail.py +94 -0
- regula/facesdk/webclient/gen/models/quality_details_groups.py +90 -0
- regula/facesdk/webclient/gen/models/quality_request.py +93 -0
- regula/facesdk/webclient/gen/models/recognize_image.py +100 -0
- regula/facesdk/webclient/gen/models/recognize_image_data.py +84 -0
- regula/facesdk/webclient/gen/models/resize_options.py +86 -0
- regula/facesdk/webclient/gen/models/search_bad_params.py +86 -0
- regula/facesdk/webclient/gen/models/search_detection.py +102 -0
- regula/facesdk/webclient/gen/models/search_parameters.py +95 -0
- regula/facesdk/webclient/gen/models/search_parameters_create_person.py +86 -0
- regula/facesdk/webclient/gen/models/search_person.py +113 -0
- regula/facesdk/webclient/gen/models/search_person_data.py +96 -0
- regula/facesdk/webclient/gen/models/search_request.py +119 -0
- regula/facesdk/webclient/gen/models/search_result.py +92 -0
- regula/facesdk/webclient/gen/models/transaction_info.py +99 -0
- regula/facesdk/webclient/gen/models/transaction_labels.py +84 -0
- regula/facesdk/webclient/gen/models/update_group.py +85 -0
- regula/facesdk/webclient/gen/py.typed +0 -0
- regula/facesdk/webclient/gen/rest.py +136 -232
- {regula_facesdk_webclient-7.2.388.dev0.dist-info → regula_facesdk_webclient-8.1.433.dev0.dist-info}/METADATA +7 -4
- regula_facesdk_webclient-8.1.433.dev0.dist-info/RECORD +125 -0
- {regula_facesdk_webclient-7.2.388.dev0.dist-info → regula_facesdk_webclient-8.1.433.dev0.dist-info}/WHEEL +1 -1
- regula/facesdk/webclient/gen/api/diagnostics_api.py +0 -162
- regula/facesdk/webclient/gen/api/liveness_2_0_api.py +0 -306
- regula/facesdk/webclient/gen/api/liveness_api.py +0 -424
- regula/facesdk/webclient/gen/apis/__init__.py +0 -22
- regula/facesdk/webclient/gen/model/__init__.py +0 -5
- regula/facesdk/webclient/gen/model/add_image_to_person_request.py +0 -261
- regula/facesdk/webclient/gen/model/add_image_to_person_request_image.py +0 -204
- regula/facesdk/webclient/gen/model/add_image_to_person_response.py +0 -262
- regula/facesdk/webclient/gen/model/attribute_config.py +0 -120
- regula/facesdk/webclient/gen/model/attribute_config_list.py +0 -92
- regula/facesdk/webclient/gen/model/crop.py +0 -180
- regula/facesdk/webclient/gen/model/detect_attributes_details.py +0 -150
- regula/facesdk/webclient/gen/model/detect_details_meta.py +0 -178
- regula/facesdk/webclient/gen/model/detect_request.py +0 -232
- regula/facesdk/webclient/gen/model/detect_request_attributes.py +0 -120
- regula/facesdk/webclient/gen/model/detect_response.py +0 -147
- regula/facesdk/webclient/gen/model/detect_response_all_of.py +0 -120
- regula/facesdk/webclient/gen/model/detect_result.py +0 -235
- regula/facesdk/webclient/gen/model/detection.py +0 -230
- regula/facesdk/webclient/gen/model/detection_attributes.py +0 -150
- regula/facesdk/webclient/gen/model/detection_face.py +0 -232
- regula/facesdk/webclient/gen/model/detection_quality.py +0 -234
- regula/facesdk/webclient/gen/model/device_info.py +0 -231
- regula/facesdk/webclient/gen/model/face_align_type_quality.py +0 -109
- regula/facesdk/webclient/gen/model/face_attribute.py +0 -133
- regula/facesdk/webclient/gen/model/face_image_quality_align_type.py +0 -109
- regula/facesdk/webclient/gen/model/face_image_quality_groups.py +0 -118
- regula/facesdk/webclient/gen/model/face_image_quality_groups_strings.py +0 -118
- regula/facesdk/webclient/gen/model/face_image_quality_status.py +0 -103
- regula/facesdk/webclient/gen/model/face_quality_config_name.py +0 -238
- regula/facesdk/webclient/gen/model/face_quality_scenarios.py +0 -124
- regula/facesdk/webclient/gen/model/face_quality_status.py +0 -103
- regula/facesdk/webclient/gen/model/face_rectangular.py +0 -92
- regula/facesdk/webclient/gen/model/face_sdk_result.py +0 -121
- regula/facesdk/webclient/gen/model/face_sdk_result_code.py +0 -217
- regula/facesdk/webclient/gen/model/faces_response.py +0 -258
- regula/facesdk/webclient/gen/model/faces_response_all_of.py +0 -148
- regula/facesdk/webclient/gen/model/filter_op.py +0 -100
- regula/facesdk/webclient/gen/model/filter_search_request.py +0 -176
- regula/facesdk/webclient/gen/model/group.py +0 -206
- regula/facesdk/webclient/gen/model/group_all_of.py +0 -150
- regula/facesdk/webclient/gen/model/group_page.py +0 -178
- regula/facesdk/webclient/gen/model/group_page_all_of.py +0 -122
- regula/facesdk/webclient/gen/model/group_response.py +0 -150
- regula/facesdk/webclient/gen/model/group_to_create.py +0 -180
- regula/facesdk/webclient/gen/model/image.py +0 -318
- regula/facesdk/webclient/gen/model/image_fields.py +0 -258
- regula/facesdk/webclient/gen/model/image_fields_image.py +0 -204
- regula/facesdk/webclient/gen/model/image_page.py +0 -176
- regula/facesdk/webclient/gen/model/image_page_all_of.py +0 -120
- regula/facesdk/webclient/gen/model/image_source.py +0 -115
- regula/facesdk/webclient/gen/model/liveness_transaction.py +0 -334
- regula/facesdk/webclient/gen/model/liveness_type.py +0 -100
- regula/facesdk/webclient/gen/model/match_and_search_request.py +0 -290
- regula/facesdk/webclient/gen/model/match_and_search_request_all_of.py +0 -234
- regula/facesdk/webclient/gen/model/match_and_search_request_all_of_images.py +0 -148
- regula/facesdk/webclient/gen/model/match_and_search_request_images.py +0 -176
- regula/facesdk/webclient/gen/model/match_and_search_response.py +0 -233
- regula/facesdk/webclient/gen/model/match_and_search_response_all_of.py +0 -206
- regula/facesdk/webclient/gen/model/match_and_search_response_all_of_detections.py +0 -176
- regula/facesdk/webclient/gen/model/match_image.py +0 -205
- regula/facesdk/webclient/gen/model/match_image_detection.py +0 -178
- regula/facesdk/webclient/gen/model/match_image_result.py +0 -316
- regula/facesdk/webclient/gen/model/match_request.py +0 -233
- regula/facesdk/webclient/gen/model/match_request_output_image_params.py +0 -148
- regula/facesdk/webclient/gen/model/match_request_output_image_params_crop.py +0 -212
- regula/facesdk/webclient/gen/model/match_response.py +0 -205
- regula/facesdk/webclient/gen/model/match_response_all_of.py +0 -178
- regula/facesdk/webclient/gen/model/operation_log.py +0 -206
- regula/facesdk/webclient/gen/model/output_image_params.py +0 -146
- regula/facesdk/webclient/gen/model/page.py +0 -150
- regula/facesdk/webclient/gen/model/person.py +0 -319
- regula/facesdk/webclient/gen/model/person_all_of.py +0 -206
- regula/facesdk/webclient/gen/model/person_created_response.py +0 -178
- regula/facesdk/webclient/gen/model/person_fields.py +0 -235
- regula/facesdk/webclient/gen/model/person_to_update_fields.py +0 -206
- regula/facesdk/webclient/gen/model/person_with_images.py +0 -347
- regula/facesdk/webclient/gen/model/person_with_images_all_of.py +0 -122
- regula/facesdk/webclient/gen/model/persons_page.py +0 -176
- regula/facesdk/webclient/gen/model/persons_page_all_of.py +0 -120
- regula/facesdk/webclient/gen/model/persons_request.py +0 -291
- regula/facesdk/webclient/gen/model/persons_request_all_of.py +0 -150
- regula/facesdk/webclient/gen/model/process_param.py +0 -226
- regula/facesdk/webclient/gen/model/process_param_attributes.py +0 -120
- regula/facesdk/webclient/gen/model/quality_config.py +0 -154
- regula/facesdk/webclient/gen/model/quality_config_list.py +0 -92
- regula/facesdk/webclient/gen/model/quality_detail.py +0 -234
- regula/facesdk/webclient/gen/model/quality_details_groups.py +0 -202
- regula/facesdk/webclient/gen/model/quality_request.py +0 -146
- regula/facesdk/webclient/gen/model/recognize_image.py +0 -374
- regula/facesdk/webclient/gen/model/recognize_image_all_of.py +0 -150
- regula/facesdk/webclient/gen/model/resize_options.py +0 -178
- regula/facesdk/webclient/gen/model/rgb.py +0 -92
- regula/facesdk/webclient/gen/model/search_bad_params.py +0 -172
- regula/facesdk/webclient/gen/model/search_detection.py +0 -398
- regula/facesdk/webclient/gen/model/search_parameters.py +0 -174
- regula/facesdk/webclient/gen/model/search_parameters_create_person.py +0 -177
- regula/facesdk/webclient/gen/model/search_person.py +0 -373
- regula/facesdk/webclient/gen/model/search_person_all_of.py +0 -148
- regula/facesdk/webclient/gen/model/search_request.py +0 -394
- regula/facesdk/webclient/gen/model/search_request_all_of.py +0 -150
- regula/facesdk/webclient/gen/model/search_result.py +0 -150
- regula/facesdk/webclient/gen/model/search_result_all_of.py +0 -122
- regula/facesdk/webclient/gen/model/transaction_config.py +0 -92
- regula/facesdk/webclient/gen/model/transaction_info.py +0 -344
- regula/facesdk/webclient/gen/model/update_group.py +0 -150
- regula/facesdk/webclient/gen/model_utils.py +0 -2037
- regula_facesdk_webclient-7.2.388.dev0.dist-info/RECORD +0 -138
- {regula_facesdk_webclient-7.2.388.dev0.dist-info → regula_facesdk_webclient-8.1.433.dev0.dist-info}/top_level.txt +0 -0
|
@@ -1,230 +0,0 @@
|
|
|
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: 7.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
|
-
}
|
|
42
|
-
|
|
43
|
-
attribute_map = {
|
|
44
|
-
'crop': 'crop',
|
|
45
|
-
'attributes': 'attributes',
|
|
46
|
-
'landmarks': 'landmarks',
|
|
47
|
-
'quality': 'quality',
|
|
48
|
-
'roi': 'roi',
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
def __init__(self, crop=None, attributes=None, landmarks=None, quality=None, roi=None, local_vars_configuration=None): # noqa: E501
|
|
52
|
-
"""Detection - a model defined in OpenAPI""" # noqa: E501
|
|
53
|
-
if local_vars_configuration is None:
|
|
54
|
-
local_vars_configuration = Configuration()
|
|
55
|
-
self.local_vars_configuration = local_vars_configuration
|
|
56
|
-
|
|
57
|
-
self._crop = None
|
|
58
|
-
self._attributes = None
|
|
59
|
-
self._landmarks = None
|
|
60
|
-
self._quality = None
|
|
61
|
-
self._roi = None
|
|
62
|
-
self.discriminator = None
|
|
63
|
-
|
|
64
|
-
if crop is not None:
|
|
65
|
-
self.crop = crop
|
|
66
|
-
if attributes is not None:
|
|
67
|
-
self.attributes = attributes
|
|
68
|
-
self.landmarks = landmarks
|
|
69
|
-
if quality is not None:
|
|
70
|
-
self.quality = quality
|
|
71
|
-
self.roi = roi
|
|
72
|
-
|
|
73
|
-
@property
|
|
74
|
-
def crop(self):
|
|
75
|
-
"""Gets the crop of this Detection. # noqa: E501
|
|
76
|
-
|
|
77
|
-
Base64-encoded image. # noqa: E501
|
|
78
|
-
|
|
79
|
-
:return: The crop of this Detection. # noqa: E501
|
|
80
|
-
:rtype: str
|
|
81
|
-
"""
|
|
82
|
-
return self._crop
|
|
83
|
-
|
|
84
|
-
@crop.setter
|
|
85
|
-
def crop(self, crop):
|
|
86
|
-
"""Sets the crop of this Detection.
|
|
87
|
-
|
|
88
|
-
Base64-encoded image. # noqa: E501
|
|
89
|
-
|
|
90
|
-
:param crop: The crop of this Detection. # noqa: E501
|
|
91
|
-
:type crop: str
|
|
92
|
-
"""
|
|
93
|
-
|
|
94
|
-
self._crop = crop
|
|
95
|
-
|
|
96
|
-
@property
|
|
97
|
-
def attributes(self):
|
|
98
|
-
"""Gets the attributes of this Detection. # noqa: E501
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
:return: The attributes of this Detection. # noqa: E501
|
|
102
|
-
:rtype: DetectionAttributes
|
|
103
|
-
"""
|
|
104
|
-
return self._attributes
|
|
105
|
-
|
|
106
|
-
@attributes.setter
|
|
107
|
-
def attributes(self, attributes):
|
|
108
|
-
"""Sets the attributes of this Detection.
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
:param attributes: The attributes of this Detection. # noqa: E501
|
|
112
|
-
:type attributes: DetectionAttributes
|
|
113
|
-
"""
|
|
114
|
-
|
|
115
|
-
self._attributes = attributes
|
|
116
|
-
|
|
117
|
-
@property
|
|
118
|
-
def landmarks(self):
|
|
119
|
-
"""Gets the landmarks of this Detection. # noqa: E501
|
|
120
|
-
|
|
121
|
-
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
|
|
122
|
-
|
|
123
|
-
:return: The landmarks of this Detection. # noqa: E501
|
|
124
|
-
:rtype: [[int]]
|
|
125
|
-
"""
|
|
126
|
-
return self._landmarks
|
|
127
|
-
|
|
128
|
-
@landmarks.setter
|
|
129
|
-
def landmarks(self, landmarks):
|
|
130
|
-
"""Sets the landmarks of this Detection.
|
|
131
|
-
|
|
132
|
-
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
|
|
133
|
-
|
|
134
|
-
:param landmarks: The landmarks of this Detection. # noqa: E501
|
|
135
|
-
:type landmarks: [[int]]
|
|
136
|
-
"""
|
|
137
|
-
if self.local_vars_configuration.client_side_validation and landmarks is None: # noqa: E501
|
|
138
|
-
raise ValueError("Invalid value for `landmarks`, must not be `None`") # noqa: E501
|
|
139
|
-
|
|
140
|
-
self._landmarks = landmarks
|
|
141
|
-
|
|
142
|
-
@property
|
|
143
|
-
def quality(self):
|
|
144
|
-
"""Gets the quality of this Detection. # noqa: E501
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
:return: The quality of this Detection. # noqa: E501
|
|
148
|
-
:rtype: DetectionQuality
|
|
149
|
-
"""
|
|
150
|
-
return self._quality
|
|
151
|
-
|
|
152
|
-
@quality.setter
|
|
153
|
-
def quality(self, quality):
|
|
154
|
-
"""Sets the quality of this Detection.
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
:param quality: The quality of this Detection. # noqa: E501
|
|
158
|
-
:type quality: DetectionQuality
|
|
159
|
-
"""
|
|
160
|
-
|
|
161
|
-
self._quality = quality
|
|
162
|
-
|
|
163
|
-
@property
|
|
164
|
-
def roi(self):
|
|
165
|
-
"""Gets the roi of this Detection. # noqa: E501
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
:return: The roi of this Detection. # noqa: E501
|
|
169
|
-
:rtype: FaceRectangular
|
|
170
|
-
"""
|
|
171
|
-
return self._roi
|
|
172
|
-
|
|
173
|
-
@roi.setter
|
|
174
|
-
def roi(self, roi):
|
|
175
|
-
"""Sets the roi of this Detection.
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
:param roi: The roi of this Detection. # noqa: E501
|
|
179
|
-
:type roi: FaceRectangular
|
|
180
|
-
"""
|
|
181
|
-
if self.local_vars_configuration.client_side_validation and roi is None: # noqa: E501
|
|
182
|
-
raise ValueError("Invalid value for `roi`, must not be `None`") # noqa: E501
|
|
183
|
-
|
|
184
|
-
self._roi = roi
|
|
185
|
-
|
|
186
|
-
def to_dict(self):
|
|
187
|
-
"""Returns the model properties as a dict"""
|
|
188
|
-
result = {}
|
|
189
|
-
|
|
190
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
|
191
|
-
value = getattr(self, attr)
|
|
192
|
-
if isinstance(value, list):
|
|
193
|
-
result[attr] = list(map(
|
|
194
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
195
|
-
value
|
|
196
|
-
))
|
|
197
|
-
elif hasattr(value, "to_dict"):
|
|
198
|
-
result[attr] = value.to_dict()
|
|
199
|
-
elif isinstance(value, dict):
|
|
200
|
-
result[attr] = dict(map(
|
|
201
|
-
lambda item: (item[0], item[1].to_dict())
|
|
202
|
-
if hasattr(item[1], "to_dict") else item,
|
|
203
|
-
value.items()
|
|
204
|
-
))
|
|
205
|
-
else:
|
|
206
|
-
result[attr] = value
|
|
207
|
-
|
|
208
|
-
return result
|
|
209
|
-
|
|
210
|
-
def to_str(self):
|
|
211
|
-
"""Returns the string representation of the model"""
|
|
212
|
-
return pprint.pformat(self.to_dict())
|
|
213
|
-
|
|
214
|
-
def __repr__(self):
|
|
215
|
-
"""For `print` and `pprint`"""
|
|
216
|
-
return self.to_str()
|
|
217
|
-
|
|
218
|
-
def __eq__(self, other):
|
|
219
|
-
"""Returns true if both objects are equal"""
|
|
220
|
-
if not isinstance(other, Detection):
|
|
221
|
-
return False
|
|
222
|
-
|
|
223
|
-
return self.to_dict() == other.to_dict()
|
|
224
|
-
|
|
225
|
-
def __ne__(self, other):
|
|
226
|
-
"""Returns true if both objects are not equal"""
|
|
227
|
-
if not isinstance(other, Detection):
|
|
228
|
-
return True
|
|
229
|
-
|
|
230
|
-
return self.to_dict() != other.to_dict()
|
|
@@ -1,150 +0,0 @@
|
|
|
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: 7.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': '[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
|
-
Attributes assessment details. Returns `DetectDetailsMeta` or `DetectAttributesDetails`. # noqa: E501
|
|
65
|
-
|
|
66
|
-
:return: The details of this DetectionAttributes. # noqa: E501
|
|
67
|
-
:rtype: [bool, date, datetime, dict, float, int, list, str, none_type]
|
|
68
|
-
"""
|
|
69
|
-
return self._details
|
|
70
|
-
|
|
71
|
-
@details.setter
|
|
72
|
-
def details(self, details):
|
|
73
|
-
"""Sets the details of this DetectionAttributes.
|
|
74
|
-
|
|
75
|
-
Attributes assessment details. Returns `DetectDetailsMeta` or `DetectAttributesDetails`. # noqa: E501
|
|
76
|
-
|
|
77
|
-
:param details: The details of this DetectionAttributes. # noqa: E501
|
|
78
|
-
:type details: [bool, date, datetime, dict, float, int, list, str, none_type]
|
|
79
|
-
"""
|
|
80
|
-
|
|
81
|
-
self._details = details
|
|
82
|
-
|
|
83
|
-
@property
|
|
84
|
-
def elapsed_time(self):
|
|
85
|
-
"""Gets the elapsed_time of this DetectionAttributes. # noqa: E501
|
|
86
|
-
|
|
87
|
-
Server processing time for attribute detection, ms. # noqa: E501
|
|
88
|
-
|
|
89
|
-
:return: The elapsed_time of this DetectionAttributes. # noqa: E501
|
|
90
|
-
:rtype: float
|
|
91
|
-
"""
|
|
92
|
-
return self._elapsed_time
|
|
93
|
-
|
|
94
|
-
@elapsed_time.setter
|
|
95
|
-
def elapsed_time(self, elapsed_time):
|
|
96
|
-
"""Sets the elapsed_time of this DetectionAttributes.
|
|
97
|
-
|
|
98
|
-
Server processing time for attribute detection, ms. # noqa: E501
|
|
99
|
-
|
|
100
|
-
:param elapsed_time: The elapsed_time of this DetectionAttributes. # noqa: E501
|
|
101
|
-
:type elapsed_time: float
|
|
102
|
-
"""
|
|
103
|
-
|
|
104
|
-
self._elapsed_time = elapsed_time
|
|
105
|
-
|
|
106
|
-
def to_dict(self):
|
|
107
|
-
"""Returns the model properties as a dict"""
|
|
108
|
-
result = {}
|
|
109
|
-
|
|
110
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
|
111
|
-
value = getattr(self, attr)
|
|
112
|
-
if isinstance(value, list):
|
|
113
|
-
result[attr] = list(map(
|
|
114
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
115
|
-
value
|
|
116
|
-
))
|
|
117
|
-
elif hasattr(value, "to_dict"):
|
|
118
|
-
result[attr] = value.to_dict()
|
|
119
|
-
elif isinstance(value, dict):
|
|
120
|
-
result[attr] = dict(map(
|
|
121
|
-
lambda item: (item[0], item[1].to_dict())
|
|
122
|
-
if hasattr(item[1], "to_dict") else item,
|
|
123
|
-
value.items()
|
|
124
|
-
))
|
|
125
|
-
else:
|
|
126
|
-
result[attr] = value
|
|
127
|
-
|
|
128
|
-
return result
|
|
129
|
-
|
|
130
|
-
def to_str(self):
|
|
131
|
-
"""Returns the string representation of the model"""
|
|
132
|
-
return pprint.pformat(self.to_dict())
|
|
133
|
-
|
|
134
|
-
def __repr__(self):
|
|
135
|
-
"""For `print` and `pprint`"""
|
|
136
|
-
return self.to_str()
|
|
137
|
-
|
|
138
|
-
def __eq__(self, other):
|
|
139
|
-
"""Returns true if both objects are equal"""
|
|
140
|
-
if not isinstance(other, DetectionAttributes):
|
|
141
|
-
return False
|
|
142
|
-
|
|
143
|
-
return self.to_dict() == other.to_dict()
|
|
144
|
-
|
|
145
|
-
def __ne__(self, other):
|
|
146
|
-
"""Returns true if both objects are not equal"""
|
|
147
|
-
if not isinstance(other, DetectionAttributes):
|
|
148
|
-
return True
|
|
149
|
-
|
|
150
|
-
return self.to_dict() != other.to_dict()
|
|
@@ -1,232 +0,0 @@
|
|
|
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: 7.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
|
-
'crop': 'str',
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
attribute_map = {
|
|
44
|
-
'face_index': 'faceIndex',
|
|
45
|
-
'landmarks': 'landmarks',
|
|
46
|
-
'rotation_angle': 'rotationAngle',
|
|
47
|
-
'roi': 'roi',
|
|
48
|
-
'crop': 'crop',
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
def __init__(self, face_index=None, landmarks=None, rotation_angle=None, roi=None, crop=None, local_vars_configuration=None): # noqa: E501
|
|
52
|
-
"""DetectionFace - a model defined in OpenAPI""" # noqa: E501
|
|
53
|
-
if local_vars_configuration is None:
|
|
54
|
-
local_vars_configuration = Configuration()
|
|
55
|
-
self.local_vars_configuration = local_vars_configuration
|
|
56
|
-
|
|
57
|
-
self._face_index = None
|
|
58
|
-
self._landmarks = None
|
|
59
|
-
self._rotation_angle = None
|
|
60
|
-
self._roi = None
|
|
61
|
-
self._crop = None
|
|
62
|
-
self.discriminator = None
|
|
63
|
-
|
|
64
|
-
if face_index is not None:
|
|
65
|
-
self.face_index = face_index
|
|
66
|
-
if landmarks is not None:
|
|
67
|
-
self.landmarks = landmarks
|
|
68
|
-
if rotation_angle is not None:
|
|
69
|
-
self.rotation_angle = rotation_angle
|
|
70
|
-
if roi is not None:
|
|
71
|
-
self.roi = roi
|
|
72
|
-
if crop is not None:
|
|
73
|
-
self.crop = crop
|
|
74
|
-
|
|
75
|
-
@property
|
|
76
|
-
def face_index(self):
|
|
77
|
-
"""Gets the face_index of this DetectionFace. # noqa: E501
|
|
78
|
-
|
|
79
|
-
The detected face index number. # noqa: E501
|
|
80
|
-
|
|
81
|
-
:return: The face_index of this DetectionFace. # noqa: E501
|
|
82
|
-
:rtype: float
|
|
83
|
-
"""
|
|
84
|
-
return self._face_index
|
|
85
|
-
|
|
86
|
-
@face_index.setter
|
|
87
|
-
def face_index(self, face_index):
|
|
88
|
-
"""Sets the face_index of this DetectionFace.
|
|
89
|
-
|
|
90
|
-
The detected face index number. # noqa: E501
|
|
91
|
-
|
|
92
|
-
:param face_index: The face_index of this DetectionFace. # noqa: E501
|
|
93
|
-
:type face_index: float
|
|
94
|
-
"""
|
|
95
|
-
|
|
96
|
-
self._face_index = face_index
|
|
97
|
-
|
|
98
|
-
@property
|
|
99
|
-
def landmarks(self):
|
|
100
|
-
"""Gets the landmarks of this DetectionFace. # noqa: E501
|
|
101
|
-
|
|
102
|
-
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
|
|
103
|
-
|
|
104
|
-
:return: The landmarks of this DetectionFace. # noqa: E501
|
|
105
|
-
:rtype: [[float]]
|
|
106
|
-
"""
|
|
107
|
-
return self._landmarks
|
|
108
|
-
|
|
109
|
-
@landmarks.setter
|
|
110
|
-
def landmarks(self, landmarks):
|
|
111
|
-
"""Sets the landmarks of this DetectionFace.
|
|
112
|
-
|
|
113
|
-
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
|
|
114
|
-
|
|
115
|
-
:param landmarks: The landmarks of this DetectionFace. # noqa: E501
|
|
116
|
-
:type landmarks: [[float]]
|
|
117
|
-
"""
|
|
118
|
-
|
|
119
|
-
self._landmarks = landmarks
|
|
120
|
-
|
|
121
|
-
@property
|
|
122
|
-
def rotation_angle(self):
|
|
123
|
-
"""Gets the rotation_angle of this DetectionFace. # noqa: E501
|
|
124
|
-
|
|
125
|
-
Angle of rotation of the face from the vertical axis, degrees. # noqa: E501
|
|
126
|
-
|
|
127
|
-
:return: The rotation_angle of this DetectionFace. # noqa: E501
|
|
128
|
-
:rtype: float
|
|
129
|
-
"""
|
|
130
|
-
return self._rotation_angle
|
|
131
|
-
|
|
132
|
-
@rotation_angle.setter
|
|
133
|
-
def rotation_angle(self, rotation_angle):
|
|
134
|
-
"""Sets the rotation_angle of this DetectionFace.
|
|
135
|
-
|
|
136
|
-
Angle of rotation of the face from the vertical axis, degrees. # noqa: E501
|
|
137
|
-
|
|
138
|
-
:param rotation_angle: The rotation_angle of this DetectionFace. # noqa: E501
|
|
139
|
-
:type rotation_angle: float
|
|
140
|
-
"""
|
|
141
|
-
|
|
142
|
-
self._rotation_angle = rotation_angle
|
|
143
|
-
|
|
144
|
-
@property
|
|
145
|
-
def roi(self):
|
|
146
|
-
"""Gets the roi of this DetectionFace. # noqa: E501
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
:return: The roi of this DetectionFace. # noqa: E501
|
|
150
|
-
:rtype: FaceRectangular
|
|
151
|
-
"""
|
|
152
|
-
return self._roi
|
|
153
|
-
|
|
154
|
-
@roi.setter
|
|
155
|
-
def roi(self, roi):
|
|
156
|
-
"""Sets the roi of this DetectionFace.
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
:param roi: The roi of this DetectionFace. # noqa: E501
|
|
160
|
-
:type roi: FaceRectangular
|
|
161
|
-
"""
|
|
162
|
-
|
|
163
|
-
self._roi = roi
|
|
164
|
-
|
|
165
|
-
@property
|
|
166
|
-
def crop(self):
|
|
167
|
-
"""Gets the crop of this DetectionFace. # noqa: E501
|
|
168
|
-
|
|
169
|
-
Base64-encoded aligned and cropped portrait. # noqa: E501
|
|
170
|
-
|
|
171
|
-
:return: The crop of this DetectionFace. # noqa: E501
|
|
172
|
-
:rtype: str
|
|
173
|
-
"""
|
|
174
|
-
return self._crop
|
|
175
|
-
|
|
176
|
-
@crop.setter
|
|
177
|
-
def crop(self, crop):
|
|
178
|
-
"""Sets the crop of this DetectionFace.
|
|
179
|
-
|
|
180
|
-
Base64-encoded aligned and cropped portrait. # noqa: E501
|
|
181
|
-
|
|
182
|
-
:param crop: The crop of this DetectionFace. # noqa: E501
|
|
183
|
-
:type crop: str
|
|
184
|
-
"""
|
|
185
|
-
|
|
186
|
-
self._crop = crop
|
|
187
|
-
|
|
188
|
-
def to_dict(self):
|
|
189
|
-
"""Returns the model properties as a dict"""
|
|
190
|
-
result = {}
|
|
191
|
-
|
|
192
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
|
193
|
-
value = getattr(self, attr)
|
|
194
|
-
if isinstance(value, list):
|
|
195
|
-
result[attr] = list(map(
|
|
196
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
197
|
-
value
|
|
198
|
-
))
|
|
199
|
-
elif hasattr(value, "to_dict"):
|
|
200
|
-
result[attr] = value.to_dict()
|
|
201
|
-
elif isinstance(value, dict):
|
|
202
|
-
result[attr] = dict(map(
|
|
203
|
-
lambda item: (item[0], item[1].to_dict())
|
|
204
|
-
if hasattr(item[1], "to_dict") else item,
|
|
205
|
-
value.items()
|
|
206
|
-
))
|
|
207
|
-
else:
|
|
208
|
-
result[attr] = value
|
|
209
|
-
|
|
210
|
-
return result
|
|
211
|
-
|
|
212
|
-
def to_str(self):
|
|
213
|
-
"""Returns the string representation of the model"""
|
|
214
|
-
return pprint.pformat(self.to_dict())
|
|
215
|
-
|
|
216
|
-
def __repr__(self):
|
|
217
|
-
"""For `print` and `pprint`"""
|
|
218
|
-
return self.to_str()
|
|
219
|
-
|
|
220
|
-
def __eq__(self, other):
|
|
221
|
-
"""Returns true if both objects are equal"""
|
|
222
|
-
if not isinstance(other, DetectionFace):
|
|
223
|
-
return False
|
|
224
|
-
|
|
225
|
-
return self.to_dict() == other.to_dict()
|
|
226
|
-
|
|
227
|
-
def __ne__(self, other):
|
|
228
|
-
"""Returns true if both objects are not equal"""
|
|
229
|
-
if not isinstance(other, DetectionFace):
|
|
230
|
-
return True
|
|
231
|
-
|
|
232
|
-
return self.to_dict() != other.to_dict()
|