tencentcloud-sdk-python-ocr 3.0.1276__tar.gz → 3.0.1288__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.1288}/PKG-INFO +1 -1
  2. {tencentcloud-sdk-python-ocr-3.0.1276 → tencentcloud-sdk-python-ocr-3.0.1288}/setup.py +1 -1
  3. {tencentcloud-sdk-python-ocr-3.0.1276 → tencentcloud-sdk-python-ocr-3.0.1288}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud-sdk-python-ocr-3.0.1276 → tencentcloud-sdk-python-ocr-3.0.1288}/tencentcloud/ocr/v20181119/errorcodes.py +6 -0
  5. {tencentcloud-sdk-python-ocr-3.0.1276 → tencentcloud-sdk-python-ocr-3.0.1288}/tencentcloud/ocr/v20181119/models.py +409 -4
  6. {tencentcloud-sdk-python-ocr-3.0.1276 → tencentcloud-sdk-python-ocr-3.0.1288}/tencentcloud/ocr/v20181119/ocr_client.py +5 -3
  7. {tencentcloud-sdk-python-ocr-3.0.1276 → tencentcloud-sdk-python-ocr-3.0.1288}/tencentcloud_sdk_python_ocr.egg-info/PKG-INFO +1 -1
  8. tencentcloud-sdk-python-ocr-3.0.1288/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.1288}/README.rst +0 -0
  11. {tencentcloud-sdk-python-ocr-3.0.1276 → tencentcloud-sdk-python-ocr-3.0.1288}/setup.cfg +0 -0
  12. {tencentcloud-sdk-python-ocr-3.0.1276 → tencentcloud-sdk-python-ocr-3.0.1288}/tencentcloud/ocr/__init__.py +0 -0
  13. {tencentcloud-sdk-python-ocr-3.0.1276 → tencentcloud-sdk-python-ocr-3.0.1288}/tencentcloud/ocr/v20181119/__init__.py +0 -0
  14. {tencentcloud-sdk-python-ocr-3.0.1276 → tencentcloud-sdk-python-ocr-3.0.1288}/tencentcloud_sdk_python_ocr.egg-info/SOURCES.txt +0 -0
  15. {tencentcloud-sdk-python-ocr-3.0.1276 → tencentcloud-sdk-python-ocr-3.0.1288}/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.1288}/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.1288
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.1288"],
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.1288'
@@ -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:]
@@ -6140,6 +6245,8 @@ class ElectronicFlightTicketFull(AbstractModel):
6140
6245
  :type BuyerTaxID: str
6141
6246
  :param _FlightItems: 机票详细信息元组
6142
6247
  :type FlightItems: list of FlightItemInfo
6248
+ :param _InvoiceStatus: 机票开具状态
6249
+ :type InvoiceStatus: str
6143
6250
  """
6144
6251
  self._UserName = None
6145
6252
  self._UserID = None
@@ -6164,6 +6271,7 @@ class ElectronicFlightTicketFull(AbstractModel):
6164
6271
  self._Seller = None
6165
6272
  self._BuyerTaxID = None
6166
6273
  self._FlightItems = None
6274
+ self._InvoiceStatus = None
6167
6275
 
6168
6276
  @property
6169
6277
  def UserName(self):
@@ -6418,6 +6526,17 @@ class ElectronicFlightTicketFull(AbstractModel):
6418
6526
  def FlightItems(self, FlightItems):
6419
6527
  self._FlightItems = FlightItems
6420
6528
 
6529
+ @property
6530
+ def InvoiceStatus(self):
6531
+ """机票开具状态
6532
+ :rtype: str
6533
+ """
6534
+ return self._InvoiceStatus
6535
+
6536
+ @InvoiceStatus.setter
6537
+ def InvoiceStatus(self, InvoiceStatus):
6538
+ self._InvoiceStatus = InvoiceStatus
6539
+
6421
6540
 
6422
6541
  def _deserialize(self, params):
6423
6542
  self._UserName = params.get("UserName")
@@ -6448,6 +6567,7 @@ class ElectronicFlightTicketFull(AbstractModel):
6448
6567
  obj = FlightItemInfo()
6449
6568
  obj._deserialize(item)
6450
6569
  self._FlightItems.append(obj)
6570
+ self._InvoiceStatus = params.get("InvoiceStatus")
6451
6571
  memeber_set = set(params.keys())
6452
6572
  for name, value in vars(self).items():
6453
6573
  property_name = name[1:]
@@ -6934,6 +7054,8 @@ class ElectronicTrainTicketFull(AbstractModel):
6934
7054
  :type BuyerTaxID: str
6935
7055
  :param _OriginalNumber: 原发票号码
6936
7056
  :type OriginalNumber: str
7057
+ :param _IDInfo: 标识信息
7058
+ :type IDInfo: str
6937
7059
  """
