tencentcloud-sdk-python-intl-en 3.0.1186__py2.py3-none-any.whl → 3.0.1188__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.

@@ -8553,6 +8553,370 @@ class RecognizeBrazilRNEOCRResponse(AbstractModel):
8553
8553
  self._RequestId = params.get("RequestId")
8554
8554
 
8555
8555
 
8556
+ class RecognizeBrazilRNMOCRRequest(AbstractModel):
8557
+ """RecognizeBrazilRNMOCR request structure.
8558
+
8559
+ """
8560
+
8561
+ def __init__(self):
8562
+ r"""
8563
+ :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.
8564
+ :type ImageBase64: str
8565
+ :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.
8566
+ :type ImageUrl: str
8567
+ :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.
8568
+ :type BackImageBase64: str
8569
+ :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.
8570
+ :type BackImageUrl: str
8571
+ :param _ReturnHeadImage: Whether to return portrait photos.
8572
+ :type ReturnHeadImage: bool
8573
+ """
8574
+ self._ImageBase64 = None
8575
+ self._ImageUrl = None
8576
+ self._BackImageBase64 = None
8577
+ self._BackImageUrl = None
8578
+ self._ReturnHeadImage = None
8579
+
8580
+ @property
8581
+ def ImageBase64(self):
8582
+ """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.
8583
+ :rtype: str
8584
+ """
8585
+ return self._ImageBase64
8586
+
8587
+ @ImageBase64.setter
8588
+ def ImageBase64(self, ImageBase64):
8589
+ self._ImageBase64 = ImageBase64
8590
+
8591
+ @property
8592
+ def ImageUrl(self):
8593
+ """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.
8594
+ :rtype: str
8595
+ """
8596
+ return self._ImageUrl
8597
+
8598
+ @ImageUrl.setter
8599
+ def ImageUrl(self, ImageUrl):
8600
+ self._ImageUrl = ImageUrl
8601
+
8602
+ @property
8603
+ def BackImageBase64(self):
8604
+ """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.
8605
+ :rtype: str
8606
+ """
8607
+ return self._BackImageBase64
8608
+
8609
+ @BackImageBase64.setter
8610
+ def BackImageBase64(self, BackImageBase64):
8611
+ self._BackImageBase64 = BackImageBase64
8612
+
8613
+ @property
8614
+ def BackImageUrl(self):
8615
+ """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.
8616
+ :rtype: str
8617
+ """
8618
+ return self._BackImageUrl
8619
+
8620
+ @BackImageUrl.setter
8621
+ def BackImageUrl(self, BackImageUrl):
8622
+ self._BackImageUrl = BackImageUrl
8623
+
8624
+ @property
8625
+ def ReturnHeadImage(self):
8626
+ """Whether to return portrait photos.
8627
+ :rtype: bool
8628
+ """
8629
+ return self._ReturnHeadImage
8630
+
8631
+ @ReturnHeadImage.setter
8632
+ def ReturnHeadImage(self, ReturnHeadImage):
8633
+ self._ReturnHeadImage = ReturnHeadImage
8634
+
8635
+
8636
+ def _deserialize(self, params):
8637
+ self._ImageBase64 = params.get("ImageBase64")
8638
+ self._ImageUrl = params.get("ImageUrl")
8639
+ self._BackImageBase64 = params.get("BackImageBase64")
8640
+ self._BackImageUrl = params.get("BackImageUrl")
8641
+ self._ReturnHeadImage = params.get("ReturnHeadImage")
8642
+ memeber_set = set(params.keys())
8643
+ for name, value in vars(self).items():
8644
+ property_name = name[1:]
8645
+ if property_name in memeber_set:
8646
+ memeber_set.remove(property_name)
8647
+ if len(memeber_set) > 0:
8648
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
8649
+
8650
+
8651
+
8652
+ class RecognizeBrazilRNMOCRResponse(AbstractModel):
8653
+ """RecognizeBrazilRNMOCR response structure.
8654
+
8655
+ """
8656
+
8657
+ def __init__(self):
8658
+ r"""
8659
+ :param _SOBRENOME: Last name
8660
+ :type SOBRENOME: str
8661
+ :param _NOME: First name
8662
+ :type NOME: str
8663
+ :param _DATADENASCIMENTO: Date of Birth
8664
+ :type DATADENASCIMENTO: str
8665
+ :param _SEXO: Gender
8666
+ :type SEXO: str
8667
+ :param _MEMBERSHIP: Parents name
8668
+ :type MEMBERSHIP: str
8669
+ :param _NACIONALIDADE: Nationality
8670
+ :type NACIONALIDADE: str
8671
+ :param _VALIDADE: Expiry Date
8672
+ :type VALIDADE: str
8673
+ :param _RNM: RNM
8674
+ :type RNM: str
8675
+ :param _CPF: CPF
8676
+ :type CPF: str
8677
+ :param _CLASSIFICATION:
8678
+ :type CLASSIFICATION: str
8679
+ :param _PRAZODERESIDENCIA:
8680
+ :type PRAZODERESIDENCIA: str
8681
+ :param _ISSUANCE: Issue Date
8682
+ :type ISSUANCE: str
8683
+ :param _AMPAROLEGAL: Legal basis
8684
+ :type AMPAROLEGAL: str
8685
+ :param _MRZ: Machine readable zone code
8686
+ :type MRZ: str
8687
+ :param _PortraitImage: PortraitImage
8688
+ :type PortraitImage: str
8689
+ :param _PortraitImageBack: PortraitImage(Back)
8690
+ :type PortraitImageBack: str
8691
+ :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.
8692
+ :type RequestId: str
8693
+ """
8694
+ self._SOBRENOME = None
8695
+ self._NOME = None
8696
+ self._DATADENASCIMENTO = None
8697
+ self._SEXO = None
8698
+ self._MEMBERSHIP = None
8699
+ self._NACIONALIDADE = None
8700
+ self._VALIDADE = None
8701
+ self._RNM = None
8702
+ self._CPF = None
8703
+ self._CLASSIFICATION = None
8704
+ self._PRAZODERESIDENCIA = None
8705
+ self._ISSUANCE = None
8706
+ self._AMPAROLEGAL = None
8707
+ self._MRZ = None
8708
+ self._PortraitImage = None
8709
+ self._PortraitImageBack = None
8710
+ self._RequestId = None
8711
+
8712
+ @property
8713
+ def SOBRENOME(self):
8714
+ """Last name
8715
+ :rtype: str
8716
+ """
8717
+ return self._SOBRENOME
8718
+
8719
+ @SOBRENOME.setter
8720
+ def SOBRENOME(self, SOBRENOME):
8721
+ self._SOBRENOME = SOBRENOME
8722
+
8723
+ @property
8724
+ def NOME(self):
8725
+ """First name
8726
+ :rtype: str
8727
+ """
8728
+ return self._NOME
8729
+
8730
+ @NOME.setter
8731
+ def NOME(self, NOME):
8732
+ self._NOME = NOME
8733
+
8734
+ @property
8735
+ def DATADENASCIMENTO(self):
8736
+ """Date of Birth
8737
+ :rtype: str
8738
+ """
8739
+ return self._DATADENASCIMENTO
8740
+
8741
+ @DATADENASCIMENTO.setter
8742
+ def DATADENASCIMENTO(self, DATADENASCIMENTO):
8743
+ self._DATADENASCIMENTO = DATADENASCIMENTO
8744
+
8745
+ @property
8746
+ def SEXO(self):
8747
+ """Gender
8748
+ :rtype: str
8749
+ """
8750
+ return self._SEXO
8751
+
8752
+ @SEXO.setter
8753
+ def SEXO(self, SEXO):
8754
+ self._SEXO = SEXO
8755
+
8756
+ @property
8757
+ def MEMBERSHIP(self):
8758
+ """Parents name
8759
+ :rtype: str
8760
+ """
8761
+ return self._MEMBERSHIP
8762
+
8763
+ @MEMBERSHIP.setter
8764
+ def MEMBERSHIP(self, MEMBERSHIP):
8765
+ self._MEMBERSHIP = MEMBERSHIP
8766
+
8767
+ @property
8768
+ def NACIONALIDADE(self):
8769
+ """Nationality
8770
+ :rtype: str
8771
+ """
8772
+ return self._NACIONALIDADE
8773
+
8774
+ @NACIONALIDADE.setter
8775
+ def NACIONALIDADE(self, NACIONALIDADE):
8776
+ self._NACIONALIDADE = NACIONALIDADE
8777
+
8778
+ @property
8779
+ def VALIDADE(self):
8780
+ """Expiry Date
8781
+ :rtype: str
8782
+ """
8783
+ return self._VALIDADE
8784
+
8785
+ @VALIDADE.setter
8786
+ def VALIDADE(self, VALIDADE):
8787
+ self._VALIDADE = VALIDADE
8788
+
8789
+ @property
8790
+ def RNM(self):
8791
+ """RNM
8792
+ :rtype: str
8793
+ """
8794
+ return self._RNM
8795
+
8796
+ @RNM.setter
8797
+ def RNM(self, RNM):
8798
+ self._RNM = RNM
8799
+
8800
+ @property
8801
+ def CPF(self):
8802
+ """CPF
8803
+ :rtype: str
8804
+ """
8805
+ return self._CPF
8806
+
8807
+ @CPF.setter
8808
+ def CPF(self, CPF):
8809
+ self._CPF = CPF
8810
+
8811
+ @property
8812
+ def CLASSIFICATION(self):
8813
+ """
8814
+ :rtype: str
8815
+ """
8816
+ return self._CLASSIFICATION
8817
+
8818
+ @CLASSIFICATION.setter
8819
+ def CLASSIFICATION(self, CLASSIFICATION):
8820
+ self._CLASSIFICATION = CLASSIFICATION
8821
+
8822
+ @property
8823
+ def PRAZODERESIDENCIA(self):
8824
+ """
8825
+ :rtype: str
8826
+ """
8827
+ return self._PRAZODERESIDENCIA
8828
+
8829
+ @PRAZODERESIDENCIA.setter
8830
+ def PRAZODERESIDENCIA(self, PRAZODERESIDENCIA):
8831
+ self._PRAZODERESIDENCIA = PRAZODERESIDENCIA
8832
+
8833
+ @property
8834
+ def ISSUANCE(self):
8835
+ """Issue Date
8836
+ :rtype: str
8837
+ """
8838
+ return self._ISSUANCE
8839
+
8840
+ @ISSUANCE.setter
8841
+ def ISSUANCE(self, ISSUANCE):
8842
+ self._ISSUANCE = ISSUANCE
8843
+
8844
+ @property
8845
+ def AMPAROLEGAL(self):
8846
+ """Legal basis
8847
+ :rtype: str
8848
+ """
8849
+ return self._AMPAROLEGAL
8850
+
8851
+ @AMPAROLEGAL.setter
8852
+ def AMPAROLEGAL(self, AMPAROLEGAL):
8853
+ self._AMPAROLEGAL = AMPAROLEGAL
8854
+
8855
+ @property
8856
+ def MRZ(self):
8857
+ """Machine readable zone code
8858
+ :rtype: str
8859
+ """
8860
+ return self._MRZ
8861
+
8862
+ @MRZ.setter
8863
+ def MRZ(self, MRZ):
8864
+ self._MRZ = MRZ
8865
+
8866
+ @property
8867
+ def PortraitImage(self):
8868
+ """PortraitImage
8869
+ :rtype: str
8870
+ """
8871
+ return self._PortraitImage
8872
+
8873
+ @PortraitImage.setter
8874
+ def PortraitImage(self, PortraitImage):
8875
+ self._PortraitImage = PortraitImage
8876
+
8877
+ @property
8878
+ def PortraitImageBack(self):
8879
+ """PortraitImage(Back)
8880
+ :rtype: str
8881
+ """
8882
+ return self._PortraitImageBack
8883
+
8884
+ @PortraitImageBack.setter
8885
+ def PortraitImageBack(self, PortraitImageBack):
8886
+ self._PortraitImageBack = PortraitImageBack
8887
+
8888
+ @property
8889
+ def RequestId(self):
8890
+ """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.
8891
+ :rtype: str
8892
+ """
8893
+ return self._RequestId
8894
+
8895
+ @RequestId.setter
8896
+ def RequestId(self, RequestId):
8897
+ self._RequestId = RequestId
8898
+
8899
+
8900
+ def _deserialize(self, params):
8901
+ self._SOBRENOME = params.get("SOBRENOME")
8902
+ self._NOME = params.get("NOME")
8903
+ self._DATADENASCIMENTO = params.get("DATADENASCIMENTO")
8904
+ self._SEXO = params.get("SEXO")
8905
+ self._MEMBERSHIP = params.get("MEMBERSHIP")
8906
+ self._NACIONALIDADE = params.get("NACIONALIDADE")
8907
+ self._VALIDADE = params.get("VALIDADE")
8908
+ self._RNM = params.get("RNM")
8909
+ self._CPF = params.get("CPF")
8910
+ self._CLASSIFICATION = params.get("CLASSIFICATION")
8911
+ self._PRAZODERESIDENCIA = params.get("PRAZODERESIDENCIA")
8912
+ self._ISSUANCE = params.get("ISSUANCE")
8913
+ self._AMPAROLEGAL = params.get("AMPAROLEGAL")
8914
+ self._MRZ = params.get("MRZ")
8915
+ self._PortraitImage = params.get("PortraitImage")
8916
+ self._PortraitImageBack = params.get("PortraitImageBack")
8917
+ self._RequestId = params.get("RequestId")
8918
+
8919
+
8556
8920
  class RecognizeGeneralInvoiceRequest(AbstractModel):
