tencentcloud-sdk-python-intl-en 3.0.1160__py2.py3-none-any.whl → 3.0.1162__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 CHANGED
@@ -13,4 +13,4 @@
13
13
  # See the License for the specific language governing permissions and
14
14
  # limitations under the License.
15
15
 
16
- __version__ = '3.0.1160'
16
+ __version__ = '3.0.1162'
@@ -7870,6 +7870,340 @@ class RecognizeBrazilDriverLicenseOCRResponse(AbstractModel):
7870
7870
  self._RequestId = params.get("RequestId")
7871
7871
 
7872
7872
 
7873
+ class RecognizeBrazilIDCardOCRRequest(AbstractModel):
7874
+ """RecognizeBrazilIDCardOCR request structure.
7875
+
7876
+ """
7877
+
7878
+ def __init__(self):
7879
+ r"""
7880
+ :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 does not exceed 7M after Base64 encoding. Image download time does not exceed 3 seconds.
7881
+ :type ImageBase64: str
7882
+ :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.
7883
+ :type ImageUrl: str
7884
+ :param _BackImageBase64: Base64 value of the image on the back of the card. 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. An ImageUrl and ImageBase64 must be provided. If both are provided, only ImageUrl will be used.
7885
+ :type BackImageBase64: str
7886
+ :param _BackImageUrl: The URL address of the image on the back of the card. Supported image formats: PNG, JPG, JPEG, GIF format is not supported yet. Supported image size: The downloaded image does not exceed 7M after Base64 encoding. The image download time does not exceed 3 seconds. The URL of the image stored in Tencent Cloud can ensure higher download speed and stability. It is recommended to store the image in Tencent Cloud. The speed and stability of the URL stored outside Tencent Cloud may be affected to a certain extent.
7887
+ :type BackImageUrl: str
7888
+ :param _ReturnHeadImage: Whether to return portrait photos.
7889
+ :type ReturnHeadImage: bool
7890
+ """
7891
+ self._ImageBase64 = None
7892
+ self._ImageUrl = None
7893
+ self._BackImageBase64 = None
7894
+ self._BackImageUrl = None
7895
+ self._ReturnHeadImage = None
7896
+
7897
+ @property
7898
+ def ImageBase64(self):
7899
+ """Base64 value of the image. Supported image formats: PNG, JPG, JPEG, GIF format is not supported yet. Supported image size: The downloaded image does not exceed 7M after Base64 encoding. Image download time does not exceed 3 seconds.
7900
+ :rtype: str
7901
+ """
7902
+ return self._ImageBase64
7903
+
7904
+ @ImageBase64.setter
7905
+ def ImageBase64(self, ImageBase64):
7906
+ self._ImageBase64 = ImageBase64
7907
+
7908
+ @property
7909
+ def ImageUrl(self):
7910
+ """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.
7911
+ :rtype: str
7912
+ """
7913
+ return self._ImageUrl
7914
+
7915
+ @ImageUrl.setter
7916
+ def ImageUrl(self, ImageUrl):
7917
+ self._ImageUrl = ImageUrl
7918
+
7919
+ @property
7920
+ def BackImageBase64(self):
7921
+ """Base64 value of the image on the back of the card. 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. An ImageUrl and ImageBase64 must be provided. If both are provided, only ImageUrl will be used.
7922
+ :rtype: str
7923
+ """
7924
+ return self._BackImageBase64
7925
+
7926
+ @BackImageBase64.setter
7927
+ def BackImageBase64(self, BackImageBase64):
7928
+ self._BackImageBase64 = BackImageBase64
7929
+
7930
+ @property
7931
+ def BackImageUrl(self):
7932
+ """The URL address of the image on the back of the card. Supported image formats: PNG, JPG, JPEG, GIF format is not supported yet. Supported image size: The downloaded image does not exceed 7M after Base64 encoding. The image download time does not exceed 3 seconds. The URL of the image stored in Tencent Cloud can ensure higher download speed and stability. It is recommended to store the image in Tencent Cloud. The speed and stability of the URL stored outside Tencent Cloud may be affected to a certain extent.
7933
+ :rtype: str
7934
+ """
7935
+ return self._BackImageUrl
7936
+
7937
+ @BackImageUrl.setter
7938
+ def BackImageUrl(self, BackImageUrl):
7939
+ self._BackImageUrl = BackImageUrl
7940
+
7941
+ @property
7942
+ def ReturnHeadImage(self):
7943
+ """Whether to return portrait photos.
7944
+ :rtype: bool
7945
+ """
7946
+ return self._ReturnHeadImage
7947
+
7948
+ @ReturnHeadImage.setter
7949
+ def ReturnHeadImage(self, ReturnHeadImage):
7950
+ self._ReturnHeadImage = ReturnHeadImage
7951
+
7952
+
7953
+ def _deserialize(self, params):
7954
+ self._ImageBase64 = params.get("ImageBase64")
7955
+ self._ImageUrl = params.get("ImageUrl")
7956
+ self._BackImageBase64 = params.get("BackImageBase64")
7957
+ self._BackImageUrl = params.get("BackImageUrl")
7958
+ self._ReturnHeadImage = params.get("ReturnHeadImage")
7959
+ memeber_set = set(params.keys())
7960
+ for name, value in vars(self).items():
7961
+ property_name = name[1:]
7962
+ if property_name in memeber_set:
7963
+ memeber_set.remove(property_name)
7964
+ if len(memeber_set) > 0:
7965
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
7966
+
7967
+
7968
+
7969
+ class RecognizeBrazilIDCardOCRResponse(AbstractModel):
7970
+ """RecognizeBrazilIDCardOCR response structure.
7971
+
7972
+ """
7973
+
7974
+ def __init__(self):
7975
+ r"""
7976
+ :param _Nome: Name
7977
+ :type Nome: str
7978
+ :param _MemberShip: Family information
7979
+ :type MemberShip: str
7980
+ :param _DataNascimento: Birthday
7981
+ :type DataNascimento: str
7982
+ :param _IssuingAgency: Issuing agency
7983
+ :type IssuingAgency: str
7984
+ :param _Fatorrh: blood type
7985
+ :type Fatorrh: str
7986
+ :param _NaturalIDade: Birth place
7987
+ :type NaturalIDade: str
7988
+ :param _Observations: Additional information
7989
+ :type Observations: str
7990
+ :param _CPF: CPF
7991
+ :type CPF: str
7992
+ :param _DNI: DNI
7993
+ :type DNI: str
7994
+ :param _RegistroGeral: universal registration
7995
+ :type RegistroGeral: str
7996
+ :param _DispatchDate: Issue date
7997
+ :type DispatchDate: str
7998
+ :param _Registro: address
7999
+ :type Registro: str
8000
+ :param _PortraitImage: Portrait image
8001
+ :type PortraitImage: str
8002
+ :param _DocOrigem: Original identity information
8003
+ :type DocOrigem: str
8004
+ :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.
8005
+ :type RequestId: str
8006
+ """
8007
+ self._Nome = None
8008
+ self._MemberShip = None
8009
+ self._DataNascimento = None
8010
+ self._IssuingAgency = None
8011
+ self._Fatorrh = None
8012
+ self._NaturalIDade = None
8013
+ self._Observations = None
8014
+ self._CPF = None
8015
+ self._DNI = None
8016
+ self._RegistroGeral = None
8017
+ self._DispatchDate = None
8018
+ self._Registro = None
8019
+ self._PortraitImage = None
8020
+ self._DocOrigem = None
8021
+ self._RequestId = None
8022
+
8023
+ @property
8024
+ def Nome(self):
8025
+ """Name
8026
+ :rtype: str
8027
+ """
8028
+ return self._Nome
8029
+
8030
+ @Nome.setter
8031
+ def Nome(self, Nome):
8032
+ self._Nome = Nome
8033
+
8034
+ @property
8035
+ def MemberShip(self):
8036
+ """Family information
8037
+ :rtype: str
8038
+ """
8039
+ return self._MemberShip
8040
+
8041
+ @MemberShip.setter
8042
+ def MemberShip(self, MemberShip):
8043
+ self._MemberShip = MemberShip
8044
+
8045
+ @property
8046
+ def DataNascimento(self):
8047
+ """Birthday
8048
+ :rtype: str
8049
+ """
8050
+ return self._DataNascimento
8051
+
8052
+ @DataNascimento.setter
8053
+ def DataNascimento(self, DataNascimento):
8054
+ self._DataNascimento = DataNascimento
8055
+
8056
+ @property
8057
+ def IssuingAgency(self):
8058
+ """Issuing agency
8059
+ :rtype: str
8060
+ """
8061
+ return self._IssuingAgency
8062
+
8063
+ @IssuingAgency.setter
8064
+ def IssuingAgency(self, IssuingAgency):
8065
+ self._IssuingAgency = IssuingAgency
8066
+
8067
+ @property
8068
+ def Fatorrh(self):
8069
+ """blood type
8070
+ :rtype: str
8071
+ """
8072
+ return self._Fatorrh
8073
+
8074
+ @Fatorrh.setter
8075
+ def Fatorrh(self, Fatorrh):
8076
+ self._Fatorrh = Fatorrh
8077
+
8078
+ @property
8079
+ def NaturalIDade(self):
8080
+ """Birth place
8081
+ :rtype: str
8082
+ """
8083
+ return self._NaturalIDade
8084
+
8085
+ @NaturalIDade.setter
8086
+ def NaturalIDade(self, NaturalIDade):
8087
+ self._NaturalIDade = NaturalIDade
8088
+
8089
+ @property
8090
+ def Observations(self):
8091
+ """Additional information
8092
+ :rtype: str
8093
+ """
8094
+ return self._Observations
8095
+
8096
+ @Observations.setter
8097
+ def Observations(self, Observations):
8098
+ self._Observations = Observations
8099
+
8100
+ @property
8101
+ def CPF(self):
8102
+ """CPF
8103
+ :rtype: str
8104
+ """
8105
+ return self._CPF
8106
+
8107
+ @CPF.setter
8108
+ def CPF(self, CPF):
8109
+ self._CPF = CPF
8110
+
8111
+ @property
8112
+ def DNI(self):
8113
+ """DNI
8114
+ :rtype: str
8115
+ """
8116
+ return self._DNI
8117
+
8118
+ @DNI.setter
8119
+ def DNI(self, DNI):
8120
+ self._DNI = DNI
8121
+
8122
+ @property
8123
+ def RegistroGeral(self):
8124
+ """universal registration
8125
+ :rtype: str
8126
+ """
8127
+ return self._RegistroGeral
8128
+
8129
+ @RegistroGeral.setter
8130
+ def RegistroGeral(self, RegistroGeral):
8131
+ self._RegistroGeral = RegistroGeral
8132
+
8133
+ @property
8134
+ def DispatchDate(self):
8135
+ """Issue date
8136
+ :rtype: str
8137
+ """
8138
+ return self._DispatchDate
8139
+
8140
+ @DispatchDate.setter
8141
+ def DispatchDate(self, DispatchDate):
8142
+ self._DispatchDate = DispatchDate
8143
+
8144
+ @property
8145
+ def Registro(self):
8146
+ """address
8147
+ :rtype: str
8148
+ """
8149
+ return self._Registro
8150
+
8151
+ @Registro.setter
8152
+ def Registro(self, Registro):
8153
+ self._Registro = Registro
8154
+
8155
+ @property
8156
+ def PortraitImage(self):
8157
+ """Portrait image
8158
+ :rtype: str
8159
+ """
8160
+ return self._PortraitImage
8161
+
8162
+ @PortraitImage.setter
8163
+ def PortraitImage(self, PortraitImage):
8164
+ self._PortraitImage = PortraitImage
8165
+
8166
+ @property
8167
+ def DocOrigem(self):
8168
+ """Original identity information
8169
+ :rtype: str
8170
+ """
8171
+ return self._DocOrigem
8172
+
8173
+ @DocOrigem.setter
8174
+ def DocOrigem(self, DocOrigem):
8175
+ self._DocOrigem = DocOrigem
8176
+
8177
+ @property
8178
+ def RequestId(self):
8179
+ """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.
8180
+ :rtype: str
8181
+ """
8182
+ return self._RequestId
8183
+
8184
+ @RequestId.setter
8185
+ def RequestId(self, RequestId):
8186
+ self._RequestId = RequestId
8187
+
8188
+
8189
+ def _deserialize(self, params):
8190
+ self._Nome = params.get("Nome")
8191
+ self._MemberShip = params.get("MemberShip")
8192
+ self._DataNascimento = params.get("DataNascimento")
8193
+ self._IssuingAgency = params.get("IssuingAgency")
8194
+ self._Fatorrh = params.get("Fatorrh")
8195
+ self._NaturalIDade = params.get("NaturalIDade")
8196
+ self._Observations = params.get("Observations")
8197
+ self._CPF = params.get("CPF")
8198
+ self._DNI = params.get("DNI")
8199
+ self._RegistroGeral = params.get("RegistroGeral")
8200
+ self._DispatchDate = params.get("DispatchDate")
8201
+ self._Registro = params.get("Registro")
8202
+ self._PortraitImage = params.get("PortraitImage")
8203
+ self._DocOrigem = params.get("DocOrigem")
8204
+ self._RequestId = params.get("RequestId")
8205
+
8206
+
7873
8207
  class RecognizeGeneralInvoiceRequest(AbstractModel):