6938
7060
  self._TypeOfVoucher = None
6939
7061
  self._ElectronicTicketNum = None
@@ -6955,6 +7077,7 @@ class ElectronicTrainTicketFull(AbstractModel):
6955
7077
  self._Buyer = None
6956
7078
  self._BuyerTaxID = None
6957
7079
  self._OriginalNumber = None
7080
+ self._IDInfo = None
6958
7081
 
6959
7082
  @property
6960
7083
  def TypeOfVoucher(self):
@@ -7176,6 +7299,17 @@ class ElectronicTrainTicketFull(AbstractModel):
7176
7299
  def OriginalNumber(self, OriginalNumber):
7177
7300
  self._OriginalNumber = OriginalNumber
7178
7301
 
7302
+ @property
7303
+ def IDInfo(self):
7304
+ """标识信息
7305
+ :rtype: str
7306
+ """
7307
+ return self._IDInfo
7308
+
7309
+ @IDInfo.setter
7310
+ def IDInfo(self, IDInfo):
7311
+ self._IDInfo = IDInfo
7312
+
7179
7313
 
7180
7314
  def _deserialize(self, params):
7181
7315
  self._TypeOfVoucher = params.get("TypeOfVoucher")
@@ -7198,6 +7332,7 @@ class ElectronicTrainTicketFull(AbstractModel):
7198
7332
  self._Buyer = params.get("Buyer")
7199
7333
  self._BuyerTaxID = params.get("BuyerTaxID")
7200
7334
  self._OriginalNumber = params.get("OriginalNumber")
7335
+ self._IDInfo = params.get("IDInfo")
7201
7336
  memeber_set = set(params.keys())
7202
7337
  for name, value in vars(self).items():
7203
7338
  property_name = name[1:]
@@ -11901,6 +12036,8 @@ Config = {"CropIdCard":true,"CropPortrait":true}
11901
12036
 
11902
12037
  此开关需要在反光检测开关开启下才会生效(即此开关生效的前提是config入参里的"ReflectWarn":true),若EnableReflectDetail设置为true,则会返回反光点覆盖区域详情。反光点覆盖区域详情分为四部分:人像照片位置、国徽位置、识别字段位置、其他位置。一个反光点允许覆盖多个区域,且一张图片可能存在多个反光点。
11903
12038
  :type EnableReflectDetail: bool
