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,120 @@
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 AttributeConfig(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
+ 'name': 'FaceAttribute',
37
+ }
38
+
39
+ attribute_map = {
40
+ 'name': 'name',
41
+ }
42
+
43
+ def __init__(self, name=None, local_vars_configuration=None): # noqa: E501
44
+ """AttributeConfig - a model defined in OpenAPI""" # noqa: E501
45
+ if local_vars_configuration is None:
46
+ local_vars_configuration = Configuration()
47
+ self.local_vars_configuration = local_vars_configuration
48
+
49
+ self._name = None
50
+ self.discriminator = None
51
+
52
+ if name is not None:
53
+ self.name = name
54
+
55
+ @property
56
+ def name(self):
57
+ """Gets the name of this AttributeConfig. # noqa: E501
58
+
59
+
60
+ :return: The name of this AttributeConfig. # noqa: E501
61
+ :rtype: FaceAttribute
62
+ """
63
+ return self._name
64
+
65
+ @name.setter
66
+ def name(self, name):
67
+ """Sets the name of this AttributeConfig.
68
+
69
+
70
+ :param name: The name of this AttributeConfig. # noqa: E501
71
+ :type name: FaceAttribute
72
+ """
73
+
74
+ self._name = name
75
+
76
+ def to_dict(self):
77
+ """Returns the model properties as a dict"""
78
+ result = {}
79
+
80
+ for attr, _ in six.iteritems(self.openapi_types):
81
+ value = getattr(self, attr)
82
+ if isinstance(value, list):
83
+ result[attr] = list(map(
84
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
85
+ value
86
+ ))
87
+ elif hasattr(value, "to_dict"):
88
+ result[attr] = value.to_dict()
89
+ elif isinstance(value, dict):
90
+ result[attr] = dict(map(
91
+ lambda item: (item[0], item[1].to_dict())
92
+ if hasattr(item[1], "to_dict") else item,
93
+ value.items()
94
+ ))
95
+ else:
96
+ result[attr] = value
97
+
98
+ return result
99
+
100
+ def to_str(self):
101
+ """Returns the string representation of the model"""
102
+ return pprint.pformat(self.to_dict())
103
+
104
+ def __repr__(self):
105
+ """For `print` and `pprint`"""
106
+ return self.to_str()
107
+
108
+ def __eq__(self, other):
109
+ """Returns true if both objects are equal"""
110
+ if not isinstance(other, AttributeConfig):
111
+ return False
112
+
113
+ return self.to_dict() == other.to_dict()
114
+
115
+ def __ne__(self, other):
116
+ """Returns true if both objects are not equal"""
117
+ if not isinstance(other, AttributeConfig):
118
+ return True
119
+
120
+ return self.to_dict() != other.to_dict()
@@ -0,0 +1,92 @@
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 AttributeConfigList(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
+ }
37
+
38
+ attribute_map = {
39
+ }
40
+
41
+ def __init__(self, local_vars_configuration=None): # noqa: E501
42
+ """AttributeConfigList - a model defined in OpenAPI""" # noqa: E501
43
+ if local_vars_configuration is None:
44
+ local_vars_configuration = Configuration()
45
+ self.local_vars_configuration = local_vars_configuration
46
+ self.discriminator = None
47
+
48
+ def to_dict(self):
49
+ """Returns the model properties as a dict"""
50
+ result = {}
51
+
52
+ for attr, _ in six.iteritems(self.openapi_types):
53
+ value = getattr(self, attr)
54
+ if isinstance(value, list):
55
+ result[attr] = list(map(
56
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
57
+ value
58
+ ))
59
+ elif hasattr(value, "to_dict"):
60
+ result[attr] = value.to_dict()
61
+ elif isinstance(value, dict):
62
+ result[attr] = dict(map(
63
+ lambda item: (item[0], item[1].to_dict())
64
+ if hasattr(item[1], "to_dict") else item,
65
+ value.items()
66
+ ))
67
+ else:
68
+ result[attr] = value
69
+
70
+ return result
71
+
72
+ def to_str(self):
73
+ """Returns the string representation of the model"""
74
+ return pprint.pformat(self.to_dict())
75
+
76
+ def __repr__(self):
77
+ """For `print` and `pprint`"""
78
+ return self.to_str()
79
+
80
+ def __eq__(self, other):
81
+ """Returns true if both objects are equal"""
82
+ if not isinstance(other, AttributeConfigList):
83
+ return False
84
+
85
+ return self.to_dict() == other.to_dict()
86
+
87
+ def __ne__(self, other):
88
+ """Returns true if both objects are not equal"""
89
+ if not isinstance(other, AttributeConfigList):
90
+ return True
91
+
92
+ return self.to_dict() != other.to_dict()
@@ -0,0 +1,208 @@
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 Crop(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
+ 'type': 'FaceImageQualityAlignType',
37
+ 'pad_color': 'RGB',
38
+ 'size': '[int]',
39
+ 'return_original_rect': 'bool',
40
+ }
41
+
42
+ attribute_map = {
43
+ 'type': 'type',
44
+ 'pad_color': 'padColor',
45
+ 'size': 'size',
46
+ 'return_original_rect': 'returnOriginalRect',
47
+ }
48
+
49
+ def __init__(self, type=None, pad_color=None, size=None, return_original_rect=None, local_vars_configuration=None): # noqa: E501
50
+ """Crop - a model defined in OpenAPI""" # noqa: E501
51
+ if local_vars_configuration is None:
52
+ local_vars_configuration = Configuration()
53
+ self.local_vars_configuration = local_vars_configuration
54
+
55
+ self._type = None
56
+ self._pad_color = None
57
+ self._size = None
58
+ self._return_original_rect = None
59
+ self.discriminator = None
60
+
61
+ if type is not None:
62
+ self.type = type
63
+ if pad_color is not None:
64
+ self.pad_color = pad_color
65
+ if size is not None:
66
+ self.size = size
67
+ if return_original_rect is not None:
68
+ self.return_original_rect = return_original_rect
69
+
70
+ @property
71
+ def type(self):
72
+ """Gets the type of this Crop. # noqa: E501
73
+
74
+
75
+ :return: The type of this Crop. # noqa: E501
76
+ :rtype: FaceImageQualityAlignType
77
+ """
78
+ return self._type
79
+
80
+ @type.setter
81
+ def type(self, type):
82
+ """Sets the type of this Crop.
83
+
84
+
85
+ :param type: The type of this Crop. # noqa: E501
86
+ :type type: FaceImageQualityAlignType
87
+ """
88
+
89
+ self._type = type
90
+
91
+ @property
92
+ def pad_color(self):
93
+ """Gets the pad_color of this Crop. # noqa: E501
94
+
95
+
96
+ :return: The pad_color of this Crop. # noqa: E501
97
+ :rtype: RGB
98
+ """
99
+ return self._pad_color
100
+
101
+ @pad_color.setter
102
+ def pad_color(self, pad_color):
103
+ """Sets the pad_color of this Crop.
104
+
105
+
106
+ :param pad_color: The pad_color of this Crop. # noqa: E501
107
+ :type pad_color: RGB
108
+ """
109
+
110
+ self._pad_color = pad_color
111
+
112
+ @property
113
+ def size(self):
114
+ """Gets the size of this Crop. # noqa: E501
115
+
116
+ The resize value in case `type` matches this value. If it doesn't, no resize is performed. # noqa: E501
117
+
118
+ :return: The size of this Crop. # noqa: E501
119
+ :rtype: [int]
120
+ """
121
+ return self._size
122
+
123
+ @size.setter
124
+ def size(self, size):
125
+ """Sets the size of this Crop.
126
+
127
+ The resize value in case `type` matches this value. If it doesn't, no resize is performed. # noqa: E501
128
+
129
+ :param size: The size of this Crop. # noqa: E501
130
+ :type size: [int]
131
+ """
132
+ if (self.local_vars_configuration.client_side_validation and
133
+ size is not None and len(size) > 2):
134
+ raise ValueError("Invalid value for `size`, number of items must be less than or equal to `2`") # noqa: E501
135
+ if (self.local_vars_configuration.client_side_validation and
136
+ size is not None and len(size) < 2):
137
+ raise ValueError("Invalid value for `size`, number of items must be greater than or equal to `2`") # noqa: E501
138
+
139
+ self._size = size
140
+
141
+ @property
142
+ def return_original_rect(self):
143
+ """Gets the return_original_rect of this Crop. # noqa: E501
144
+
145
+ Whether to return the coordinates of the rectangle with the face in the original image prepared for the face crop. # noqa: E501
146
+
147
+ :return: The return_original_rect of this Crop. # noqa: E501
148
+ :rtype: bool
149
+ """
150
+ return self._return_original_rect
151
+
152
+ @return_original_rect.setter
153
+ def return_original_rect(self, return_original_rect):
154
+ """Sets the return_original_rect of this Crop.
155
+
156
+ Whether to return the coordinates of the rectangle with the face in the original image prepared for the face crop. # noqa: E501
157
+
158
+ :param return_original_rect: The return_original_rect of this Crop. # noqa: E501
159
+ :type return_original_rect: bool
160
+ """
161
+
162
+ self._return_original_rect = return_original_rect
163
+
164
+ def to_dict(self):
165
+ """Returns the model properties as a dict"""
166
+ result = {}
167
+
168
+ for attr, _ in six.iteritems(self.openapi_types):
169
+ value = getattr(self, attr)
170
+ if isinstance(value, list):
171
+ result[attr] = list(map(
172
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
173
+ value
174
+ ))
175
+ elif hasattr(value, "to_dict"):
176
+ result[attr] = value.to_dict()
177
+ elif isinstance(value, dict):
178
+ result[attr] = dict(map(
179
+ lambda item: (item[0], item[1].to_dict())
180
+ if hasattr(item[1], "to_dict") else item,
181
+ value.items()
182
+ ))
183
+ else:
184
+ result[attr] = value
185
+
186
+ return result
187
+
188
+ def to_str(self):
189
+ """Returns the string representation of the model"""
190
+ return pprint.pformat(self.to_dict())
191
+
192
+ def __repr__(self):
193
+ """For `print` and `pprint`"""
194
+ return self.to_str()
195
+
196
+ def __eq__(self, other):
197
+ """Returns true if both objects are equal"""
198
+ if not isinstance(other, Crop):
199
+ return False
200
+
201
+ return self.to_dict() == other.to_dict()
202
+
203
+ def __ne__(self, other):
204
+ """Returns true if both objects are not equal"""
205
+ if not isinstance(other, Crop):
206
+ return True
207
+
208
+ return self.to_dict() != other.to_dict()
@@ -0,0 +1,204 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Regula Face SDK Web API
5
+
6
+ <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process and image quality assurance. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face detection and image quality assessment</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness detection</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core # noqa: E501
7
+
8
+ The version of the OpenAPI document: 6.2.0
9
+ Generated by: https://openapi-generator.tech
10
+ """
11
+
12
+
13
+ import pprint
14
+ import re # noqa: F401
15
+
16
+ import six
17
+
18
+ from regula.facesdk.webclient.gen.configuration import Configuration
19
+
20
+
21
+ class DetectRequest(object):
22
+ """NOTE: This class is auto generated by OpenAPI Generator.
23
+ Ref: https://openapi-generator.tech
24
+
25
+ Do not edit the class manually.
26
+ """
27
+
28
+ """
29
+ Attributes:
30
+ openapi_types (dict): The key is attribute name
31
+ and the value is attribute type.
32
+ attribute_map (dict): The key is attribute name
33
+ and the value is json key in definition.
34
+ """
35
+ openapi_types = {
36
+ 'tag': 'str',
37
+ 'process_param': 'ProcessParam',
38
+ 'image': 'str',
39
+ 'thumbnails': 'bool',
40
+ }
41
+
42
+ attribute_map = {
43
+ 'tag': 'tag',
44
+ 'process_param': 'processParam',
45
+ 'image': 'image',
46
+ 'thumbnails': 'thumbnails',
47
+ }
48
+
49
+ def __init__(self, tag=None, process_param=None, image=None, thumbnails=False, local_vars_configuration=None): # noqa: E501
50
+ """DetectRequest - a model defined in OpenAPI""" # noqa: E501
51
+ if local_vars_configuration is None:
52
+ local_vars_configuration = Configuration()
53
+ self.local_vars_configuration = local_vars_configuration
54
+
55
+ self._tag = None
56
+ self._process_param = None
57
+ self._image = None
58
+ self._thumbnails = None
59
+ self.discriminator = None
60
+
61
+ if tag is not None:
62
+ self.tag = tag
63
+ if process_param is not None:
64
+ self.process_param = process_param
65
+ if image is not None:
66
+ self.image = image
67
+ if thumbnails is not None:
68
+ self.thumbnails = thumbnails
69
+
70
+ @property
71
+ def tag(self):
72
+ """Gets the tag of this DetectRequest. # noqa: E501
73
+
74
+ Session identificator, should be unique for each session. # noqa: E501
75
+
76
+ :return: The tag of this DetectRequest. # noqa: E501
77
+ :rtype: str
78
+ """
79
+ return self._tag
80
+
81
+ @tag.setter
82
+ def tag(self, tag):
83
+ """Sets the tag of this DetectRequest.
84
+
85
+ Session identificator, should be unique for each session. # noqa: E501
86
+
87
+ :param tag: The tag of this DetectRequest. # noqa: E501
88
+ :type tag: str
89
+ """
90
+
91
+ self._tag = tag
92
+
93
+ @property
94
+ def process_param(self):
95
+ """Gets the process_param of this DetectRequest. # noqa: E501
96
+
97
+
98
+ :return: The process_param of this DetectRequest. # noqa: E501
99
+ :rtype: ProcessParam
100
+ """
101
+ return self._process_param
102
+
103
+ @process_param.setter
104
+ def process_param(self, process_param):
105
+ """Sets the process_param of this DetectRequest.
106
+
107
+
108
+ :param process_param: The process_param of this DetectRequest. # noqa: E501
109
+ :type process_param: ProcessParam
110
+ """
111
+
112
+ self._process_param = process_param
113
+
114
+ @property
115
+ def image(self):
116
+ """Gets the image of this DetectRequest. # noqa: E501
117
+
118
+ Base64-encoded image. # noqa: E501
119
+
120
+ :return: The image of this DetectRequest. # noqa: E501
121
+ :rtype: str
122
+ """
123
+ return self._image
124
+
125
+ @image.setter
126
+ def image(self, image):
127
+ """Sets the image of this DetectRequest.
128
+
129
+ Base64-encoded image. # noqa: E501
130
+
131
+ :param image: The image of this DetectRequest. # noqa: E501
132
+ :type image: str
133
+ """
134
+
135
+ self._image = image
136
+
137
+ @property
138
+ def thumbnails(self):
139
+ """Gets the thumbnails of this DetectRequest. # noqa: E501
140
+
141
+ Use `processParam.outputImageParams.crop` instead. # noqa: E501
142
+
143
+ :return: The thumbnails of this DetectRequest. # noqa: E501
144
+ :rtype: bool
145
+ """
146
+ return self._thumbnails
147
+
148
+ @thumbnails.setter
149
+ def thumbnails(self, thumbnails):
150
+ """Sets the thumbnails of this DetectRequest.
151
+
152
+ Use `processParam.outputImageParams.crop` instead. # noqa: E501
153
+
154
+ :param thumbnails: The thumbnails of this DetectRequest. # noqa: E501
155
+ :type thumbnails: bool
156
+ """
157
+
158
+ self._thumbnails = thumbnails
159
+
160
+ def to_dict(self):
161
+ """Returns the model properties as a dict"""
162
+ result = {}
163
+
164
+ for attr, _ in six.iteritems(self.openapi_types):
165
+ value = getattr(self, attr)
166
+ if isinstance(value, list):
167
+ result[attr] = list(map(
168
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
169
+ value
170
+ ))
171
+ elif hasattr(value, "to_dict"):
172
+ result[attr] = value.to_dict()
173
+ elif isinstance(value, dict):
174
+ result[attr] = dict(map(
175
+ lambda item: (item[0], item[1].to_dict())
176
+ if hasattr(item[1], "to_dict") else item,
177
+ value.items()
178
+ ))
179
+ else:
180
+ result[attr] = value
181
+
182
+ return result
183
+
184
+ def to_str(self):
185
+ """Returns the string representation of the model"""
186
+ return pprint.pformat(self.to_dict())
187
+
188
+ def __repr__(self):
189
+ """For `print` and `pprint`"""
190
+ return self.to_str()
191
+
192
+ def __eq__(self, other):
193
+ """Returns true if both objects are equal"""
194
+ if not isinstance(other, DetectRequest):
195
+ return False
196
+
197
+ return self.to_dict() == other.to_dict()
198
+
199
+ def __ne__(self, other):
200
+ """Returns true if both objects are not equal"""
201
+ if not isinstance(other, DetectRequest):
202
+ return True
203
+
204
+ return self.to_dict() != other.to_dict()