7874
8208
  """RecognizeGeneralInvoice request structure.
7875
8209
 
@@ -376,6 +376,29 @@ class OcrClient(AbstractClient):
376
376
  raise TencentCloudSDKException(type(e).__name__, str(e))
377
377
 
378
378
 
379
+ def RecognizeBrazilIDCardOCR(self, request):
380
+ """This interface supports identification of the front and back of Brazilian ID license. The identification fields include name, driver's license category, number, validity period, etc.
381
+
382
+ :param request: Request instance for RecognizeBrazilIDCardOCR.
383
+ :type request: :class:`tencentcloud.ocr.v20181119.models.RecognizeBrazilIDCardOCRRequest`
384
+ :rtype: :class:`tencentcloud.ocr.v20181119.models.RecognizeBrazilIDCardOCRResponse`
385
+
386
+ """
387
+ try:
388
+ params = request._serialize()
389
+ headers = request.headers
390
+ body = self.call("RecognizeBrazilIDCardOCR", params, headers=headers)
391
+ response = json.loads(body)
392
+ model = models.RecognizeBrazilIDCardOCRResponse()
393
+ model._deserialize(response["Response"])
394
+ return model
395
+ except Exception as e:
396
+ if isinstance(e, TencentCloudSDKException):
397
+ raise
398
+ else:
399
+ raise TencentCloudSDKException(type(e).__name__, str(e))
400
+
401
+
379
402
  def RecognizeGeneralInvoice(self, request):
380
403
  """This API is used to recognize various types of invoices or tickets in an image or PDF file. You can also specify a type. 14 types of standard expense reimbursement invoices are supported, including value-added tax (VAT) invoice (special, general, roll, blockchain, and toll), fully digitalized electronic invoice (special and general), non-tax revenue invoice (general receipt and general payment voucher), quota invoice, general machine-printed invoice, car sales invoice (motor vehicle sales invoice and used car invoice), train ticket, taxi receipt, itinerary/receipt of e-ticket for air transportation, bus ticket, ship ticket, toll receipt, and medical invoice (inpatient and outpatient). This API can also be used for intelligent recognition of other types of invoices. To try now, click [here](https://intl.cloud.tencent.com/product/ocr?from_cn_redirect=1).
381
404