12039
+ :param _EnableDateVerify: 用于控制是否开启日期校验,默认值为true,打开会进行日期校验。
12040
+ :type EnableDateVerify: bool
11904
12041
  """
11905
12042
  self._ImageBase64 = None
11906
12043
  self._ImageUrl = None
@@ -11908,6 +12045,7 @@ Config = {"CropIdCard":true,"CropPortrait":true}
11908
12045
  self._Config = None
11909
12046
  self._EnableRecognitionRectify = None
11910
12047
  self._EnableReflectDetail = None
12048
+ self._EnableDateVerify = None
11911
12049
 
11912
12050
  @property
11913
12051
  def ImageBase64(self):
@@ -11997,6 +12135,17 @@ Config = {"CropIdCard":true,"CropPortrait":true}
11997
12135
  def EnableReflectDetail(self, EnableReflectDetail):
11998
12136
  self._EnableReflectDetail = EnableReflectDetail
11999
12137
 
12138
+ @property
12139
+ def EnableDateVerify(self):
12140
+ """用于控制是否开启日期校验,默认值为true,打开会进行日期校验。
12141
+ :rtype: bool
12142
+ """
12143
+ return self._EnableDateVerify
12144
+
12145
+ @EnableDateVerify.setter
12146
+ def EnableDateVerify(self, EnableDateVerify):
12147
+ self._EnableDateVerify = EnableDateVerify
12148
+
12000
12149
 
12001
12150
  def _deserialize(self, params):
12002
12151
  self._ImageBase64 = params.get("ImageBase64")
@@ -12005,6 +12154,7 @@ Config = {"CropIdCard":true,"CropPortrait":true}
12005
12154
  self._Config = params.get("Config")
12006
12155
  self._EnableRecognitionRectify = params.get("EnableRecognitionRectify")
12007
12156
  self._EnableReflectDetail = params.get("EnableReflectDetail")
12157
+ self._EnableDateVerify = params.get("EnableDateVerify")
12008
12158
  memeber_set = set(params.keys())
12009
12159
  for name, value in vars(self).items():
12010
12160
  property_name = name[1:]
@@ -14060,17 +14210,23 @@ class MLIDCardOCRRequest(AbstractModel):
14060
14210
  支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
14061
14211
  支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
14062
14212
  :type ImageBase64: str
14213
+ :param _BackImageBase64: 卡证背面图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
14214
+ :type BackImageBase64: str
14063
14215
  :param _ImageUrl: 图片的 Url 地址。( 中国地区之外不支持这个字段 )
14064
14216
  支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
14065
14217
  支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
14066
14218
  图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
14067
14219
  非腾讯云存储的 Url 速度和稳定性可能受一定影响。
14068
14220
  :type ImageUrl: str
14221
+ :param _BackImageUrl: 卡证背面图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
14222
+ :type BackImageUrl: str
14069
14223
  :param _RetImage: 是否返回图片,默认false
14070
14224
  :type RetImage: bool
14071
14225
  """
14072
14226
  self._ImageBase64 = None
14227
+ self._BackImageBase64 = None
14073
14228
  self._ImageUrl = None
14229
+ self._BackImageUrl = None
14074
14230
  self._RetImage = None
14075
14231
 
14076
14232
  @property
@@ -14086,6 +14242,17 @@ class MLIDCardOCRRequest(AbstractModel):
14086
14242
  def ImageBase64(self, ImageBase64):
14087
14243
  self._ImageBase64 = ImageBase64
14088
14244
 
14245
+ @property
14246
+ def BackImageBase64(self):
14247
+ """卡证背面图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
14248
+ :rtype: str
14249
+ """
14250
+ return self._BackImageBase64
14251
+
14252
+ @BackImageBase64.setter
14253
+ def BackImageBase64(self, BackImageBase64):
14254
+ self._BackImageBase64 = BackImageBase64
14255
+
14089
14256
  @property
14090
14257
  def ImageUrl(self):
14091
14258
  """图片的 Url 地址。( 中国地区之外不支持这个字段 )
@@ -14101,6 +14268,17 @@ class MLIDCardOCRRequest(AbstractModel):
14101
14268
  def ImageUrl(self, ImageUrl):
14102
14269
  self._ImageUrl = ImageUrl
14103
14270
 
14271
+ @property
14272
+ def BackImageUrl(self):
14273
+ """卡证背面图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
14274
+ :rtype: str
14275
+ """
14276
+ return self._BackImageUrl
14277
+
14278
+ @BackImageUrl.setter
14279
+ def BackImageUrl(self, BackImageUrl):
14280
+ self._BackImageUrl = BackImageUrl
14281
+
14104
14282
  @property
14105
14283
  def RetImage(self):
14106
14284
  """是否返回图片,默认false
@@ -14115,7 +14293,9 @@ class MLIDCardOCRRequest(AbstractModel):
14115
14293
 
14116
14294
  def _deserialize(self, params):
14117
14295
  self._ImageBase64 = params.get("ImageBase64")
14296
+ self._BackImageBase64 = params.get("BackImageBase64")
14118
14297
  self._ImageUrl = params.get("ImageUrl")
14298
+ self._BackImageUrl = params.get("BackImageUrl")
14119
14299
  self._RetImage = params.get("RetImage")
14120
14300
  memeber_set = set(params.keys())
14121
14301
  for name, value in vars(self).items():
@@ -14169,6 +14349,8 @@ MyKid 儿童卡
14169
14349
  :type Type: str
14170
14350
  :param _Birthday: 出生日期(目前该字段仅支持IKAD劳工证、MyKad 身份证)
14171
14351
  :type Birthday: str
14352
+ :param _MyKadNumber: 马来身份证背面号码
14353
+ :type MyKadNumber: str
14172
14354
  :param _WarnCardInfos: 告警码
