tencentcloud-sdk-python-ocr 3.0.1276__tar.gz → 3.0.1280__tar.gz

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.
Files changed (16) hide show
  1. {tencentcloud-sdk-python-ocr-3.0.1276 → tencentcloud-sdk-python-ocr-3.0.1280}/PKG-INFO +1 -1
  2. {tencentcloud-sdk-python-ocr-3.0.1276 → tencentcloud-sdk-python-ocr-3.0.1280}/setup.py +1 -1
  3. {tencentcloud-sdk-python-ocr-3.0.1276 → tencentcloud-sdk-python-ocr-3.0.1280}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud-sdk-python-ocr-3.0.1276 → tencentcloud-sdk-python-ocr-3.0.1280}/tencentcloud/ocr/v20181119/errorcodes.py +6 -0
  5. {tencentcloud-sdk-python-ocr-3.0.1276 → tencentcloud-sdk-python-ocr-3.0.1280}/tencentcloud/ocr/v20181119/models.py +394 -4
  6. {tencentcloud-sdk-python-ocr-3.0.1276 → tencentcloud-sdk-python-ocr-3.0.1280}/tencentcloud/ocr/v20181119/ocr_client.py +1 -1
  7. {tencentcloud-sdk-python-ocr-3.0.1276 → tencentcloud-sdk-python-ocr-3.0.1280}/tencentcloud_sdk_python_ocr.egg-info/PKG-INFO +1 -1
  8. tencentcloud-sdk-python-ocr-3.0.1280/tencentcloud_sdk_python_ocr.egg-info/requires.txt +1 -0
  9. tencentcloud-sdk-python-ocr-3.0.1276/tencentcloud_sdk_python_ocr.egg-info/requires.txt +0 -1
  10. {tencentcloud-sdk-python-ocr-3.0.1276 → tencentcloud-sdk-python-ocr-3.0.1280}/README.rst +0 -0
  11. {tencentcloud-sdk-python-ocr-3.0.1276 → tencentcloud-sdk-python-ocr-3.0.1280}/setup.cfg +0 -0
  12. {tencentcloud-sdk-python-ocr-3.0.1276 → tencentcloud-sdk-python-ocr-3.0.1280}/tencentcloud/ocr/__init__.py +0 -0
  13. {tencentcloud-sdk-python-ocr-3.0.1276 → tencentcloud-sdk-python-ocr-3.0.1280}/tencentcloud/ocr/v20181119/__init__.py +0 -0
  14. {tencentcloud-sdk-python-ocr-3.0.1276 → tencentcloud-sdk-python-ocr-3.0.1280}/tencentcloud_sdk_python_ocr.egg-info/SOURCES.txt +0 -0
  15. {tencentcloud-sdk-python-ocr-3.0.1276 → tencentcloud-sdk-python-ocr-3.0.1280}/tencentcloud_sdk_python_ocr.egg-info/dependency_links.txt +0 -0
  16. {tencentcloud-sdk-python-ocr-3.0.1276 → tencentcloud-sdk-python-ocr-3.0.1280}/tencentcloud_sdk_python_ocr.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: tencentcloud-sdk-python-ocr
3
- Version: 3.0.1276
3
+ Version: 3.0.1280
4
4
  Summary: Tencent Cloud Ocr SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
8
8
 
