tencentcloud-sdk-python-intl-en 3.0.1179__py2.py3-none-any.whl → 3.0.1181__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/cdwpg/v20201230/cdwpg_client.py +368 -0
- tencentcloud/cdwpg/v20201230/models.py +5728 -1694
- tencentcloud/ocr/v20181119/models.py +349 -0
- tencentcloud/ocr/v20181119/ocr_client.py +23 -0
- tencentcloud/teo/v20220901/models.py +152 -154
- {tencentcloud_sdk_python_intl_en-3.0.1179.dist-info → tencentcloud_sdk_python_intl_en-3.0.1181.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python_intl_en-3.0.1179.dist-info → tencentcloud_sdk_python_intl_en-3.0.1181.dist-info}/RECORD +10 -10
- {tencentcloud_sdk_python_intl_en-3.0.1179.dist-info → tencentcloud_sdk_python_intl_en-3.0.1181.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_intl_en-3.0.1179.dist-info → tencentcloud_sdk_python_intl_en-3.0.1181.dist-info}/top_level.txt +0 -0
|
@@ -8204,6 +8204,355 @@ class RecognizeBrazilIDCardOCRResponse(AbstractModel):
|
|
|
8204
8204
|
self._RequestId = params.get("RequestId")
|
|
8205
8205
|
|
|
8206
8206
|
|
|
8207
|
+
class RecognizeBrazilRNEOCRRequest(AbstractModel):
|
|
8208
|
+
"""RecognizeBrazilRNEOCR request structure.
|
|
8209
|
+
|
|
8210
|
+
"""
|
|
8211
|
+
|
|
8212
|
+
def __init__(self):
|
|
8213
|
+
r"""
|
|
8214
|
+
: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.
|
|
8215
|
+
:type ImageBase64: str
|
|
8216
|
+
: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.
|
|
8217
|
+
:type ImageUrl: str
|
|
8218
|
+
: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.
|
|
8219
|
+
:type BackImageBase64: str
|
|
8220
|
+
: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.
|
|
8221
|
+
:type BackImageUrl: str
|
|
8222
|
+
:param _ReturnHeadImage: Whether to return portrait photos.
|
|
8223
|
+
:type ReturnHeadImage: bool
|
|
8224
|
+
"""
|
|
8225
|
+
self._ImageBase64 = None
|
|
8226
|
+
self._ImageUrl = None
|
|
8227
|
+
self._BackImageBase64 = None
|
|
8228
|
+
self._BackImageUrl = None
|
|
8229
|
+
self._ReturnHeadImage = None
|
|
8230
|
+
|
|
8231
|
+
@property
|
|
8232
|
+
def ImageBase64(self):
|
|
8233
|
+
"""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.
|
|
8234
|
+
:rtype: str
|
|
8235
|
+
"""
|
|
8236
|
+
return self._ImageBase64
|
|
8237
|
+
|
|
8238
|
+
@ImageBase64.setter
|
|
8239
|
+
def ImageBase64(self, ImageBase64):
|
|
8240
|
+
self._ImageBase64 = ImageBase64
|
|
8241
|
+
|
|
8242
|
+
@property
|
|
8243
|
+
def ImageUrl(self):
|
|
8244
|
+
"""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.
|
|
8245
|
+
:rtype: str
|
|
8246
|
+
"""
|
|
8247
|
+
return self._ImageUrl
|
|
8248
|
+
|
|
8249
|
+
@ImageUrl.setter
|
|
8250
|
+
def ImageUrl(self, ImageUrl):
|
|
8251
|
+
self._ImageUrl = ImageUrl
|
|
8252
|
+
|
|
8253
|
+
@property
|
|
8254
|
+
def BackImageBase64(self):
|
|
8255
|
+
"""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.
|
|
8256
|
+
:rtype: str
|
|
8257
|
+
"""
|
|
8258
|
+
return self._BackImageBase64
|
|
8259
|
+
|
|
8260
|
+
@BackImageBase64.setter
|
|
8261
|
+
def BackImageBase64(self, BackImageBase64):
|
|
8262
|
+
self._BackImageBase64 = BackImageBase64
|
|
8263
|
+
|
|
8264
|
+
@property
|
|
8265
|
+
def BackImageUrl(self):
|
|
8266
|
+
"""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.
|
|
8267
|
+
:rtype: str
|
|
8268
|
+
"""
|
|
8269
|
+
return self._BackImageUrl
|
|
8270
|
+
|
|
8271
|
+
@BackImageUrl.setter
|
|
8272
|
+
def BackImageUrl(self, BackImageUrl):
|
|
8273
|
+
self._BackImageUrl = BackImageUrl
|
|
8274
|
+
|
|
8275
|
+
@property
|
|
8276
|
+
def ReturnHeadImage(self):
|
|
8277
|
+
"""Whether to return portrait photos.
|
|
8278
|
+
:rtype: bool
|
|
8279
|
+
"""
|
|
8280
|
+
return self._ReturnHeadImage
|
|
8281
|
+
|
|
8282
|
+
@ReturnHeadImage.setter
|
|
8283
|
+
def ReturnHeadImage(self, ReturnHeadImage):
|
|
8284
|
+
self._ReturnHeadImage = ReturnHeadImage
|
|
8285
|
+
|
|
8286
|
+
|
|
8287
|
+
def _deserialize(self, params):
|
|
8288
|
+
self._ImageBase64 = params.get("ImageBase64")
|
|
8289
|
+
self._ImageUrl = params.get("ImageUrl")
|
|
8290
|
+
self._BackImageBase64 = params.get("BackImageBase64")
|
|
8291
|
+
self._BackImageUrl = params.get("BackImageUrl")
|
|
8292
|
+
self._ReturnHeadImage = params.get("ReturnHeadImage")
|
|
8293
|
+
memeber_set = set(params.keys())
|
|
8294
|
+
for name, value in vars(self).items():
|
|
8295
|
+
property_name = name[1:]
|
|
8296
|
+
if property_name in memeber_set:
|
|
8297
|
+
memeber_set.remove(property_name)
|
|
8298
|
+
if len(memeber_set) > 0:
|
|
8299
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
8300
|
+
|
|
8301
|
+
|
|
8302
|
+
|
|
8303
|
+
class RecognizeBrazilRNEOCRResponse(AbstractModel):
|
|
8304
|
+
"""RecognizeBrazilRNEOCR response structure.
|
|
8305
|
+
|
|
8306
|
+
"""
|
|
8307
|
+
|
|
8308
|
+
def __init__(self):
|
|
8309
|
+
r"""
|
|
8310
|
+
:param _RNE: RNE
|
|
8311
|
+
:type RNE: str
|
|
8312
|
+
:param _CLASSIFICATION: Classification
|
|
8313
|
+
:type CLASSIFICATION: str
|
|
8314
|
+
:param _VALIDADE: Valid date
|
|
8315
|
+
:type VALIDADE: str
|
|
8316
|
+
:param _NOME: Name
|
|
8317
|
+
:type NOME: str
|
|
8318
|
+
:param _Membership: Family information
|
|
8319
|
+
:type Membership: str
|
|
8320
|
+
:param _NACIONALIDADE: Nationality
|
|
8321
|
+
:type NACIONALIDADE: str
|
|
8322
|
+
:param _NATURALIDADE: Place of Birth
|
|
8323
|
+
:type NATURALIDADE: str
|
|
8324
|
+
:param _IssuingAgency: Issuing agency
|
|
8325
|
+
:type IssuingAgency: str
|
|
8326
|
+
:param _DateOfBirth: Birthday
|
|
8327
|
+
:type DateOfBirth: str
|
|
8328
|
+
:param _Sex: Gender
|
|
8329
|
+
:type Sex: str
|
|
8330
|
+
:param _EntryDate: Date of entry
|
|
8331
|
+
:type EntryDate: str
|
|
8332
|
+
:param _VIA: VIA
|
|
8333
|
+
:type VIA: str
|
|
8334
|
+
:param _DispatchDate: Dispatch date
|
|
8335
|
+
:type DispatchDate: str
|
|
8336
|
+
:param _MRZ: MRZ
|
|
8337
|
+
:type MRZ: str
|
|
8338
|
+
:param _PortraitImage: PortraitImage base64
|
|
8339
|
+
:type PortraitImage: str
|
|
8340
|
+
: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.
|
|
8341
|
+
:type RequestId: str
|
|
8342
|
+
"""
|
|
8343
|
+
self._RNE = None
|
|
8344
|
+
self._CLASSIFICATION = None
|
|
8345
|
+
self._VALIDADE = None
|
|
8346
|
+
self._NOME = None
|
|
8347
|
+
self._Membership = None
|
|
8348
|
+
self._NACIONALIDADE = None
|
|
8349
|
+
self._NATURALIDADE = None
|
|
8350
|
+
self._IssuingAgency = None
|
|
8351
|
+
self._DateOfBirth = None
|
|
8352
|
+
self._Sex = None
|
|
8353
|
+
self._EntryDate = None
|
|
8354
|
+
self._VIA = None
|
|
8355
|
+
self._DispatchDate = None
|
|
8356
|
+
self._MRZ = None
|
|
8357
|
+
self._PortraitImage = None
|
|
8358
|
+
self._RequestId = None
|
|
8359
|
+
|
|
8360
|
+
@property
|
|
8361
|
+
def RNE(self):
|
|
8362
|
+
"""RNE
|
|
8363
|
+
:rtype: str
|
|
8364
|
+
"""
|
|
8365
|
+
return self._RNE
|
|
8366
|
+
|
|
8367
|
+
@RNE.setter
|
|
8368
|
+
def RNE(self, RNE):
|
|
8369
|
+
self._RNE = RNE
|
|
8370
|
+
|
|
8371
|
+
@property
|
|
8372
|
+
def CLASSIFICATION(self):
|
|
8373
|
+
"""Classification
|
|
8374
|
+
:rtype: str
|
|
8375
|
+
"""
|
|
8376
|
+
return self._CLASSIFICATION
|
|
8377
|
+
|
|
8378
|
+
@CLASSIFICATION.setter
|
|
8379
|
+
def CLASSIFICATION(self, CLASSIFICATION):
|
|
8380
|
+
self._CLASSIFICATION = CLASSIFICATION
|
|
8381
|
+
|
|
8382
|
+
@property
|
|
8383
|
+
def VALIDADE(self):
|
|
8384
|
+
"""Valid date
|
|
8385
|
+
:rtype: str
|
|
8386
|
+
"""
|
|
8387
|
+
return self._VALIDADE
|
|
8388
|
+
|
|
8389
|
+
@VALIDADE.setter
|
|
8390
|
+
def VALIDADE(self, VALIDADE):
|
|
8391
|
+
self._VALIDADE = VALIDADE
|
|
8392
|
+
|
|
8393
|
+
@property
|
|
8394
|
+
def NOME(self):
|
|
8395
|
+
"""Name
|
|
8396
|
+
:rtype: str
|
|
8397
|
+
"""
|
|
8398
|
+
return self._NOME
|
|
8399
|
+
|
|
8400
|
+
@NOME.setter
|
|
8401
|
+
def NOME(self, NOME):
|
|
8402
|
+
self._NOME = NOME
|
|
8403
|
+
|
|
8404
|
+
@property
|
|
8405
|
+
def Membership(self):
|
|
8406
|
+
"""Family information
|
|
8407
|
+
:rtype: str
|
|
8408
|
+
"""
|
|
8409
|
+
return self._Membership
|
|
8410
|
+
|
|
8411
|
+
@Membership.setter
|
|
8412
|
+
def Membership(self, Membership):
|
|
8413
|
+
self._Membership = Membership
|
|
8414
|
+
|
|
8415
|
+
@property
|
|
8416
|
+
def NACIONALIDADE(self):
|
|
8417
|
+
"""Nationality
|
|
8418
|
+
:rtype: str
|
|
8419
|
+
"""
|
|
8420
|
+
return self._NACIONALIDADE
|
|
8421
|
+
|
|
8422
|
+
@NACIONALIDADE.setter
|
|
8423
|
+
def NACIONALIDADE(self, NACIONALIDADE):
|
|
8424
|
+
self._NACIONALIDADE = NACIONALIDADE
|
|
8425
|
+
|
|
8426
|
+
@property
|
|
8427
|
+
def NATURALIDADE(self):
|
|
8428
|
+
"""Place of Birth
|
|
8429
|
+
:rtype: str
|
|
8430
|
+
"""
|
|
8431
|
+
return self._NATURALIDADE
|
|
8432
|
+
|
|
8433
|
+
@NATURALIDADE.setter
|
|
8434
|
+
def NATURALIDADE(self, NATURALIDADE):
|
|
8435
|
+
self._NATURALIDADE = NATURALIDADE
|
|
8436
|
+
|
|
8437
|
+
@property
|
|
8438
|
+
def IssuingAgency(self):
|
|
8439
|
+
"""Issuing agency
|
|
8440
|
+
:rtype: str
|
|
8441
|
+
"""
|
|
8442
|
+
return self._IssuingAgency
|
|
8443
|
+
|
|
8444
|
+
@IssuingAgency.setter
|
|
8445
|
+
def IssuingAgency(self, IssuingAgency):
|
|
8446
|
+
self._IssuingAgency = IssuingAgency
|
|
8447
|
+
|
|
8448
|
+
@property
|
|
8449
|
+
def DateOfBirth(self):
|
|
8450
|
+
"""Birthday
|
|
8451
|
+
:rtype: str
|
|
8452
|
+
"""
|
|
8453
|
+
return self._DateOfBirth
|
|
8454
|
+
|
|
8455
|
+
@DateOfBirth.setter
|
|
8456
|
+
def DateOfBirth(self, DateOfBirth):
|
|
8457
|
+
self._DateOfBirth = DateOfBirth
|
|
8458
|
+
|
|
8459
|
+
@property
|
|
8460
|
+
def Sex(self):
|
|
8461
|
+
"""Gender
|
|
8462
|
+
:rtype: str
|
|
8463
|
+
"""
|
|
8464
|
+
return self._Sex
|
|
8465
|
+
|
|
8466
|
+
@Sex.setter
|
|
8467
|
+
def Sex(self, Sex):
|
|
8468
|
+
self._Sex = Sex
|
|
8469
|
+
|
|
8470
|
+
@property
|
|
8471
|
+
def EntryDate(self):
|
|
8472
|
+
"""Date of entry
|
|
8473
|
+
:rtype: str
|
|
8474
|
+
"""
|
|
8475
|
+
return self._EntryDate
|
|
8476
|
+
|
|
8477
|
+
@EntryDate.setter
|
|
8478
|
+
def EntryDate(self, EntryDate):
|
|
8479
|
+
self._EntryDate = EntryDate
|
|
8480
|
+
|
|
8481
|
+
@property
|
|
8482
|
+
def VIA(self):
|
|
8483
|
+
"""VIA
|
|
8484
|
+
:rtype: str
|
|
8485
|
+
"""
|
|
8486
|
+
return self._VIA
|
|
8487
|
+
|
|
8488
|
+
@VIA.setter
|
|
8489
|
+
def VIA(self, VIA):
|
|
8490
|
+
self._VIA = VIA
|
|
8491
|
+
|
|
8492
|
+
@property
|
|
8493
|
+
def DispatchDate(self):
|
|
8494
|
+
"""Dispatch date
|
|
8495
|
+
:rtype: str
|
|
8496
|
+
"""
|
|
8497
|
+
return self._DispatchDate
|
|
8498
|
+
|
|
8499
|
+
@DispatchDate.setter
|
|
8500
|
+
def DispatchDate(self, DispatchDate):
|
|
8501
|
+
self._DispatchDate = DispatchDate
|
|
8502
|
+
|
|
8503
|
+
@property
|
|
8504
|
+
def MRZ(self):
|
|
8505
|
+
"""MRZ
|
|
8506
|
+
:rtype: str
|
|
8507
|
+
"""
|
|
8508
|
+
return self._MRZ
|
|
8509
|
+
|
|
8510
|
+
@MRZ.setter
|
|
8511
|
+
def MRZ(self, MRZ):
|
|
8512
|
+
self._MRZ = MRZ
|
|
8513
|
+
|
|
8514
|
+
@property
|
|
8515
|
+
def PortraitImage(self):
|
|
8516
|
+
"""PortraitImage base64
|
|
8517
|
+
:rtype: str
|
|
8518
|
+
"""
|
|
8519
|
+
return self._PortraitImage
|
|
8520
|
+
|
|
8521
|
+
@PortraitImage.setter
|
|
8522
|
+
def PortraitImage(self, PortraitImage):
|
|
8523
|
+
self._PortraitImage = PortraitImage
|
|
8524
|
+
|
|
8525
|
+
@property
|
|
8526
|
+
def RequestId(self):
|
|
8527
|
+
"""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.
|
|
8528
|
+
:rtype: str
|
|
8529
|
+
"""
|
|
8530
|
+
return self._RequestId
|
|
8531
|
+
|
|
8532
|
+
@RequestId.setter
|
|
8533
|
+
def RequestId(self, RequestId):
|
|
8534
|
+
self._RequestId = RequestId
|
|
8535
|
+
|
|
8536
|
+
|
|
8537
|
+
def _deserialize(self, params):
|
|
8538
|
+
self._RNE = params.get("RNE")
|
|
8539
|
+
self._CLASSIFICATION = params.get("CLASSIFICATION")
|
|
8540
|
+
self._VALIDADE = params.get("VALIDADE")
|
|
8541
|
+
self._NOME = params.get("NOME")
|
|
8542
|
+
self._Membership = params.get("Membership")
|
|
8543
|
+
self._NACIONALIDADE = params.get("NACIONALIDADE")
|
|
8544
|
+
self._NATURALIDADE = params.get("NATURALIDADE")
|
|
8545
|
+
self._IssuingAgency = params.get("IssuingAgency")
|
|
8546
|
+
self._DateOfBirth = params.get("DateOfBirth")
|
|
8547
|
+
self._Sex = params.get("Sex")
|
|
8548
|
+
self._EntryDate = params.get("EntryDate")
|
|
8549
|
+
self._VIA = params.get("VIA")
|
|
8550
|
+
self._DispatchDate = params.get("DispatchDate")
|
|
8551
|
+
self._MRZ = params.get("MRZ")
|
|
8552
|
+
self._PortraitImage = params.get("PortraitImage")
|
|
8553
|
+
self._RequestId = params.get("RequestId")
|
|
8554
|
+
|
|
8555
|
+
|
|
8207
8556
|
class RecognizeGeneralInvoiceRequest(AbstractModel):
|
|
8208
8557
|
"""RecognizeGeneralInvoice request structure.
|
|
8209
8558
|
|
|
@@ -399,6 +399,29 @@ class OcrClient(AbstractClient):
|
|
|
399
399
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
400
400
|
|
|
401
401
|
|
|
402
|
+
def RecognizeBrazilRNEOCR(self, request):
|
|
403
|
+
"""Brazil RNE document recognition Default interface request frequency limit: 5 times/second
|
|
404
|
+
|
|
405
|
+
:param request: Request instance for RecognizeBrazilRNEOCR.
|
|
406
|
+
:type request: :class:`tencentcloud.ocr.v20181119.models.RecognizeBrazilRNEOCRRequest`
|
|
407
|
+
:rtype: :class:`tencentcloud.ocr.v20181119.models.RecognizeBrazilRNEOCRResponse`
|
|
408
|
+
|
|
409
|
+
"""
|
|
410
|
+
try:
|
|
411
|
+
params = request._serialize()
|
|
412
|
+
headers = request.headers
|
|
413
|
+
body = self.call("RecognizeBrazilRNEOCR", params, headers=headers)
|
|
414
|
+
response = json.loads(body)
|
|
415
|
+
model = models.RecognizeBrazilRNEOCRResponse()
|
|
416
|
+
model._deserialize(response["Response"])
|
|
417
|
+
return model
|
|
418
|
+
except Exception as e:
|
|
419
|
+
if isinstance(e, TencentCloudSDKException):
|
|
420
|
+
raise
|
|
421
|
+
else:
|
|
422
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
423
|
+
|
|
424
|
+
|
|
402
425
|
def RecognizeGeneralInvoice(self, request):
|
|
403
426
|
"""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).
|
|
404
427
|
|