14173
14355
  -9101 证件边框不完整告警
14174
14356
  -9102 证件复印件告警
@@ -14190,6 +14372,7 @@ MyKid 儿童卡
14190
14372
  self._AdvancedInfo = None
14191
14373
  self._Type = None
14192
14374
  self._Birthday = None
14375
+ self._MyKadNumber = None
14193
14376
  self._WarnCardInfos = None
14194
14377
  self._RequestId = None
14195
14378
 
@@ -14313,6 +14496,17 @@ MyKid 儿童卡
14313
14496
  def Birthday(self, Birthday):
14314
14497
  self._Birthday = Birthday
14315
14498
 
14499
+ @property
14500
+ def MyKadNumber(self):
14501
+ """马来身份证背面号码
14502
+ :rtype: str
14503
+ """
14504
+ return self._MyKadNumber
14505
+
14506
+ @MyKadNumber.setter
14507
+ def MyKadNumber(self, MyKadNumber):
14508
+ self._MyKadNumber = MyKadNumber
14509
+
14316
14510
  @property
14317
14511
  def WarnCardInfos(self):
14318
14512
  """告警码
@@ -14353,6 +14547,7 @@ MyKid 儿童卡
14353
14547
  self._AdvancedInfo = params.get("AdvancedInfo")
14354
14548
  self._Type = params.get("Type")
14355
14549
  self._Birthday = params.get("Birthday")
14550
+ self._MyKadNumber = params.get("MyKadNumber")
14356
14551
  self._WarnCardInfos = params.get("WarnCardInfos")
14357
14552
  self._RequestId = params.get("RequestId")
14358
14553
 
@@ -28629,8 +28824,9 @@ class TableInfo(AbstractModel):
28629
28824
  :param _Cells: 单元格内容
28630
28825
  注意:此字段可能返回 null,表示取不到有效值。
28631
28826
  :type Cells: list of TableCellInfo
28632
- :param _Type: 图像中的文本块类型,0 为非表格文本,
28633
- 1 为有线表格,2 为无线表格
28827
+ :param _Type: 图像中的文本块类型:0为非表格文本、1为有线表格、2为无线表格,
28828
+ 有线表格:在表格内部,有横线/竖线纵跨整个表格的宽/高;
28829
+ 无线表格:在表格内部,无横线/竖线纵跨整个表格的宽/高。
28634
28830
  注意:此字段可能返回 null,表示取不到有效值。
28635
28831
  :type Type: int
28636
28832
  :param _TableCoordPoint: 表格主体四个顶点坐标(依次为左上角,
@@ -28656,8 +28852,9 @@ class TableInfo(AbstractModel):
28656
28852
 
28657
28853
  @property
28658
28854
  def Type(self):
28659
- """图像中的文本块类型,0 为非表格文本,
28660
- 1 为有线表格,2 为无线表格
28855
+ """图像中的文本块类型:0为非表格文本、1为有线表格、2为无线表格,
28856
+ 有线表格:在表格内部,有横线/竖线纵跨整个表格的宽/高;
28857
+ 无线表格:在表格内部,无横线/竖线纵跨整个表格的宽/高。
28661
28858
  注意:此字段可能返回 null,表示取不到有效值。
28662
28859
  :rtype: int
28663
28860
  """
@@ -30629,6 +30826,180 @@ class TextTable(AbstractModel):
30629
30826
 
30630
30827
 
30631
30828
 
