tencentcloud-sdk-python-intl-en 3.0.1225__py2.py3-none-any.whl → 3.0.1226__py2.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 tencentcloud-sdk-python-intl-en might be problematic. Click here for more details.
- tencentcloud/__init__.py +1 -1
- tencentcloud/ocr/v20181119/models.py +304 -0
- tencentcloud/ocr/v20181119/ocr_client.py +23 -0
- {tencentcloud_sdk_python_intl_en-3.0.1225.dist-info → tencentcloud_sdk_python_intl_en-3.0.1226.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python_intl_en-3.0.1225.dist-info → tencentcloud_sdk_python_intl_en-3.0.1226.dist-info}/RECORD +7 -7
- {tencentcloud_sdk_python_intl_en-3.0.1225.dist-info → tencentcloud_sdk_python_intl_en-3.0.1226.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_intl_en-3.0.1225.dist-info → tencentcloud_sdk_python_intl_en-3.0.1226.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
|
@@ -10859,6 +10859,310 @@ class RecognizeMainlandIDCardOCRResponse(AbstractModel):
|
|
|
10859
10859
|
self._RequestId = params.get("RequestId")
|
|
10860
10860
|
|
|
10861
10861
|
|
|
10862
|
+
class RecognizeMexicoVTIDRequest(AbstractModel):
|
|
10863
|
+
"""RecognizeMexicoVTID request structure.
|
|
10864
|
+
|
|
10865
|
+
"""
|
|
10866
|
+
|
|
10867
|
+
def __init__(self):
|
|
10868
|
+
r"""
|
|
10869
|
+
:param _ImageBase64: Base64 value of the image. Supported image formats: PNG, JPG, JPEG, GIF format is not supported yet. Supported image size: The downloaded image should not exceed 7M after Base64 encoding. Image downloading time should not exceed 3 seconds.
|
|
10870
|
+
:type ImageBase64: str
|
|
10871
|
+
:param _ImageUrl: URL address of the image. Supported image formats: PNG, JPG, JPEG, GIF format is not supported yet. Supported image size: The downloaded image should not exceed 7M after Base64 encoding. Image download time should not exceed 3 seconds. URLs of images stored in Tencent Cloud can guarantee higher download speed and stability. It is recommended that images be stored in Tencent Cloud. The speed and stability of URLs not stored in Tencent Cloud may be affected to a certain extent.
|
|
10872
|
+
:type ImageUrl: str
|
|
10873
|
+
:param _ReturnHeadImage: Whether to return portrait photos.
|
|
10874
|
+
:type ReturnHeadImage: bool
|
|
10875
|
+
"""
|
|
10876
|
+
self._ImageBase64 = None
|
|
10877
|
+
self._ImageUrl = None
|
|
10878
|
+
self._ReturnHeadImage = None
|
|
10879
|
+
|
|
10880
|
+
@property
|
|
10881
|
+
def ImageBase64(self):
|
|
10882
|
+
"""Base64 value of the image. Supported image formats: PNG, JPG, JPEG, GIF format is not supported yet. Supported image size: The downloaded image should not exceed 7M after Base64 encoding. Image downloading time should not exceed 3 seconds.
|
|
10883
|
+
:rtype: str
|
|
10884
|
+
"""
|
|
10885
|
+
return self._ImageBase64
|
|
10886
|
+
|
|
10887
|
+
@ImageBase64.setter
|
|
10888
|
+
def ImageBase64(self, ImageBase64):
|
|
10889
|
+
self._ImageBase64 = ImageBase64
|
|
10890
|
+
|
|
10891
|
+
@property
|
|
10892
|
+
def ImageUrl(self):
|
|
10893
|
+
"""URL address of the image. Supported image formats: PNG, JPG, JPEG, GIF format is not supported yet. Supported image size: The downloaded image should not exceed 7M after Base64 encoding. Image download time should not exceed 3 seconds. URLs of images stored in Tencent Cloud can guarantee higher download speed and stability. It is recommended that images be stored in Tencent Cloud. The speed and stability of URLs not stored in Tencent Cloud may be affected to a certain extent.
|
|
10894
|
+
:rtype: str
|
|
10895
|
+
"""
|
|
10896
|
+
return self._ImageUrl
|
|
10897
|
+
|
|
10898
|
+
@ImageUrl.setter
|
|
10899
|
+
def ImageUrl(self, ImageUrl):
|
|
10900
|
+
self._ImageUrl = ImageUrl
|
|
10901
|
+
|
|
10902
|
+
@property
|
|
10903
|
+
def ReturnHeadImage(self):
|
|
10904
|
+
"""Whether to return portrait photos.
|
|
10905
|
+
:rtype: bool
|
|
10906
|
+
"""
|
|
10907
|
+
return self._ReturnHeadImage
|
|
10908
|
+
|
|
10909
|
+
@ReturnHeadImage.setter
|
|
10910
|
+
def ReturnHeadImage(self, ReturnHeadImage):
|
|
10911
|
+
self._ReturnHeadImage = ReturnHeadImage
|
|
10912
|
+
|
|
10913
|
+
|
|
10914
|
+
def _deserialize(self, params):
|
|
10915
|
+
self._ImageBase64 = params.get("ImageBase64")
|
|
10916
|
+
self._ImageUrl = params.get("ImageUrl")
|
|
10917
|
+
self._ReturnHeadImage = params.get("ReturnHeadImage")
|
|
10918
|
+
memeber_set = set(params.keys())
|
|
10919
|
+
for name, value in vars(self).items():
|
|
10920
|
+
property_name = name[1:]
|
|
10921
|
+
if property_name in memeber_set:
|
|
10922
|
+
memeber_set.remove(property_name)
|
|
10923
|
+
if len(memeber_set) > 0:
|
|
10924
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
10925
|
+
|
|
10926
|
+
|
|
10927
|
+
|
|
10928
|
+
class RecognizeMexicoVTIDResponse(AbstractModel):
|
|
10929
|
+
"""RecognizeMexicoVTID response structure.
|
|
10930
|
+
|
|
10931
|
+
"""
|
|
10932
|
+
|
|
10933
|
+
def __init__(self):
|
|
10934
|
+
r"""
|
|
10935
|
+
:param _Name: Name
|
|
10936
|
+
:type Name: str
|
|
10937
|
+
:param _Sex: Sex
|
|
10938
|
+
:type Sex: str
|
|
10939
|
+
:param _Address: Address
|
|
10940
|
+
:type Address: str
|
|
10941
|
+
:param _VotePIN: Vote PIN Code
|
|
10942
|
+
:type VotePIN: str
|
|
10943
|
+
:param _CURP: Unique Population Registry Code
|
|
10944
|
+
:type CURP: str
|
|
10945
|
+
:param _Birth: Birthday
|
|
10946
|
+
:type Birth: str
|
|
10947
|
+
:param _SECCION: Section Number
|
|
10948
|
+
:type SECCION: str
|
|
10949
|
+
:param _IssueDate: IssueDate
|
|
10950
|
+
:type IssueDate: str
|
|
10951
|
+
:param _ValidDate: ValidDate
|
|
10952
|
+
:type ValidDate: str
|
|
10953
|
+
:param _State: State
|
|
10954
|
+
:type State: str
|
|
10955
|
+
:param _City: City
|
|
10956
|
+
:type City: str
|
|
10957
|
+
:param _Locality: Locality
|
|
10958
|
+
:type Locality: str
|
|
10959
|
+
:param _EMISION: Edition
|
|
10960
|
+
:type EMISION: str
|
|
10961
|
+
:param _PortraitImage: Portrait image base64
|
|
10962
|
+
:type PortraitImage: str
|
|
10963
|
+
:param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
10964
|
+
:type RequestId: str
|
|
10965
|
+
"""
|
|
10966
|
+
self._Name = None
|
|
10967
|
+
self._Sex = None
|
|
10968
|
+
self._Address = None
|
|
10969
|
+
self._VotePIN = None
|
|
10970
|
+
self._CURP = None
|
|
10971
|
+
self._Birth = None
|
|
10972
|
+
self._SECCION = None
|
|
10973
|
+
self._IssueDate = None
|
|
10974
|
+
self._ValidDate = None
|
|
10975
|
+
self._State = None
|
|
10976
|
+
self._City = None
|
|
10977
|
+
self._Locality = None
|
|
10978
|
+
self._EMISION = None
|
|
10979
|
+
self._PortraitImage = None
|
|
10980
|
+
self._RequestId = None
|
|
10981
|
+
|
|
10982
|
+
@property
|
|
10983
|
+
def Name(self):
|
|
10984
|
+
"""Name
|
|
10985
|
+
:rtype: str
|
|
10986
|
+
"""
|
|
10987
|
+
return self._Name
|
|
10988
|
+
|
|
10989
|
+
@Name.setter
|
|
10990
|
+
def Name(self, Name):
|
|
10991
|
+
self._Name = Name
|
|
10992
|
+
|
|
10993
|
+
@property
|
|
10994
|
+
def Sex(self):
|
|
10995
|
+
"""Sex
|
|
10996
|
+
:rtype: str
|
|
10997
|
+
"""
|
|
10998
|
+
return self._Sex
|
|
10999
|
+
|
|
11000
|
+
@Sex.setter
|
|
11001
|
+
def Sex(self, Sex):
|
|
11002
|
+
self._Sex = Sex
|
|
11003
|
+
|
|
11004
|
+
@property
|
|
11005
|
+
def Address(self):
|
|
11006
|
+
"""Address
|
|
11007
|
+
:rtype: str
|
|
11008
|
+
"""
|
|
11009
|
+
return self._Address
|
|
11010
|
+
|
|
11011
|
+
@Address.setter
|
|
11012
|
+
def Address(self, Address):
|
|
11013
|
+
self._Address = Address
|
|
11014
|
+
|
|
11015
|
+
@property
|
|
11016
|
+
def VotePIN(self):
|
|
11017
|
+
"""Vote PIN Code
|
|
11018
|
+
:rtype: str
|
|
11019
|
+
"""
|
|
11020
|
+
return self._VotePIN
|
|
11021
|
+
|
|
11022
|
+
@VotePIN.setter
|
|
11023
|
+
def VotePIN(self, VotePIN):
|
|
11024
|
+
self._VotePIN = VotePIN
|
|
11025
|
+
|
|
11026
|
+
@property
|
|
11027
|
+
def CURP(self):
|
|
11028
|
+
"""Unique Population Registry Code
|
|
11029
|
+
:rtype: str
|
|
11030
|
+
"""
|
|
11031
|
+
return self._CURP
|
|
11032
|
+
|
|
11033
|
+
@CURP.setter
|
|
11034
|
+
def CURP(self, CURP):
|
|
11035
|
+
self._CURP = CURP
|
|
11036
|
+
|
|
11037
|
+
@property
|
|
11038
|
+
def Birth(self):
|
|
11039
|
+
"""Birthday
|
|
11040
|
+
:rtype: str
|
|
11041
|
+
"""
|
|
11042
|
+
return self._Birth
|
|
11043
|
+
|
|
11044
|
+
@Birth.setter
|
|
11045
|
+
def Birth(self, Birth):
|
|
11046
|
+
self._Birth = Birth
|
|
11047
|
+
|
|
11048
|
+
@property
|
|
11049
|
+
def SECCION(self):
|
|
11050
|
+
"""Section Number
|
|
11051
|
+
:rtype: str
|
|
11052
|
+
"""
|
|
11053
|
+
return self._SECCION
|
|
11054
|
+
|
|
11055
|
+
@SECCION.setter
|
|
11056
|
+
def SECCION(self, SECCION):
|
|
11057
|
+
self._SECCION = SECCION
|
|
11058
|
+
|
|
11059
|
+
@property
|
|
11060
|
+
def IssueDate(self):
|
|
11061
|
+
"""IssueDate
|
|
11062
|
+
:rtype: str
|
|
11063
|
+
"""
|
|
11064
|
+
return self._IssueDate
|
|
11065
|
+
|
|
11066
|
+
@IssueDate.setter
|
|
11067
|
+
def IssueDate(self, IssueDate):
|
|
11068
|
+
self._IssueDate = IssueDate
|
|
11069
|
+
|
|
11070
|
+
@property
|
|
11071
|
+
def ValidDate(self):
|
|
11072
|
+
"""ValidDate
|
|
11073
|
+
:rtype: str
|
|
11074
|
+
"""
|
|
11075
|
+
return self._ValidDate
|
|
11076
|
+
|
|
11077
|
+
@ValidDate.setter
|
|
11078
|
+
def ValidDate(self, ValidDate):
|
|
11079
|
+
self._ValidDate = ValidDate
|
|
11080
|
+
|
|
11081
|
+
@property
|
|
11082
|
+
def State(self):
|
|
11083
|
+
"""State
|
|
11084
|
+
:rtype: str
|
|
11085
|
+
"""
|
|
11086
|
+
return self._State
|
|
11087
|
+
|
|
11088
|
+
@State.setter
|
|
11089
|
+
def State(self, State):
|
|
11090
|
+
self._State = State
|
|
11091
|
+
|
|
11092
|
+
@property
|
|
11093
|
+
def City(self):
|
|
11094
|
+
"""City
|
|
11095
|
+
:rtype: str
|
|
11096
|
+
"""
|
|
11097
|
+
return self._City
|
|
11098
|
+
|
|
11099
|
+
@City.setter
|
|
11100
|
+
def City(self, City):
|
|
11101
|
+
self._City = City
|
|
11102
|
+
|
|
11103
|
+
@property
|
|
11104
|
+
def Locality(self):
|
|
11105
|
+
"""Locality
|
|
11106
|
+
:rtype: str
|
|
11107
|
+
"""
|
|
11108
|
+
return self._Locality
|
|
11109
|
+
|
|
11110
|
+
@Locality.setter
|
|
11111
|
+
def Locality(self, Locality):
|
|
11112
|
+
self._Locality = Locality
|
|
11113
|
+
|
|
11114
|
+
@property
|
|
11115
|
+
def EMISION(self):
|
|
11116
|
+
"""Edition
|
|
11117
|
+
:rtype: str
|
|
11118
|
+
"""
|
|
11119
|
+
return self._EMISION
|
|
11120
|
+
|
|
11121
|
+
@EMISION.setter
|
|
11122
|
+
def EMISION(self, EMISION):
|
|
11123
|
+
self._EMISION = EMISION
|
|
11124
|
+
|
|
11125
|
+
@property
|
|
11126
|
+
def PortraitImage(self):
|
|
11127
|
+
"""Portrait image base64
|
|
11128
|
+
:rtype: str
|
|
11129
|
+
"""
|
|
11130
|
+
return self._PortraitImage
|
|
11131
|
+
|
|
11132
|
+
@PortraitImage.setter
|
|
11133
|
+
def PortraitImage(self, PortraitImage):
|
|
11134
|
+
self._PortraitImage = PortraitImage
|
|
11135
|
+
|
|
11136
|
+
@property
|
|
11137
|
+
def RequestId(self):
|
|
11138
|
+
"""The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
11139
|
+
:rtype: str
|
|
11140
|
+
"""
|
|
11141
|
+
return self._RequestId
|
|
11142
|
+
|
|
11143
|
+
@RequestId.setter
|
|
11144
|
+
def RequestId(self, RequestId):
|
|
11145
|
+
self._RequestId = RequestId
|
|
11146
|
+
|
|
11147
|
+
|
|
11148
|
+
def _deserialize(self, params):
|
|
11149
|
+
self._Name = params.get("Name")
|
|
11150
|
+
self._Sex = params.get("Sex")
|
|
11151
|
+
self._Address = params.get("Address")
|
|
11152
|
+
self._VotePIN = params.get("VotePIN")
|
|
11153
|
+
self._CURP = params.get("CURP")
|
|
11154
|
+
self._Birth = params.get("Birth")
|
|
11155
|
+
self._SECCION = params.get("SECCION")
|
|
11156
|
+
self._IssueDate = params.get("IssueDate")
|
|
11157
|
+
self._ValidDate = params.get("ValidDate")
|
|
11158
|
+
self._State = params.get("State")
|
|
11159
|
+
self._City = params.get("City")
|
|
11160
|
+
self._Locality = params.get("Locality")
|
|
11161
|
+
self._EMISION = params.get("EMISION")
|
|
11162
|
+
self._PortraitImage = params.get("PortraitImage")
|
|
11163
|
+
self._RequestId = params.get("RequestId")
|
|
11164
|
+
|
|
11165
|
+
|
|
10862
11166
|
class RecognizePhilippinesDrivingLicenseOCRRequest(AbstractModel):
|
|
10863
11167
|
"""RecognizePhilippinesDrivingLicenseOCR request structure.
|
|
10864
11168
|
|
|
@@ -714,6 +714,29 @@ class OcrClient(AbstractClient):
|
|
|
714
714
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
715
715
|
|
|
716
716
|
|
|
717
|
+
def RecognizeMexicoVTID(self, request):
|
|
718
|
+
"""This interface supports identification of the front and back of Mexican Voter ID Card. The default interface request frequency limit is 5 times per second.
|
|
719
|
+
|
|
720
|
+
:param request: Request instance for RecognizeMexicoVTID.
|
|
721
|
+
:type request: :class:`tencentcloud.ocr.v20181119.models.RecognizeMexicoVTIDRequest`
|
|
722
|
+
:rtype: :class:`tencentcloud.ocr.v20181119.models.RecognizeMexicoVTIDResponse`
|
|
723
|
+
|
|
724
|
+
"""
|
|
725
|
+
try:
|
|
726
|
+
params = request._serialize()
|
|
727
|
+
headers = request.headers
|
|
728
|
+
body = self.call("RecognizeMexicoVTID", params, headers=headers)
|
|
729
|
+
response = json.loads(body)
|
|
730
|
+
model = models.RecognizeMexicoVTIDResponse()
|
|
731
|
+
model._deserialize(response["Response"])
|
|
732
|
+
return model
|
|
733
|
+
except Exception as e:
|
|
734
|
+
if isinstance(e, TencentCloudSDKException):
|
|
735
|
+
raise
|
|
736
|
+
else:
|
|
737
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
738
|
+
|
|
739
|
+
|
|
717
740
|
def RecognizePhilippinesDrivingLicenseOCR(self, request):
|
|
718
741
|
"""This API is used to recognize a Philippine driver's license.
|
|
719
742
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
tencentcloud/__init__.py,sha256
|
|
1
|
+
tencentcloud/__init__.py,sha256=iv7BJ-4uh6EVHPqag86qDqPfONZvTlFUUBoNfgLHRMA,630
|
|
2
2
|
tencentcloud/advisor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
3
|
tencentcloud/advisor/v20200721/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
tencentcloud/advisor/v20200721/advisor_client.py,sha256=FuBG5ZJpmnVpDyVC84G_cjEWSa-mm6oyBvOIDe5SP-g,2924
|
|
@@ -418,8 +418,8 @@ tencentcloud/msp/v20180319/msp_client.py,sha256=ciNfy4xBXjMLxouGxPRu_EnyugEMzKWj
|
|
|
418
418
|
tencentcloud/ocr/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
419
419
|
tencentcloud/ocr/v20181119/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
420
420
|
tencentcloud/ocr/v20181119/errorcodes.py,sha256=hwNIDFXG88AaadfzCfTamVSiVVIYoPf9OftekhNw2vI,4200
|
|
421
|
-
tencentcloud/ocr/v20181119/models.py,sha256=
|
|
422
|
-
tencentcloud/ocr/v20181119/ocr_client.py,sha256=
|
|
421
|
+
tencentcloud/ocr/v20181119/models.py,sha256=M2BpVv8zoLyW8NXQtyvSmQ7aM-5G7wS5S_QssK-sUYQ,600981
|
|
422
|
+
tencentcloud/ocr/v20181119/ocr_client.py,sha256=YqKY6bShDXSGP67uhUi9Gcr6iC_GiBtOpbjLjZ17lp4,51432
|
|
423
423
|
tencentcloud/omics/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
424
424
|
tencentcloud/omics/v20221128/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
425
425
|
tencentcloud/omics/v20221128/errorcodes.py,sha256=VEkh5arAi4YIbf5y4krDS23zC6KcL6WnOxhpPLsiCGc,4862
|
|
@@ -659,7 +659,7 @@ tencentcloud/yunjing/v20180228/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5
|
|
|
659
659
|
tencentcloud/yunjing/v20180228/errorcodes.py,sha256=VEqwMbMBe7F2oAW6ZDu3vAivBr60lbo7FWduFqRTEVg,3195
|
|
660
660
|
tencentcloud/yunjing/v20180228/models.py,sha256=0rnsJ4JkA5aCTV1cVwCuKnzooe6IhQ0NS3ij6tJ22uw,330670
|
|
661
661
|
tencentcloud/yunjing/v20180228/yunjing_client.py,sha256=LY01pPiy1k_AXnHgG0FonGekRSFMY3t9pcYH8aE27oQ,67389
|
|
662
|
-
tencentcloud_sdk_python_intl_en-3.0.
|
|
663
|
-
tencentcloud_sdk_python_intl_en-3.0.
|
|
664
|
-
tencentcloud_sdk_python_intl_en-3.0.
|
|
665
|
-
tencentcloud_sdk_python_intl_en-3.0.
|
|
662
|
+
tencentcloud_sdk_python_intl_en-3.0.1226.dist-info/METADATA,sha256=d94GTtTMGXenE_LIAOSwp4B6ZF_s5LFOjT_wglbQZWw,1628
|
|
663
|
+
tencentcloud_sdk_python_intl_en-3.0.1226.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
|
|
664
|
+
tencentcloud_sdk_python_intl_en-3.0.1226.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
665
|
+
tencentcloud_sdk_python_intl_en-3.0.1226.dist-info/RECORD,,
|
|
File without changes
|