8557
8921
  """RecognizeGeneralInvoice request structure.
8558
8922
 
@@ -422,6 +422,29 @@ class OcrClient(AbstractClient):
422
422
  raise TencentCloudSDKException(type(e).__name__, str(e))
423
423
 
424
424
 
425
+ def RecognizeBrazilRNMOCR(self, request):
426
+ """This interface supports identification of the front and back of Brazilian RNM license. The default interface request frequency limit is 5 times per second.
427
+
428
+ :param request: Request instance for RecognizeBrazilRNMOCR.
429
+ :type request: :class:`tencentcloud.ocr.v20181119.models.RecognizeBrazilRNMOCRRequest`
430
+ :rtype: :class:`tencentcloud.ocr.v20181119.models.RecognizeBrazilRNMOCRResponse`
431
+
432
+ """
433
+ try:
434
+ params = request._serialize()
435
+ headers = request.headers
436
+ body = self.call("RecognizeBrazilRNMOCR", params, headers=headers)
437
+ response = json.loads(body)
438
+ model = models.RecognizeBrazilRNMOCRResponse()
439
+ model._deserialize(response["Response"])
440
+ return model
441
+ except Exception as e:
442
+ if isinstance(e, TencentCloudSDKException):
443
+ raise
444
+ else:
445
+ raise TencentCloudSDKException(type(e).__name__, str(e))
446
+
447
+
425
448
  def RecognizeGeneralInvoice(self, request):
426
449
  """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).
427
450