30829
+ class TextTractorVehicleBack(AbstractModel):
30830
+ """拖拉机行驶证副页正面的识别结果
30831
+
30832
+ """
30833
+
30834
+ def __init__(self):
30835
+ r"""
30836
+ :param _PlateNo: 号牌号码
30837
+ 注意:此字段可能返回 null,表示取不到有效值。
30838
+ :type PlateNo: str
30839
+ :param _AllowNum: 准乘人数
30840
+ 注意:此字段可能返回 null,表示取不到有效值。
30841
+ :type AllowNum: str
30842
+ :param _CombineHarvesterQuality: 联合收割机质量
30843
+ 注意:此字段可能返回 null,表示取不到有效值。
30844
+ :type CombineHarvesterQuality: str
30845
+ :param _TractorMinUsageWeight: 拖拉机最小使用质量
30846
+ 注意:此字段可能返回 null,表示取不到有效值。
30847
+ :type TractorMinUsageWeight: str
30848
+ :param _TractorMaxAllowLoadCapacity: 拖拉机最大允许载质量
30849
+ 注意:此字段可能返回 null,表示取不到有效值。
30850
+ :type TractorMaxAllowLoadCapacity: str
30851
+ :param _ExternalSize: 外廓尺寸
30852
+ 注意:此字段可能返回 null,表示取不到有效值。
30853
+ :type ExternalSize: str
30854
+ :param _Record: 检验记录
30855
+ 注意:此字段可能返回 null,表示取不到有效值。
30856
+ :type Record: str
30857
+ :param _VehicleType: 类型
30858
+ 注意:此字段可能返回 null,表示取不到有效值。
30859
+ :type VehicleType: str
30860
+ :param _Address: 住址
30861
+ 注意:此字段可能返回 null,表示取不到有效值。
30862
+ :type Address: str
30863
+ """
30864
+ self._PlateNo = None
30865
+ self._AllowNum = None
30866
+ self._CombineHarvesterQuality = None
30867
+ self._TractorMinUsageWeight = None
30868
+ self._TractorMaxAllowLoadCapacity = None
30869
+ self._ExternalSize = None
30870
+ self._Record = None
30871
+ self._VehicleType = None
30872
+ self._Address = None
30873
+
30874
+ @property
30875
+ def PlateNo(self):
30876
+ """号牌号码
30877
+ 注意:此字段可能返回 null,表示取不到有效值。
30878
+ :rtype: str
30879
+ """
30880
+ return self._PlateNo
30881
+
30882
+ @PlateNo.setter
30883
+ def PlateNo(self, PlateNo):
30884
+ self._PlateNo = PlateNo
30885
+
30886
+ @property
30887
+ def AllowNum(self):
30888
+ """准乘人数
30889
+ 注意:此字段可能返回 null,表示取不到有效值。
30890
+ :rtype: str
30891
+ """
30892
+ return self._AllowNum
30893
+
30894
+ @AllowNum.setter
30895
+ def AllowNum(self, AllowNum):
30896
+ self._AllowNum = AllowNum
30897
+
30898
+ @property
30899
+ def CombineHarvesterQuality(self):
30900
+ """联合收割机质量
30901
+ 注意:此字段可能返回 null,表示取不到有效值。
30902
+ :rtype: str
30903
+ """
30904
+ return self._CombineHarvesterQuality
30905
+
30906
+ @CombineHarvesterQuality.setter
30907
+ def CombineHarvesterQuality(self, CombineHarvesterQuality):
30908
+ self._CombineHarvesterQuality = CombineHarvesterQuality
30909
+
30910
+ @property
30911
+ def TractorMinUsageWeight(self):
30912
+ """拖拉机最小使用质量
30913
+ 注意:此字段可能返回 null,表示取不到有效值。
30914
+ :rtype: str
30915
+ """
30916
+ return self._TractorMinUsageWeight
30917
+
30918
+ @TractorMinUsageWeight.setter
30919
+ def TractorMinUsageWeight(self, TractorMinUsageWeight):
30920
+ self._TractorMinUsageWeight = TractorMinUsageWeight
30921
+
30922
+ @property
30923
+ def TractorMaxAllowLoadCapacity(self):
30924
+ """拖拉机最大允许载质量
30925
+ 注意:此字段可能返回 null,表示取不到有效值。
30926
+ :rtype: str
30927
+ """
30928
+ return self._TractorMaxAllowLoadCapacity
30929
+
30930
+ @TractorMaxAllowLoadCapacity.setter
30931
+ def TractorMaxAllowLoadCapacity(self, TractorMaxAllowLoadCapacity):
30932
+ self._TractorMaxAllowLoadCapacity = TractorMaxAllowLoadCapacity
30933
+
30934
+ @property
30935
+ def ExternalSize(self):
30936
+ """外廓尺寸
30937
+ 注意:此字段可能返回 null,表示取不到有效值。
30938
+ :rtype: str
30939
+ """
30940
+ return self._ExternalSize
30941
+
30942
+ @ExternalSize.setter
30943
+ def ExternalSize(self, ExternalSize):
30944
+ self._ExternalSize = ExternalSize
30945
+
30946
+ @property
30947
+ def Record(self):
30948
+ """检验记录
30949
+ 注意:此字段可能返回 null,表示取不到有效值。
30950
+ :rtype: str
30951
+ """
30952
+ return self._Record
30953
+
30954
+ @Record.setter
30955
+ def Record(self, Record):
30956
+ self._Record = Record
30957
+
30958
+ @property
30959
+ def VehicleType(self):
30960
+ """类型
30961
+ 注意:此字段可能返回 null,表示取不到有效值。
30962
+ :rtype: str
30963
+ """
30964
+ return self._VehicleType
30965
+
30966
+ @VehicleType.setter
30967
+ def VehicleType(self, VehicleType):
30968
+ self._VehicleType = VehicleType
30969
+
30970
+ @property
30971
+ def Address(self):
30972
+ """住址
30973
+ 注意:此字段可能返回 null,表示取不到有效值。
30974
+ :rtype: str
30975
+ """
30976
+ return self._Address
30977
+
30978
+ @Address.setter
30979
+ def Address(self, Address):
30980
+ self._Address = Address
30981
+
30982
+
30983
+ def _deserialize(self, params):
30984
+ self._PlateNo = params.get("PlateNo")
30985
+ self._AllowNum = params.get("AllowNum")
30986
+ self._CombineHarvesterQuality = params.get("CombineHarvesterQuality")
30987
+ self._TractorMinUsageWeight = params.get("TractorMinUsageWeight")
30988
+ self._TractorMaxAllowLoadCapacity = params.get("TractorMaxAllowLoadCapacity")
30989
+ self._ExternalSize = params.get("ExternalSize")
30990
+ self._Record = params.get("Record")
30991
+ self._VehicleType = params.get("VehicleType")
30992
+ self._Address = params.get("Address")
30993
+ memeber_set = set(params.keys())
30994
+ for name, value in vars(self).items():
30995
+ property_name = name[1:]
30996
+ if property_name in memeber_set:
30997
+ memeber_set.remove(property_name)
30998
+ if len(memeber_set) > 0:
30999
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
31000
+
31001
+
31002
+
30632
31003
  class TextVatInvoice(AbstractModel):