9
9
  setup(
10
10
  name='tencentcloud-sdk-python-ocr',
11
- install_requires=["tencentcloud-sdk-python-common==3.0.1276"],
11
+ install_requires=["tencentcloud-sdk-python-common==3.0.1280"],
12
12
  version=tencentcloud.__version__,
13
13
  description='Tencent Cloud Ocr SDK for Python',
14
14
  long_description=open('README.rst').read(),
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1276'
17
+ __version__ = '3.0.1280'
@@ -116,9 +116,15 @@ FAILEDOPERATION_NOVEHICLELICENSEERROR = 'FailedOperation.NoVehicleLicenseError'
116
116
  # OCR识别失败。
117
117
  FAILEDOPERATION_OCRFAILED = 'FailedOperation.OcrFailed'
118
118
 
119
+ # PDF解析失败。
120
+ FAILEDOPERATION_PDFPARSEFAILED = 'FailedOperation.PDFParseFailed'
121
+
119
122
  # 未知错误。
120
123
  FAILEDOPERATION_UNKNOWERROR = 'FailedOperation.UnKnowError'
121
124
 
125
+ # 未知的文件类型。
126
+ FAILEDOPERATION_UNKNOWFILETYPEERROR = 'FailedOperation.UnKnowFileTypeError'
127
+
122
128
  # 服务未开通。
123
129
  FAILEDOPERATION_UNOPENERROR = 'FailedOperation.UnOpenError'
124
130
 
@@ -686,6 +686,20 @@ class AirTransport(AbstractModel):
686
686
  :type QRCodeMark: int
687
687
  :param _FlightItems: 条目
688
688
  :type FlightItems: list of FlightItem
689
+ :param _PromptInformation: 提示信息
690
+ :type PromptInformation: str
691
+ :param _BuyerTaxID: 统一社会信用代码/纳税人识别号
692
+ :type BuyerTaxID: str
693
+ :param _Buyer: 购买方名称
694
+ :type Buyer: str
695
+ :param _ReceiptNumber: 发票号码
696
+ :type ReceiptNumber: str
697
+ :param _InvoiceStatus: 开票状态
698
+ :type InvoiceStatus: str
699
+ :param _TaxRate: 增值税税率
700
+ :type TaxRate: str
701
+ :param _TaxAmount: 增值税税额
702
+ :type TaxAmount: str
689
703
  """
690
704
  self._Title = None
691
705
  self._Number = None
@@ -711,6 +725,13 @@ class AirTransport(AbstractModel):
711
725
  self._Endorsement = None
712
726
  self._QRCodeMark = None
713
727
  self._FlightItems = None
728
+ self._PromptInformation = None
729
+ self._BuyerTaxID = None
730
+ self._Buyer = None
731
+ self._ReceiptNumber = None
732
+ self._InvoiceStatus = None
733
+ self._TaxRate = None
734
+ self._TaxAmount = None
714
735
 
715
736
  @property
716
737
  def Title(self):
@@ -976,6 +997,83 @@ class AirTransport(AbstractModel):
976
997
  def FlightItems(self, FlightItems):
977
998
  self._FlightItems = FlightItems
978
999
 
1000
+ @property
1001
+ def PromptInformation(self):
1002
+ """提示信息
1003
+ :rtype: str
1004
+ """
1005
+ return self._PromptInformation
1006
+
1007
+ @PromptInformation.setter
1008
+ def PromptInformation(self, PromptInformation):
1009
+ self._PromptInformation = PromptInformation
1010
+
1011
+ @property
1012
+ def BuyerTaxID(self):
1013
+ """统一社会信用代码/纳税人识别号
1014
+ :rtype: str
1015
+ """
1016
+ return self._BuyerTaxID
1017
+
1018
+ @BuyerTaxID.setter
1019
+ def BuyerTaxID(self, BuyerTaxID):
1020
+ self._BuyerTaxID = BuyerTaxID
1021
+
1022
+ @property
1023
+ def Buyer(self):
1024
+ """购买方名称
1025
+ :rtype: str
1026
+ """
1027
+ return self._Buyer
1028
+
1029
+ @Buyer.setter
1030
+ def Buyer(self, Buyer):
1031
+ self._Buyer = Buyer
1032
+
1033
+ @property
1034
+ def ReceiptNumber(self):
1035
+ """发票号码
1036
+ :rtype: str
1037
+ """
1038
+ return self._ReceiptNumber
1039
+
1040
+ @ReceiptNumber.setter
1041
+ def ReceiptNumber(self, ReceiptNumber):
1042
+ self._ReceiptNumber = ReceiptNumber
1043
+
1044
+ @property
1045
+ def InvoiceStatus(self):
1046
+ """开票状态
1047
+ :rtype: str
1048
+ """
1049
+ return self._InvoiceStatus
1050
+
1051
+ @InvoiceStatus.setter
1052
+ def InvoiceStatus(self, InvoiceStatus):
1053
+ self._InvoiceStatus = InvoiceStatus
1054
+
1055
+ @property
1056
+ def TaxRate(self):
1057
+ """增值税税率
1058
+ :rtype: str
1059
+ """
1060
+ return self._TaxRate
1061
+
1062
+ @TaxRate.setter
1063
+ def TaxRate(self, TaxRate):
1064
+ self._TaxRate = TaxRate
1065
+
1066
+ @property
1067
+ def TaxAmount(self):
1068
+ """增值税税额
1069
+ :rtype: str
1070
+ """
1071
+ return self._TaxAmount
1072
+
1073
+ @TaxAmount.setter
1074
+ def TaxAmount(self, TaxAmount):
1075
+ self._TaxAmount = TaxAmount
1076
+
979
1077
 
980
1078
  def _deserialize(self, params):
981
1079
  self._Title = params.get("Title")
@@ -1007,6 +1105,13 @@ class AirTransport(AbstractModel):
1007
1105
  obj = FlightItem()
1008
1106
  obj._deserialize(item)
1009
1107
  self._FlightItems.append(obj)
1108
+ self._PromptInformation = params.get("PromptInformation")
1109
+ self._BuyerTaxID = params.get("BuyerTaxID")
1110
+ self._Buyer = params.get("Buyer")
1111
+ self._ReceiptNumber = params.get("ReceiptNumber")
1112
+ self._InvoiceStatus = params.get("InvoiceStatus")
1113
+ self._TaxRate = params.get("TaxRate")
1114
+ self._TaxAmount = params.get("TaxAmount")
1010
1115
  memeber_set = set(params.keys())
1011
1116
  for name, value in vars(self).items():
1012
1117
  property_name = name[1:]
@@ -6934,6 +7039,8 @@ class ElectronicTrainTicketFull(AbstractModel):
6934
7039
  :type BuyerTaxID: str
6935
7040
  :param _OriginalNumber: 原发票号码
6936
7041
  :type OriginalNumber: str
7042
+ :param _IDInfo: 标识信息
7043
+ :type IDInfo: str
6937
7044
  """
6938
7045
  self._TypeOfVoucher = None
6939
7046
  self._ElectronicTicketNum = None
@@ -6955,6 +7062,7 @@ class ElectronicTrainTicketFull(AbstractModel):
6955
7062
  self._Buyer = None
6956
7063
  self._BuyerTaxID = None
6957
7064
  self._OriginalNumber = None
7065
+ self._IDInfo = None
6958
7066
 
6959
7067
  @property
6960
7068
  def TypeOfVoucher(self):
@@ -7176,6 +7284,17 @@ class ElectronicTrainTicketFull(AbstractModel):
7176
7284
  def OriginalNumber(self, OriginalNumber):
7177
7285
  self._OriginalNumber = OriginalNumber
7178
7286
 
7287
+ @property
7288
+ def IDInfo(self):
7289
+ """标识信息
7290
+ :rtype: str
7291
+ """
7292
+ return self._IDInfo
7293
+
7294
+ @IDInfo.setter
7295
+ def IDInfo(self, IDInfo):
7296
+ self._IDInfo = IDInfo
7297
+
7179
7298
 
7180
7299
  def _deserialize(self, params):
7181
7300
  self._TypeOfVoucher = params.get("TypeOfVoucher")
@@ -7198,6 +7317,7 @@ class ElectronicTrainTicketFull(AbstractModel):
7198
7317
  self._Buyer = params.get("Buyer")
7199
7318
  self._BuyerTaxID = params.get("BuyerTaxID")
7200
7319
  self._OriginalNumber = params.get("OriginalNumber")
7320
+ self._IDInfo = params.get("IDInfo")
7201
7321
  memeber_set = set(params.keys())
7202
7322
  for name, value in vars(self).items():
7203
7323
  property_name = name[1:]
@@ -11901,6 +12021,8 @@ Config = {"CropIdCard":true,"CropPortrait":true}
11901
12021
 
11902
12022
  此开关需要在反光检测开关开启下才会生效(即此开关生效的前提是config入参里的"ReflectWarn":true),若EnableReflectDetail设置为true,则会返回反光点覆盖区域详情。反光点覆盖区域详情分为四部分:人像照片位置、国徽位置、识别字段位置、其他位置。一个反光点允许覆盖多个区域,且一张图片可能存在多个反光点。
11903
12023
  :type EnableReflectDetail: bool
12024
+ :param _EnableDateVerify: 用于控制是否开启日期校验,默认值为true,打开会进行日期校验。
12025
+ :type EnableDateVerify: bool
11904
12026
  """
11905
12027
  self._ImageBase64 = None
11906
12028
  self._ImageUrl = None
@@ -11908,6 +12030,7 @@ Config = {"CropIdCard":true,"CropPortrait":true}
11908
12030
  self._Config = None
11909
12031
  self._EnableRecognitionRectify = None
11910
12032
  self._EnableReflectDetail = None
12033
+ self._EnableDateVerify = None
11911
12034
 
11912
12035
  @property
11913
12036
  def ImageBase64(self):
@@ -11997,6 +12120,17 @@ Config = {"CropIdCard":true,"CropPortrait":true}
11997
12120
  def EnableReflectDetail(self, EnableReflectDetail):
11998
12121
  self._EnableReflectDetail = EnableReflectDetail
11999
12122
 
12123
+ @property
12124
+ def EnableDateVerify(self):
12125
+ """用于控制是否开启日期校验,默认值为true,打开会进行日期校验。
12126
+ :rtype: bool
12127
+ """
12128
+ return self._EnableDateVerify
12129
+
12130
+ @EnableDateVerify.setter
12131
+ def EnableDateVerify(self, EnableDateVerify):
12132
+ self._EnableDateVerify = EnableDateVerify
12133
+
12000
12134
 
12001
12135
  def _deserialize(self, params):
12002
12136
  self._ImageBase64 = params.get("ImageBase64")
@@ -12005,6 +12139,7 @@ Config = {"CropIdCard":true,"CropPortrait":true}
12005
12139
  self._Config = params.get("Config")
12006
12140
  self._EnableRecognitionRectify = params.get("EnableRecognitionRectify")
12007
12141
  self._EnableReflectDetail = params.get("EnableReflectDetail")
12142
+ self._EnableDateVerify = params.get("EnableDateVerify")
12008
12143
  memeber_set = set(params.keys())
12009
12144
  for name, value in vars(self).items():
12010
12145
  property_name = name[1:]
@@ -14060,17 +14195,23 @@ class MLIDCardOCRRequest(AbstractModel):
14060
14195
  支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
14061
14196
  支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
14062
14197
  :type ImageBase64: str
14198
+ :param _BackImageBase64: 卡证背面图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
14199
+ :type BackImageBase64: str
14063
14200
  :param _ImageUrl: 图片的 Url 地址。( 中国地区之外不支持这个字段 )
14064
14201
  支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
14065
14202
  支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
14066
14203
  图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
14067
14204
  非腾讯云存储的 Url 速度和稳定性可能受一定影响。
14068
14205
  :type ImageUrl: str
14206
+ :param _BackImageUrl: 卡证背面图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
14207
+ :type BackImageUrl: str
14069
14208
  :param _RetImage: 是否返回图片,默认false
14070
14209
  :type RetImage: bool
14071
14210
  """
14072
14211
  self._ImageBase64 = None
14212
+ self._BackImageBase64 = None
14073
14213
  self._ImageUrl = None
14214
+ self._BackImageUrl = None
14074
14215
  self._RetImage = None
14075
14216
 
14076
14217
  @property
@@ -14086,6 +14227,17 @@ class MLIDCardOCRRequest(AbstractModel):
14086
14227
  def ImageBase64(self, ImageBase64):
14087
14228
  self._ImageBase64 = ImageBase64
14088
14229
 
14230
+ @property
14231
+ def BackImageBase64(self):
14232
+ """卡证背面图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
14233
+ :rtype: str
14234
+ """
14235
+ return self._BackImageBase64
14236
+
14237
+ @BackImageBase64.setter
14238
+ def BackImageBase64(self, BackImageBase64):
14239
+ self._BackImageBase64 = BackImageBase64
14240
+
14089
14241
  @property
14090
14242
  def ImageUrl(self):
14091
14243
  """图片的 Url 地址。( 中国地区之外不支持这个字段 )
@@ -14101,6 +14253,17 @@ class MLIDCardOCRRequest(AbstractModel):
14101
14253
  def ImageUrl(self, ImageUrl):
14102
14254
  self._ImageUrl = ImageUrl
14103
14255
 
14256
+ @property
14257
+ def BackImageUrl(self):
14258
+ """卡证背面图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
14259
+ :rtype: str
14260
+ """
14261
+ return self._BackImageUrl
14262
+
14263
+ @BackImageUrl.setter
14264
+ def BackImageUrl(self, BackImageUrl):
14265
+ self._BackImageUrl = BackImageUrl
14266
+
14104
14267
  @property
14105
14268
  def RetImage(self):
14106
14269
  """是否返回图片,默认false
@@ -14115,7 +14278,9 @@ class MLIDCardOCRRequest(AbstractModel):
14115
14278
 
14116
14279
  def _deserialize(self, params):
14117
14280
  self._ImageBase64 = params.get("ImageBase64")
14281
+ self._BackImageBase64 = params.get("BackImageBase64")
14118
14282
  self._ImageUrl = params.get("ImageUrl")
14283
+ self._BackImageUrl = params.get("BackImageUrl")
14119
14284
  self._RetImage = params.get("RetImage")
14120
14285
  memeber_set = set(params.keys())
14121
14286
  for name, value in vars(self).items():
@@ -14169,6 +14334,8 @@ MyKid 儿童卡
14169
14334
  :type Type: str
14170
14335
  :param _Birthday: 出生日期(目前该字段仅支持IKAD劳工证、MyKad 身份证)
14171
14336
  :type Birthday: str
14337
+ :param _MyKadNumber: 马来身份证背面号码
14338
+ :type MyKadNumber: str
14172
14339
  :param _WarnCardInfos: 告警码
14173
14340
  -9101 证件边框不完整告警
14174
14341
  -9102 证件复印件告警
@@ -14190,6 +14357,7 @@ MyKid 儿童卡
14190
14357
  self._AdvancedInfo = None
14191
14358
  self._Type = None
14192
14359
  self._Birthday = None
14360
+ self._MyKadNumber = None
14193
14361
  self._WarnCardInfos = None
14194
14362
  self._RequestId = None
14195
14363
 
@@ -14313,6 +14481,17 @@ MyKid 儿童卡
14313
14481
  def Birthday(self, Birthday):
14314
14482
  self._Birthday = Birthday
14315
14483
 
14484
+ @property
14485
+ def MyKadNumber(self):
14486
+ """马来身份证背面号码
14487
+ :rtype: str
14488
+ """
14489
+ return self._MyKadNumber
14490
+
14491
+ @MyKadNumber.setter
14492
+ def MyKadNumber(self, MyKadNumber):
14493
+ self._MyKadNumber = MyKadNumber
14494
+
14316
14495
  @property
14317
14496
  def WarnCardInfos(self):
14318
14497
  """告警码
@@ -14353,6 +14532,7 @@ MyKid 儿童卡
14353
14532
  self._AdvancedInfo = params.get("AdvancedInfo")
14354
14533
  self._Type = params.get("Type")
14355
14534
  self._Birthday = params.get("Birthday")
14535
+ self._MyKadNumber = params.get("MyKadNumber")
14356
14536
  self._WarnCardInfos = params.get("WarnCardInfos")
14357
14537
  self._RequestId = params.get("RequestId")
14358
14538
 
@@ -28629,8 +28809,9 @@ class TableInfo(AbstractModel):
28629
28809
  :param _Cells: 单元格内容
28630
28810
  注意:此字段可能返回 null,表示取不到有效值。
28631
28811
  :type Cells: list of TableCellInfo
28632
- :param _Type: 图像中的文本块类型,0 为非表格文本,
28633
- 1 为有线表格,2 为无线表格
28812
+ :param _Type: 图像中的文本块类型:0为非表格文本、1为有线表格、2为无线表格,
28813
+ 有线表格:在表格内部,有横线/竖线纵跨整个表格的宽/高;
28814
+ 无线表格:在表格内部,无横线/竖线纵跨整个表格的宽/高。
28634
28815
  注意:此字段可能返回 null,表示取不到有效值。
28635
28816
  :type Type: int
28636
28817
  :param _TableCoordPoint: 表格主体四个顶点坐标(依次为左上角,
@@ -28656,8 +28837,9 @@ class TableInfo(AbstractModel):
28656
28837
 
28657
28838
  @property
28658
28839
  def Type(self):
28659
- """图像中的文本块类型,0 为非表格文本,
28660
- 1 为有线表格,2 为无线表格
28840
+ """图像中的文本块类型:0为非表格文本、1为有线表格、2为无线表格,
28841
+ 有线表格:在表格内部,有横线/竖线纵跨整个表格的宽/高;
28842
+ 无线表格:在表格内部,无横线/竖线纵跨整个表格的宽/高。
28661
28843
  注意:此字段可能返回 null,表示取不到有效值。
28662
28844
  :rtype: int
28663
28845
  """
@@ -30629,6 +30811,180 @@ class TextTable(AbstractModel):
30629
30811
 
30630
30812
 
30631
30813
 
30814
+ class TextTractorVehicleBack(AbstractModel):
30815
+ """拖拉机行驶证副页正面的识别结果
30816
+
30817
+ """
30818
+
30819
+ def __init__(self):
30820
+ r"""
30821
+ :param _PlateNo: 号牌号码
30822
+ 注意:此字段可能返回 null,表示取不到有效值。
30823
+ :type PlateNo: str
30824
+ :param _AllowNum: 准乘人数
30825
+ 注意:此字段可能返回 null,表示取不到有效值。
30826
+ :type AllowNum: str
30827
+ :param _CombineHarvesterQuality: 联合收割机质量
30828
+ 注意:此字段可能返回 null,表示取不到有效值。
30829
+ :type CombineHarvesterQuality: str
30830
+ :param _TractorMinUsageWeight: 拖拉机最小使用质量
30831
+ 注意:此字段可能返回 null,表示取不到有效值。
30832
+ :type TractorMinUsageWeight: str
30833
+ :param _TractorMaxAllowLoadCapacity: 拖拉机最大允许载质量
30834
+ 注意:此字段可能返回 null,表示取不到有效值。
30835
+ :type TractorMaxAllowLoadCapacity: str
30836
+ :param _ExternalSize: 外廓尺寸
30837
+ 注意:此字段可能返回 null,表示取不到有效值。
30838
+ :type ExternalSize: str
30839
+ :param _Record: 检验记录
30840
+ 注意:此字段可能返回 null,表示取不到有效值。
30841
+ :type Record: str
30842
+ :param _VehicleType: 类型
30843
+ 注意:此字段可能返回 null,表示取不到有效值。
30844
+ :type VehicleType: str
30845
+ :param _Address: 住址
30846
+ 注意:此字段可能返回 null,表示取不到有效值。
30847
+ :type Address: str
30848
+ """
30849
+ self._PlateNo = None
30850
+ self._AllowNum = None
30851
+ self._CombineHarvesterQuality = None
30852
+ self._TractorMinUsageWeight = None
30853
+ self._TractorMaxAllowLoadCapacity = None
30854
+ self._ExternalSize = None
30855
+ self._Record = None
30856
+ self._VehicleType = None
30857
+ self._Address = None
30858
+
30859
+ @property
30860
+ def PlateNo(self):
30861
+ """号牌号码
30862
+ 注意:此字段可能返回 null,表示取不到有效值。
30863
+ :rtype: str
30864
+ """
30865
+ return self._PlateNo
30866
+
30867
+ @PlateNo.setter
30868
+ def PlateNo(self, PlateNo):
30869
+ self._PlateNo = PlateNo
30870
+
30871
+ @property
30872
+ def AllowNum(self):
30873
+ """准乘人数
30874
+ 注意:此字段可能返回 null,表示取不到有效值。
30875
+ :rtype: str
30876
+ """
30877
+ return self._AllowNum
30878
+
30879
+ @AllowNum.setter
30880
+ def AllowNum(self, AllowNum):
30881
+ self._AllowNum = AllowNum
30882
+
30883
+ @property
30884
+ def CombineHarvesterQuality(self):
30885
+ """联合收割机质量
30886
+ 注意:此字段可能返回 null,表示取不到有效值。
30887
+ :rtype: str
30888
+ """
30889
+ return self._CombineHarvesterQuality
30890
+
30891
+ @CombineHarvesterQuality.setter
30892
+ def CombineHarvesterQuality(self, CombineHarvesterQuality):
30893
+ self._CombineHarvesterQuality = CombineHarvesterQuality
30894
+
30895
+ @property
30896
+ def TractorMinUsageWeight(self):
30897
+ """拖拉机最小使用质量
30898
+ 注意:此字段可能返回 null,表示取不到有效值。
30899
+ :rtype: str
30900
+ """
30901
+ return self._TractorMinUsageWeight
30902
+
30903
+ @TractorMinUsageWeight.setter
30904
+ def TractorMinUsageWeight(self, TractorMinUsageWeight):
30905
+ self._TractorMinUsageWeight = TractorMinUsageWeight
30906
+
30907
+ @property
30908
+ def TractorMaxAllowLoadCapacity(self):
30909
+ """拖拉机最大允许载质量
30910
+ 注意:此字段可能返回 null,表示取不到有效值。
30911
+ :rtype: str
30912
+ """
30913
+ return self._TractorMaxAllowLoadCapacity
30914
+
30915
+ @TractorMaxAllowLoadCapacity.setter
30916
+ def TractorMaxAllowLoadCapacity(self, TractorMaxAllowLoadCapacity):
30917
+ self._TractorMaxAllowLoadCapacity = TractorMaxAllowLoadCapacity
30918
+
30919
+ @property
30920
+ def ExternalSize(self):
30921
+ """外廓尺寸
30922
+ 注意:此字段可能返回 null,表示取不到有效值。
30923
+ :rtype: str
30924
+ """
30925
+ return self._ExternalSize
30926
+
30927
+ @ExternalSize.setter
30928
+ def ExternalSize(self, ExternalSize):
30929
+ self._ExternalSize = ExternalSize
30930
+
30931
+ @property
30932
+ def Record(self):
30933
+ """检验记录
30934
+ 注意:此字段可能返回 null,表示取不到有效值。
30935
+ :rtype: str
30936
+ """
30937
+ return self._Record
30938
+
30939
+ @Record.setter
30940
+ def Record(self, Record):
30941
+ self._Record = Record
30942
+
30943
+ @property
30944
+ def VehicleType(self):
30945
+ """类型
30946
+ 注意:此字段可能返回 null,表示取不到有效值。
30947
+ :rtype: str
30948
+ """
30949
+ return self._VehicleType
30950
+
30951
+ @VehicleType.setter
30952
+ def VehicleType(self, VehicleType):
30953
+ self._VehicleType = VehicleType
30954
+
30955
+ @property
30956
+ def Address(self):
30957
+ """住址
30958
+ 注意:此字段可能返回 null,表示取不到有效值。
30959
+ :rtype: str
30960
+ """
30961
+ return self._Address
30962
+
30963
+ @Address.setter
30964
+ def Address(self, Address):
30965
+ self._Address = Address
30966
+
30967
+
30968
+ def _deserialize(self, params):
30969
+ self._PlateNo = params.get("PlateNo")
30970
+ self._AllowNum = params.get("AllowNum")
30971
+ self._CombineHarvesterQuality = params.get("CombineHarvesterQuality")
30972
+ self._TractorMinUsageWeight = params.get("TractorMinUsageWeight")
30973
+ self._TractorMaxAllowLoadCapacity = params.get("TractorMaxAllowLoadCapacity")
30974
+ self._ExternalSize = params.get("ExternalSize")
30975
+ self._Record = params.get("Record")
30976
+ self._VehicleType = params.get("VehicleType")
30977
+ self._Address = params.get("Address")
30978
+ memeber_set = set(params.keys())
30979
+ for name, value in vars(self).items():
30980
+ property_name = name[1:]
30981
+ if property_name in memeber_set:
30982
+ memeber_set.remove(property_name)
30983
+ if len(memeber_set) > 0:
30984
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
30985
+
30986
+
30987
+
30632
30988
  class TextVatInvoice(AbstractModel):
30633
30989
  """增值税发票识别结果
30634
30990
 
@@ -37870,10 +38226,13 @@ BACK 为行驶证副页正面(有号码号牌的一面),
37870
38226
  DOUBLE 为行驶证主页正面和副页正面。
37871
38227
  默认值为:FRONT。
37872
38228
  :type CardSide: str
38229
+ :param _TractorCardSide: FRONT为行驶证主页正面(有红色印章的一面),BACK 为拖拉机行驶证副页正面识别
38230
+ :type TractorCardSide: str
37873
38231
  """
37874
38232
  self._ImageBase64 = None
37875
38233
  self._ImageUrl = None
37876
38234
  self._CardSide = None
38235
+ self._TractorCardSide = None
37877
38236
 
37878
38237
  @property
37879
38238
  def ImageBase64(self):
@@ -37913,11 +38272,23 @@ DOUBLE 为行驶证主页正面和副页正面。
37913
38272
  def CardSide(self, CardSide):
37914
38273
  self._CardSide = CardSide
37915
38274
 
38275
+ @property
38276
+ def TractorCardSide(self):
38277
+ """FRONT为行驶证主页正面(有红色印章的一面),BACK 为拖拉机行驶证副页正面识别
38278
+ :rtype: str
38279
+ """
38280
+ return self._TractorCardSide
38281
+
38282
+ @TractorCardSide.setter
38283
+ def TractorCardSide(self, TractorCardSide):
38284
+ self._TractorCardSide = TractorCardSide
38285
+
37916
38286
 
37917
38287
  def _deserialize(self, params):
37918
38288
  self._ImageBase64 = params.get("ImageBase64")
37919
38289
  self._ImageUrl = params.get("ImageUrl")
37920
38290
  self._CardSide = params.get("CardSide")
38291
+ self._TractorCardSide = params.get("TractorCardSide")
37921
38292
  memeber_set = set(params.keys())
37922
38293
  for name, value in vars(self).items():
37923
38294
  property_name = name[1:]
@@ -37959,6 +38330,9 @@ WARN_DRIVER_LICENSE_BORDER_INCOMPLETE 边框不完整告警
37959
38330
  :type RecognizeWarnMsg: list of str
37960
38331
  :param _VehicleLicenseType: 行驶证类型 电子行驶证:Electronic 普通行驶证:Normal
37961
38332
  :type VehicleLicenseType: str
38333
+ :param _TractorBackInfo: 拖拉机行驶证副页正面的识别结果,CardSide 为 BACK。
38334
+ 注意:此字段可能返回 null,表示取不到有效值。
38335
+ :type TractorBackInfo: :class:`tencentcloud.ocr.v20181119.models.TextTractorVehicleBack`
37962
38336
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
37963
38337
  :type RequestId: str
37964
38338
  """
@@ -37967,6 +38341,7 @@ WARN_DRIVER_LICENSE_BORDER_INCOMPLETE 边框不完整告警
37967
38341
  self._RecognizeWarnCode = None
37968
38342
  self._RecognizeWarnMsg = None
37969
38343
  self._VehicleLicenseType = None
38344
+ self._TractorBackInfo = None
37970
38345
  self._RequestId = None
37971
38346
 
37972
38347
  @property
@@ -38038,6 +38413,18 @@ WARN_DRIVER_LICENSE_BORDER_INCOMPLETE 边框不完整告警
38038
38413
  def VehicleLicenseType(self, VehicleLicenseType):
38039
38414
  self._VehicleLicenseType = VehicleLicenseType
38040
38415
 
38416
+ @property
38417
+ def TractorBackInfo(self):
38418
+ """拖拉机行驶证副页正面的识别结果,CardSide 为 BACK。
38419
+ 注意:此字段可能返回 null,表示取不到有效值。
38420
+ :rtype: :class:`tencentcloud.ocr.v20181119.models.TextTractorVehicleBack`
38421
+ """
38422
+ return self._TractorBackInfo
38423
+
38424
+ @TractorBackInfo.setter
38425
+ def TractorBackInfo(self, TractorBackInfo):
38426
+ self._TractorBackInfo = TractorBackInfo
38427
+
38041
38428
  @property
38042
38429
  def RequestId(self):
38043
38430
  """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
@@ -38060,6 +38447,9 @@ WARN_DRIVER_LICENSE_BORDER_INCOMPLETE 边框不完整告警
38060
38447
  self._RecognizeWarnCode = params.get("RecognizeWarnCode")
38061
38448
  self._RecognizeWarnMsg = params.get("RecognizeWarnMsg")
38062
38449
  self._VehicleLicenseType = params.get("VehicleLicenseType")
38450
+ if params.get("TractorBackInfo") is not None:
38451
+ self._TractorBackInfo = TextTractorVehicleBack()
38452
+ self._TractorBackInfo._deserialize(params.get("TractorBackInfo"))
38063
38453
  self._RequestId = params.get("RequestId")
38064
38454
 
38065
38455
 
@@ -1832,7 +1832,7 @@ class OcrClient(AbstractClient):
1832
1832
 
1833
1833
 
1834
1834
  def RecognizeTableAccurateOCR(self, request):
1835
- """本接口支持中英文图片/PDF内常规表格、无线表格、多表格的检测和识别,返回每个单元格的文字内容,支持旋转的表格图片识别,且支持将识别结果保存为 Excel 格式。识别效果比表格识别V2更好,覆盖场景更加广泛,对表格难例场景,如无线表格、嵌套表格(有线表格中包含无线表格)的识别效果均优于表格识别V2。点击[立即体验](https://cloud.tencent.com/act/event/ocrdemo)。
1835
+ """本接口支持中英文图片/PDF内常规表格、无线表格、多表格的检测和识别,返回每个单元格的文字内容,支持旋转的表格图片识别,且支持将识别结果保存为 Excel 格式。识别效果比表格识别V2更好,覆盖场景更加广泛,对表格难例场景,如无线表格、嵌套表格(有线表格中包含无线表格)的识别效果均优于表格识别V2。点击[立即体验](https://ocrdemo.cloud.tencent.com?action=RecognizeTableAccurateOCR)。
1836
1836
 
1837
1837
  默认接口请求频率限制:2次/秒。
1838
1838
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: tencentcloud-sdk-python-ocr
3
- Version: 3.0.1276
3
+ Version: 3.0.1280
4
4
  Summary: Tencent Cloud Ocr SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common==3.0.1280
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common==3.0.1276