tencentcloud-sdk-python-intl-en 3.0.1185__py2.py3-none-any.whl → 3.0.1187__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/intlpartnersmgt/v20220928/intlpartnersmgt_client.py +24 -0
- tencentcloud/intlpartnersmgt/v20220928/models.py +363 -0
- tencentcloud/ocr/v20181119/models.py +364 -0
- tencentcloud/ocr/v20181119/ocr_client.py +23 -0
- tencentcloud/vod/v20180717/errorcodes.py +4 -1
- tencentcloud/vod/v20180717/models.py +52 -33
- tencentcloud/wedata/v20210820/models.py +1280 -110
- tencentcloud/wedata/v20210820/wedata_client.py +69 -0
- {tencentcloud_sdk_python_intl_en-3.0.1185.dist-info → tencentcloud_sdk_python_intl_en-3.0.1187.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python_intl_en-3.0.1185.dist-info → tencentcloud_sdk_python_intl_en-3.0.1187.dist-info}/RECORD +13 -13
- {tencentcloud_sdk_python_intl_en-3.0.1185.dist-info → tencentcloud_sdk_python_intl_en-3.0.1187.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_intl_en-3.0.1185.dist-info → tencentcloud_sdk_python_intl_en-3.0.1187.dist-info}/top_level.txt +0 -0
|
@@ -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
|
|
|
@@ -347,6 +347,9 @@ INVALIDPARAMETERVALUE_ISPERSISTENCE = 'InvalidParameterValue.IsPersistence'
|
|
|
347
347
|
# Invalid `Isps`.
|
|
348
348
|
INVALIDPARAMETERVALUE_ISPS = 'InvalidParameterValue.Isps'
|
|
349
349
|
|
|
350
|
+
#
|
|
351
|
+
INVALIDPARAMETERVALUE_ITEMID = 'InvalidParameterValue.ItemId'
|
|
352
|
+
|
|
350
353
|
# Incorrect parameter value: the timestamp content is too long.
|
|
351
354
|
INVALIDPARAMETERVALUE_KEYFRAMEDESCCONTENTTOOLONG = 'InvalidParameterValue.KeyFrameDescContentTooLong'
|
|
352
355
|
|
|
@@ -641,7 +644,7 @@ LIMITEXCEEDED_RUNNINGROUNDPLAYS = 'LimitExceeded.RunningRoundPlays'
|
|
|
641
644
|
# Limit exceeded: the total number of new and old tags exceeds the limit.
|
|
642
645
|
LIMITEXCEEDED_TAGCOUNTREACHMAX = 'LimitExceeded.TagCountReachMax'
|
|
643
646
|
|
|
644
|
-
# Limit exceeded: The number of templates exceeds the upper limit of 100. If you need more, please[Submit a ticket](https://console.tencentcloud.com/workorder/category)
|
|
647
|
+
# Limit exceeded: The number of templates exceeds the upper limit of 100. If you need more, please[Submit a ticket](https://console.tencentcloud.com/workorder/category).
|
|
645
648
|
LIMITEXCEEDED_TOOMUCHTEMPLATE = 'LimitExceeded.TooMuchTemplate'
|
|
646
649
|
|
|
647
650
|
# Missing parameter.
|
|
@@ -22368,9 +22368,12 @@ class CreateSubAppIdRequest(AbstractModel):
|
|
|
22368
22368
|
:type Name: str
|
|
22369
22369
|
:param _Description: Subapplication overview. Length limit: 300 characters.
|
|
22370
22370
|
:type Description: str
|
|
22371
|
+
:param _Type:
|
|
22372
|
+
:type Type: str
|
|
22371
22373
|
"""
|
|
22372
22374
|
self._Name = None
|
|
22373
22375
|
self._Description = None
|
|
22376
|
+
self._Type = None
|
|
22374
22377
|
|
|
22375
22378
|
@property
|
|
22376
22379
|
def Name(self):
|
|
@@ -22394,10 +22397,22 @@ class CreateSubAppIdRequest(AbstractModel):
|
|
|
22394
22397
|
def Description(self, Description):
|
|
22395
22398
|
self._Description = Description
|
|
22396
22399
|
|
|
22400
|
+
@property
|
|
22401
|
+
def Type(self):
|
|
22402
|
+
"""
|
|
22403
|
+
:rtype: str
|
|
22404
|
+
"""
|
|
22405
|
+
return self._Type
|
|
22406
|
+
|
|
22407
|
+
@Type.setter
|
|
22408
|
+
def Type(self, Type):
|
|
22409
|
+
self._Type = Type
|
|
22410
|
+
|
|
22397
22411
|
|
|
22398
22412
|
def _deserialize(self, params):
|
|
22399
22413
|
self._Name = params.get("Name")
|
|
22400
22414
|
self._Description = params.get("Description")
|
|
22415
|
+
self._Type = params.get("Type")
|
|
22401
22416
|
memeber_set = set(params.keys())
|
|
22402
22417
|
for name, value in vars(self).items():
|
|
22403
22418
|
property_name = name[1:]
|
|
@@ -25922,17 +25937,17 @@ class DescribeAdaptiveDynamicStreamingTemplatesRequest(AbstractModel):
|
|
|
25922
25937
|
|
|
25923
25938
|
def __init__(self):
|
|
25924
25939
|
r"""
|
|
25925
|
-
:param _SubAppId: <
|
|
25940
|
+
:param _SubAppId: <B>VOD [subapplication](https://intl.cloud.tencent.com/document/product/266/14574?from_cn_redirect=1) id. starting from december 25, 2023, if you want to access resources in the vod application (whether it is the default application or a newly created application), you must enter the application id in this field.</b>.
|
|
25926
25941
|
:type SubAppId: int
|
|
25927
|
-
:param _Definitions: Unique
|
|
25942
|
+
:param _Definitions: Unique id filter of transcoding to adaptive bitrate streaming templates. array length limit: 100.
|
|
25928
25943
|
:type Definitions: list of int non-negative
|
|
25929
|
-
:param _Offset:
|
|
25944
|
+
:param _Offset: Pagination offset. default value: 0.
|
|
25930
25945
|
:type Offset: int
|
|
25931
|
-
:param _Limit: Number of returned entries.
|
|
25946
|
+
:param _Limit: Number of returned entries. default value: 10. maximum value: 100.
|
|
25932
25947
|
:type Limit: int
|
|
25933
|
-
:param _Type: Template type filter.
|
|
25934
|
-
<
|
|
25935
|
-
<
|
|
25948
|
+
:param _Type: Template type filter. valid values:.
|
|
25949
|
+
<Li>Preset: system preset template;</li>.
|
|
25950
|
+
<Li>Custom: user-defined template.</li>.
|
|
25936
25951
|
:type Type: str
|
|
25937
25952
|
"""
|
|
25938
25953
|
self._SubAppId = None
|
|
@@ -25943,7 +25958,7 @@ class DescribeAdaptiveDynamicStreamingTemplatesRequest(AbstractModel):
|
|
|
25943
25958
|
|
|
25944
25959
|
@property
|
|
25945
25960
|
def SubAppId(self):
|
|
25946
|
-
"""<
|
|
25961
|
+
"""<B>VOD [subapplication](https://intl.cloud.tencent.com/document/product/266/14574?from_cn_redirect=1) id. starting from december 25, 2023, if you want to access resources in the vod application (whether it is the default application or a newly created application), you must enter the application id in this field.</b>.
|
|
25947
25962
|
:rtype: int
|
|
25948
25963
|
"""
|
|
25949
25964
|
return self._SubAppId
|
|
@@ -25954,7 +25969,7 @@ class DescribeAdaptiveDynamicStreamingTemplatesRequest(AbstractModel):
|
|
|
25954
25969
|
|
|
25955
25970
|
@property
|
|
25956
25971
|
def Definitions(self):
|
|
25957
|
-
"""Unique
|
|
25972
|
+
"""Unique id filter of transcoding to adaptive bitrate streaming templates. array length limit: 100.
|
|
25958
25973
|
:rtype: list of int non-negative
|
|
25959
25974
|
"""
|
|
25960
25975
|
return self._Definitions
|
|
@@ -25965,7 +25980,7 @@ class DescribeAdaptiveDynamicStreamingTemplatesRequest(AbstractModel):
|
|
|
25965
25980
|
|
|
25966
25981
|
@property
|
|
25967
25982
|
def Offset(self):
|
|
25968
|
-
"""
|
|
25983
|
+
"""Pagination offset. default value: 0.
|
|
25969
25984
|
:rtype: int
|
|
25970
25985
|
"""
|
|
25971
25986
|
return self._Offset
|
|
@@ -25976,7 +25991,7 @@ class DescribeAdaptiveDynamicStreamingTemplatesRequest(AbstractModel):
|
|
|
25976
25991
|
|
|
25977
25992
|
@property
|
|
25978
25993
|
def Limit(self):
|
|
25979
|
-
"""Number of returned entries.
|
|
25994
|
+
"""Number of returned entries. default value: 10. maximum value: 100.
|
|
25980
25995
|
:rtype: int
|
|
25981
25996
|
"""
|
|
25982
25997
|
return self._Limit
|
|
@@ -25987,9 +26002,9 @@ class DescribeAdaptiveDynamicStreamingTemplatesRequest(AbstractModel):
|
|
|
25987
26002
|
|
|
25988
26003
|
@property
|
|
25989
26004
|
def Type(self):
|
|
25990
|
-
"""Template type filter.
|
|
25991
|
-
<
|
|
25992
|
-
<
|
|
26005
|
+
"""Template type filter. valid values:.
|
|
26006
|
+
<Li>Preset: system preset template;</li>.
|
|
26007
|
+
<Li>Custom: user-defined template.</li>.
|
|
25993
26008
|
:rtype: str
|
|
25994
26009
|
"""
|
|
25995
26010
|
return self._Type
|
|
@@ -26022,7 +26037,7 @@ class DescribeAdaptiveDynamicStreamingTemplatesResponse(AbstractModel):
|
|
|
26022
26037
|
|
|
26023
26038
|
def __init__(self):
|
|
26024
26039
|
r"""
|
|
26025
|
-
:param _TotalCount:
|
|
26040
|
+
:param _TotalCount: The total number of records matching the filter criteria.
|
|
26026
26041
|
:type TotalCount: int
|
|
26027
26042
|
:param _AdaptiveDynamicStreamingTemplateSet: List of transcoding to adaptive bitrate streaming template details.
|
|
26028
26043
|
:type AdaptiveDynamicStreamingTemplateSet: list of AdaptiveDynamicStreamingTemplate
|
|
@@ -26035,7 +26050,7 @@ class DescribeAdaptiveDynamicStreamingTemplatesResponse(AbstractModel):
|
|
|
26035
26050
|
|
|
26036
26051
|
@property
|
|
26037
26052
|
def TotalCount(self):
|
|
26038
|
-
"""
|
|
26053
|
+
"""The total number of records matching the filter criteria.
|
|
26039
26054
|
:rtype: int
|
|
26040
26055
|
"""
|
|
26041
26056
|
return self._TotalCount
|
|
@@ -35549,7 +35564,7 @@ class EnhanceMediaQualityOutputConfig(AbstractModel):
|
|
|
35549
35564
|
:param _ClassId: Category ID, used for media classification management, can be obtained by [creating a category](https://intl.cloud.tencent.com/document/product/266/7812?from_cn_redirect=1) interface, create a category, get the category ID.
|
|
35550
35565
|
<li>Default value: 0, which means other categories.</li>
|
|
35551
35566
|
:type ClassId: int
|
|
35552
|
-
:param _ExpireTime: The expiration time of the output file, the file will be deleted after this time, the default is never to expire, the format is in accordance with the ISO 8601 standard, see [ISO date format description](https://intl.cloud.tencent.com/document/product/266/11732?from_cn_redirect=1#I)
|
|
35567
|
+
:param _ExpireTime: The expiration time of the output file, the file will be deleted after this time, the default is never to expire, the format is in accordance with the ISO 8601 standard, see [ISO date format description](https://intl.cloud.tencent.com/document/product/266/11732?from_cn_redirect=1#I).
|
|
35553
35568
|
:type ExpireTime: str
|
|
35554
35569
|
"""
|
|
35555
35570
|
self._MediaName = None
|
|
@@ -35581,7 +35596,7 @@ class EnhanceMediaQualityOutputConfig(AbstractModel):
|
|
|
35581
35596
|
|
|
35582
35597
|
@property
|
|
35583
35598
|
def ExpireTime(self):
|
|
35584
|
-
"""The expiration time of the output file, the file will be deleted after this time, the default is never to expire, the format is in accordance with the ISO 8601 standard, see [ISO date format description](https://intl.cloud.tencent.com/document/product/266/11732?from_cn_redirect=1#I)
|
|
35599
|
+
"""The expiration time of the output file, the file will be deleted after this time, the default is never to expire, the format is in accordance with the ISO 8601 standard, see [ISO date format description](https://intl.cloud.tencent.com/document/product/266/11732?from_cn_redirect=1#I).
|
|
35585
35600
|
:rtype: str
|
|
35586
35601
|
"""
|
|
35587
35602
|
return self._ExpireTime
|
|
@@ -64961,10 +64976,10 @@ class RestoreMediaRequest(AbstractModel):
|
|
|
64961
64976
|
r"""
|
|
64962
64977
|
:param _FileIds: Media file unique identifier list, maximum length: 100.
|
|
64963
64978
|
:type FileIds: list of str
|
|
64964
|
-
:param _SubAppId: <b>The VOD [application](https://intl.cloud.tencent.com/document/product/266/14574) ID. For customers who activate VOD service from December 25, 2023, if they want to access resources in a VOD application (whether it's the default application or a newly created one), they must fill in this field with the application ID.</b>
|
|
64965
|
-
:type SubAppId: int
|
|
64966
64979
|
:param _RestoreDay: The accessible duration of the unfrozen temporary media files must be greater than 0, and the unit is "days".
|
|
64967
64980
|
:type RestoreDay: int
|
|
64981
|
+
:param _SubAppId: <b>The VOD [application](https://intl.cloud.tencent.com/document/product/266/14574) ID. For customers who activate VOD service from December 25, 2023, if they want to access resources in a VOD application (whether it's the default application or a newly created one), they must fill in this field with the application ID.</b>
|
|
64982
|
+
:type SubAppId: int
|
|
64968
64983
|
:param _RestoreTier: The retrieval mode. If the current storage class is ARCHIVE, the valid values for this parameter are as follows:
|
|
64969
64984
|
<li>Expedited: The files are made available in five minutes.</li>
|
|
64970
64985
|
<li>Standard: The files are made available in five hours.</li>
|
|
@@ -64975,8 +64990,8 @@ If the current storage class is DEEP ARCHIVE, the valid values for this paramete
|
|
|
64975
64990
|
:type RestoreTier: str
|
|
64976
64991
|
"""
|
|
64977
64992
|
self._FileIds = None
|
|
64978
|
-
self._SubAppId = None
|
|
64979
64993
|
self._RestoreDay = None
|
|
64994
|
+
self._SubAppId = None
|
|
64980
64995
|
self._RestoreTier = None
|
|
64981
64996
|
|
|
64982
64997
|
@property
|
|
@@ -64990,17 +65005,6 @@ If the current storage class is DEEP ARCHIVE, the valid values for this paramete
|
|
|
64990
65005
|
def FileIds(self, FileIds):
|
|
64991
65006
|
self._FileIds = FileIds
|
|
64992
65007
|
|
|
64993
|
-
@property
|
|
64994
|
-
def SubAppId(self):
|
|
64995
|
-
"""<b>The VOD [application](https://intl.cloud.tencent.com/document/product/266/14574) ID. For customers who activate VOD service from December 25, 2023, if they want to access resources in a VOD application (whether it's the default application or a newly created one), they must fill in this field with the application ID.</b>
|
|
64996
|
-
:rtype: int
|
|
64997
|
-
"""
|
|
64998
|
-
return self._SubAppId
|
|
64999
|
-
|
|
65000
|
-
@SubAppId.setter
|
|
65001
|
-
def SubAppId(self, SubAppId):
|
|
65002
|
-
self._SubAppId = SubAppId
|
|
65003
|
-
|
|
65004
65008
|
@property
|
|
65005
65009
|
def RestoreDay(self):
|
|
65006
65010
|
"""The accessible duration of the unfrozen temporary media files must be greater than 0, and the unit is "days".
|
|
@@ -65012,6 +65016,17 @@ If the current storage class is DEEP ARCHIVE, the valid values for this paramete
|
|
|
65012
65016
|
def RestoreDay(self, RestoreDay):
|
|
65013
65017
|
self._RestoreDay = RestoreDay
|
|
65014
65018
|
|
|
65019
|
+
@property
|
|
65020
|
+
def SubAppId(self):
|
|
65021
|
+
"""<b>The VOD [application](https://intl.cloud.tencent.com/document/product/266/14574) ID. For customers who activate VOD service from December 25, 2023, if they want to access resources in a VOD application (whether it's the default application or a newly created one), they must fill in this field with the application ID.</b>
|
|
65022
|
+
:rtype: int
|
|
65023
|
+
"""
|
|
65024
|
+
return self._SubAppId
|
|
65025
|
+
|
|
65026
|
+
@SubAppId.setter
|
|
65027
|
+
def SubAppId(self, SubAppId):
|
|
65028
|
+
self._SubAppId = SubAppId
|
|
65029
|
+
|
|
65015
65030
|
@property
|
|
65016
65031
|
def RestoreTier(self):
|
|
65017
65032
|
"""The retrieval mode. If the current storage class is ARCHIVE, the valid values for this parameter are as follows:
|
|
@@ -65032,8 +65047,8 @@ If the current storage class is DEEP ARCHIVE, the valid values for this paramete
|
|
|
65032
65047
|
|
|
65033
65048
|
def _deserialize(self, params):
|
|
65034
65049
|
self._FileIds = params.get("FileIds")
|
|
65035
|
-
self._SubAppId = params.get("SubAppId")
|
|
65036
65050
|
self._RestoreDay = params.get("RestoreDay")
|
|
65051
|
+
self._SubAppId = params.get("SubAppId")
|
|
65037
65052
|
self._RestoreTier = params.get("RestoreTier")
|
|
65038
65053
|
memeber_set = set(params.keys())
|
|
65039
65054
|
for name, value in vars(self).items():
|
|
@@ -71279,6 +71294,8 @@ Default value: 0 px.
|
|
|
71279
71294
|
|
|
71280
71295
|
@property
|
|
71281
71296
|
def CycleConfig(self):
|
|
71297
|
+
warnings.warn("parameter `CycleConfig` is deprecated", DeprecationWarning)
|
|
71298
|
+
|
|
71282
71299
|
"""Watermark period configuration is used to configure the watermark to be displayed and hidden periodically.
|
|
71283
71300
|
The main usage scenario is: in order to prevent video from being blocked, watermarks are set in multiple places on the video. These watermarks are periodically displayed and hidden in a fixed order.
|
|
71284
71301
|
For example, set four watermarks A, B, C, and D to be located in the upper left corner, upper right corner, lower right corner, and lower left corner of the video respectively. When the video starts, { A displays for 5 seconds -> B displays for 5 seconds -> C Display for 5 seconds -> D Display for 5 seconds} -> A Display for 5 seconds -> B Display for 5 seconds -> ..., only one watermark is displayed at any time.
|
|
@@ -71292,6 +71309,8 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
71292
71309
|
|
|
71293
71310
|
@CycleConfig.setter
|
|
71294
71311
|
def CycleConfig(self, CycleConfig):
|
|
71312
|
+
warnings.warn("parameter `CycleConfig` is deprecated", DeprecationWarning)
|
|
71313
|
+
|
|
71295
71314
|
self._CycleConfig = CycleConfig
|
|
71296
71315
|
|
|
71297
71316
|
|