30633
31004
  """增值税发票识别结果
30634
31005
 
@@ -37870,10 +38241,13 @@ BACK 为行驶证副页正面(有号码号牌的一面),
37870
38241
  DOUBLE 为行驶证主页正面和副页正面。
37871
38242
  默认值为:FRONT。
37872
38243
  :type CardSide: str
38244
+ :param _TractorCardSide: FRONT为行驶证主页正面(有红色印章的一面),BACK 为拖拉机行驶证副页正面识别
38245
+ :type TractorCardSide: str
37873
38246
  """
37874
38247
  self._ImageBase64 = None
37875
38248
  self._ImageUrl = None
37876
38249
  self._CardSide = None
38250
+ self._TractorCardSide = None
37877
38251
 
37878
38252
  @property
37879
38253
  def ImageBase64(self):
@@ -37913,11 +38287,23 @@ DOUBLE 为行驶证主页正面和副页正面。
37913
38287
  def CardSide(self, CardSide):
37914
38288
  self._CardSide = CardSide
37915
38289
 
38290
+ @property
38291
+ def TractorCardSide(self):
38292
+ """FRONT为行驶证主页正面(有红色印章的一面),BACK 为拖拉机行驶证副页正面识别
38293
+ :rtype: str
38294
+ """
38295
+ return self._TractorCardSide
38296
+
38297
+ @TractorCardSide.setter
38298
+ def TractorCardSide(self, TractorCardSide):
38299
+ self._TractorCardSide = TractorCardSide
38300
+
37916
38301
 
37917
38302
  def _deserialize(self, params):
37918
38303
  self._ImageBase64 = params.get("ImageBase64")
37919
38304
  self._ImageUrl = params.get("ImageUrl")
37920
38305
  self._CardSide = params.get("CardSide")
38306
+ self._TractorCardSide = params.get("TractorCardSide")
37921
38307
  memeber_set = set(params.keys())
37922
38308
  for name, value in vars(self).items():
37923
38309
  property_name = name[1:]
@@ -37959,6 +38345,9 @@ WARN_DRIVER_LICENSE_BORDER_INCOMPLETE 边框不完整告警
37959
38345
  :type RecognizeWarnMsg: list of str
37960
38346
  :param _VehicleLicenseType: 行驶证类型 电子行驶证:Electronic 普通行驶证:Normal
37961
38347
  :type VehicleLicenseType: str
38348
+ :param _TractorBackInfo: 拖拉机行驶证副页正面的识别结果,CardSide 为 BACK。
38349
+ 注意:此字段可能返回 null,表示取不到有效值。
38350
+ :type TractorBackInfo: :class:`tencentcloud.ocr.v20181119.models.TextTractorVehicleBack`
37962
38351
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
37963
38352
  :type RequestId: str
37964
38353
  """
@@ -37967,6 +38356,7 @@ WARN_DRIVER_LICENSE_BORDER_INCOMPLETE 边框不完整告警
37967
38356
  self._RecognizeWarnCode = None
37968
38357
  self._RecognizeWarnMsg = None
37969
38358
  self._VehicleLicenseType = None
38359
+ self._TractorBackInfo = None
37970
38360
  self._RequestId = None
37971
38361
 
37972
38362
  @property
@@ -38038,6 +38428,18 @@ WARN_DRIVER_LICENSE_BORDER_INCOMPLETE 边框不完整告警
38038
38428
  def VehicleLicenseType(self, VehicleLicenseType):
38039
38429
  self._VehicleLicenseType = VehicleLicenseType
38040
38430
 
38431
+ @property
38432
+ def TractorBackInfo(self):
38433
+ """拖拉机行驶证副页正面的识别结果,CardSide 为 BACK。
38434
+ 注意:此字段可能返回 null,表示取不到有效值。
38435
+ :rtype: :class:`tencentcloud.ocr.v20181119.models.TextTractorVehicleBack`
38436
+ """
38437
+ return self._TractorBackInfo
38438
+
38439
+ @TractorBackInfo.setter
38440
+ def TractorBackInfo(self, TractorBackInfo):
38441
+ self._TractorBackInfo = TractorBackInfo
38442
+
38041
38443
  @property
38042
38444
  def RequestId(self):
38043
38445
  """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
@@ -38060,6 +38462,9 @@ WARN_DRIVER_LICENSE_BORDER_INCOMPLETE 边框不完整告警
38060
38462
  self._RecognizeWarnCode = params.get("RecognizeWarnCode")
38061
38463
  self._RecognizeWarnMsg = params.get("RecognizeWarnMsg")
38062
38464
  self._VehicleLicenseType = params.get("VehicleLicenseType")
38465
+ if params.get("TractorBackInfo") is not None:
38466
+ self._TractorBackInfo = TextTractorVehicleBack()
38467
+ self._TractorBackInfo._deserialize(params.get("TractorBackInfo"))
38063
38468
  self._RequestId = params.get("RequestId")
38064
38469
 
38065
38470
 
@@ -1598,12 +1598,12 @@ class OcrClient(AbstractClient):
1598
1598
  </tr>
1599
1599
  <tr>
1600
1600
  <td> ElectronicFlightTicketFull</td>
1601
- <td> 电子发票(机票行程单),该子类目前仅支持ofd发票</td>
1601
+ <td> 电子发票(机票行程单)</td>
1602
1602
  <td> 16 </td>
1603
1603
  </tr>
1604
1604
  <tr>
1605
1605
  <td> ElectronicTrainTicketFull</td>
1606
- <td> 电子发票(铁路电子客票),该子类目前仅支持ofd发票</td>
1606
+ <td> 电子发票(铁路电子客票)</td>
1607
1607
  <td> 16 </td>
1608
1608
  </tr>
1609
1609
  <tr>
@@ -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
 
@@ -2235,6 +2235,8 @@ class OcrClient(AbstractClient):
2235
2235
  def TextDetect(self, request):
2236
2236
  """本接口通过检测图片中的文字信息特征,快速判断图片中有无文字并返回判断结果,帮助用户过滤无文字的图片。
2237
2237
 
2238
+ 默认接口请求频率限制:5次/秒。
2239
+
2238
2240
  :param request: Request instance for TextDetect.
2239
2241
  :type request: :class:`tencentcloud.ocr.v20181119.models.TextDetectRequest`
2240
2242
  :rtype: :class:`tencentcloud.ocr.v20181119.models.TextDetectResponse`
@@ -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.1288
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.1288
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common==3.0.1276