tencentcloud-sdk-python-ocr 3.0.1292__tar.gz → 3.0.1295__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.1292 → tencentcloud-sdk-python-ocr-3.0.1295}/PKG-INFO +1 -1
  2. {tencentcloud-sdk-python-ocr-3.0.1292 → tencentcloud-sdk-python-ocr-3.0.1295}/setup.py +1 -1
  3. {tencentcloud-sdk-python-ocr-3.0.1292 → tencentcloud-sdk-python-ocr-3.0.1295}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud-sdk-python-ocr-3.0.1292 → tencentcloud-sdk-python-ocr-3.0.1295}/tencentcloud/ocr/v20181119/errorcodes.py +0 -6
  5. {tencentcloud-sdk-python-ocr-3.0.1292 → tencentcloud-sdk-python-ocr-3.0.1295}/tencentcloud/ocr/v20181119/models.py +676 -336
  6. {tencentcloud-sdk-python-ocr-3.0.1292 → tencentcloud-sdk-python-ocr-3.0.1295}/tencentcloud/ocr/v20181119/ocr_client.py +52 -31
  7. {tencentcloud-sdk-python-ocr-3.0.1292 → tencentcloud-sdk-python-ocr-3.0.1295}/tencentcloud_sdk_python_ocr.egg-info/PKG-INFO +1 -1
  8. tencentcloud-sdk-python-ocr-3.0.1295/tencentcloud_sdk_python_ocr.egg-info/requires.txt +1 -0
  9. tencentcloud-sdk-python-ocr-3.0.1292/tencentcloud_sdk_python_ocr.egg-info/requires.txt +0 -1
  10. {tencentcloud-sdk-python-ocr-3.0.1292 → tencentcloud-sdk-python-ocr-3.0.1295}/README.rst +0 -0
  11. {tencentcloud-sdk-python-ocr-3.0.1292 → tencentcloud-sdk-python-ocr-3.0.1295}/setup.cfg +0 -0
  12. {tencentcloud-sdk-python-ocr-3.0.1292 → tencentcloud-sdk-python-ocr-3.0.1295}/tencentcloud/ocr/__init__.py +0 -0
  13. {tencentcloud-sdk-python-ocr-3.0.1292 → tencentcloud-sdk-python-ocr-3.0.1295}/tencentcloud/ocr/v20181119/__init__.py +0 -0
  14. {tencentcloud-sdk-python-ocr-3.0.1292 → tencentcloud-sdk-python-ocr-3.0.1295}/tencentcloud_sdk_python_ocr.egg-info/SOURCES.txt +0 -0
  15. {tencentcloud-sdk-python-ocr-3.0.1292 → tencentcloud-sdk-python-ocr-3.0.1295}/tencentcloud_sdk_python_ocr.egg-info/dependency_links.txt +0 -0
  16. {tencentcloud-sdk-python-ocr-3.0.1292 → tencentcloud-sdk-python-ocr-3.0.1295}/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.1292
3
+ Version: 3.0.1295
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.1292"],
11
+ install_requires=["tencentcloud-sdk-python-common==3.0.1295"],
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.1292'
17
+ __version__ = '3.0.1295'
@@ -50,9 +50,6 @@ FAILEDOPERATION_IDCARDINFOILLEGAL = 'FailedOperation.IdCardInfoIllegal'
50
50
  # 图片分辨率过小或身份证在原图中的占比过小
51
51
  FAILEDOPERATION_IDCARDTOOSMALL = 'FailedOperation.IdCardTooSmall'
52
52
 
53
- # 银行卡信息非法。
54
- FAILEDOPERATION_ILLEGALBANKCARDERROR = 'FailedOperation.IllegalBankCardError'
55
-
56
53
  # 图片模糊。
57
54
  FAILEDOPERATION_IMAGEBLUR = 'FailedOperation.ImageBlur'
58
55
 
@@ -89,9 +86,6 @@ FAILEDOPERATION_LICENSEMULTICARDERROR = 'FailedOperation.LicenseMultiCardError'
89
86
  # 图片中存在两张及以上同面卡证,请上传卡证单面图片或一正一反双面图片。
90
87
  FAILEDOPERATION_MULTICARDERROR = 'FailedOperation.MultiCardError'
91
88
 
92
- # 非银行卡。
93
- FAILEDOPERATION_NOBANKCARDERROR = 'FailedOperation.NoBankCardError'
94
-
95
89
  # 非营业执照。
96
90
  FAILEDOPERATION_NOBIZLICENSE = 'FailedOperation.NoBizLicense'
97
91
 
@@ -1340,334 +1340,6 @@ class ArithmeticOCRResponse(AbstractModel):
1340
1340
  self._RequestId = params.get("RequestId")
1341
1341
 
1342
1342
 
1343
- class BankCardOCRRequest(AbstractModel):
1344
- """BankCardOCR请求参数结构体
1345
-
1346
- """
1347
-
1348
- def __init__(self):
1349
- r"""
1350
- :param _ImageBase64: 图片的 Base64 值。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
1351
- 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
1352
- :type ImageBase64: str
1353
- :param _ImageUrl: 图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
1354
- 建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
1355
- :type ImageUrl: str
1356
- :param _RetBorderCutImage: 是否返回预处理(精确剪裁对齐)后的银行卡图片数据,默认false。
1357
- :type RetBorderCutImage: bool
1358
- :param _RetCardNoImage: 是否返回卡号的切图图片数据,默认false。
1359
- :type RetCardNoImage: bool
1360
- :param _EnableCopyCheck: 复印件检测开关,如果输入的图片是银行卡复印件图片则返回告警,默认false。
1361
- :type EnableCopyCheck: bool
1362
- :param _EnableReshootCheck: 翻拍检测开关,如果输入的图片是银行卡翻拍图片则返回告警,默认false。
1363
- :type EnableReshootCheck: bool
1364
- :param _EnableBorderCheck: 边框遮挡检测开关,如果输入的图片是银行卡边框被遮挡则返回告警,默认false。
1365
- :type EnableBorderCheck: bool
1366
- :param _EnableQualityValue: 是否返回图片质量分数(图片质量分数是评价一个图片的模糊程度的标准),默认false。
1367
- :type EnableQualityValue: bool
1368
- """
1369
- self._ImageBase64 = None
1370
- self._ImageUrl = None
1371
- self._RetBorderCutImage = None
1372
- self._RetCardNoImage = None
1373
- self._EnableCopyCheck = None
1374
- self._EnableReshootCheck = None
1375
- self._EnableBorderCheck = None
1376
- self._EnableQualityValue = None
1377
-
1378
- @property
1379
- def ImageBase64(self):
1380
- """图片的 Base64 值。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
1381
- 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
1382
- :rtype: str
1383
- """
1384
- return self._ImageBase64
1385
-
1386
- @ImageBase64.setter
1387
- def ImageBase64(self, ImageBase64):
1388
- self._ImageBase64 = ImageBase64
1389
-
1390
- @property
1391
- def ImageUrl(self):
1392
- """图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
1393
- 建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
1394
- :rtype: str
1395
- """
1396
- return self._ImageUrl
1397
-
1398
- @ImageUrl.setter
1399
- def ImageUrl(self, ImageUrl):
1400
- self._ImageUrl = ImageUrl
1401
-
1402
- @property
1403
- def RetBorderCutImage(self):
1404
- """是否返回预处理(精确剪裁对齐)后的银行卡图片数据,默认false。
1405
- :rtype: bool
1406
- """
1407
- return self._RetBorderCutImage
1408
-
1409
- @RetBorderCutImage.setter
1410
- def RetBorderCutImage(self, RetBorderCutImage):
1411
- self._RetBorderCutImage = RetBorderCutImage
1412
-
1413
- @property
1414
- def RetCardNoImage(self):
1415
- """是否返回卡号的切图图片数据,默认false。
1416
- :rtype: bool
1417
- """
1418
- return self._RetCardNoImage
1419
-
1420
- @RetCardNoImage.setter
1421
- def RetCardNoImage(self, RetCardNoImage):
1422
- self._RetCardNoImage = RetCardNoImage
1423
-
1424
- @property
1425
- def EnableCopyCheck(self):
1426
- """复印件检测开关,如果输入的图片是银行卡复印件图片则返回告警,默认false。
1427
- :rtype: bool
1428
- """
1429
- return self._EnableCopyCheck
1430
-
1431
- @EnableCopyCheck.setter
1432
- def EnableCopyCheck(self, EnableCopyCheck):
1433
- self._EnableCopyCheck = EnableCopyCheck
1434
-
1435
- @property
1436
- def EnableReshootCheck(self):
1437
- """翻拍检测开关,如果输入的图片是银行卡翻拍图片则返回告警,默认false。
1438
- :rtype: bool
1439
- """
1440
- return self._EnableReshootCheck
1441
-
1442
- @EnableReshootCheck.setter
1443
- def EnableReshootCheck(self, EnableReshootCheck):
1444
- self._EnableReshootCheck = EnableReshootCheck
1445
-
1446
- @property
1447
- def EnableBorderCheck(self):
1448
- """边框遮挡检测开关,如果输入的图片是银行卡边框被遮挡则返回告警,默认false。
1449
- :rtype: bool
1450
- """
1451
- return self._EnableBorderCheck
1452
-
1453
- @EnableBorderCheck.setter
1454
- def EnableBorderCheck(self, EnableBorderCheck):
1455
- self._EnableBorderCheck = EnableBorderCheck
1456
-
1457
- @property
1458
- def EnableQualityValue(self):
1459
- """是否返回图片质量分数(图片质量分数是评价一个图片的模糊程度的标准),默认false。
1460
- :rtype: bool
1461
- """
1462
- return self._EnableQualityValue
1463
-
1464
- @EnableQualityValue.setter
1465
- def EnableQualityValue(self, EnableQualityValue):
1466
- self._EnableQualityValue = EnableQualityValue
1467
-
1468
-
1469
- def _deserialize(self, params):
1470
- self._ImageBase64 = params.get("ImageBase64")
1471
- self._ImageUrl = params.get("ImageUrl")
1472
- self._RetBorderCutImage = params.get("RetBorderCutImage")
1473
- self._RetCardNoImage = params.get("RetCardNoImage")
1474
- self._EnableCopyCheck = params.get("EnableCopyCheck")
1475
- self._EnableReshootCheck = params.get("EnableReshootCheck")
1476
- self._EnableBorderCheck = params.get("EnableBorderCheck")
1477
- self._EnableQualityValue = params.get("EnableQualityValue")
1478
- memeber_set = set(params.keys())
1479
- for name, value in vars(self).items():
1480
- property_name = name[1:]
1481
- if property_name in memeber_set:
1482
- memeber_set.remove(property_name)
1483
- if len(memeber_set) > 0:
1484
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
1485
-
1486
-
1487
-
1488
- class BankCardOCRResponse(AbstractModel):
1489
- """BankCardOCR返回参数结构体
1490
-
1491
- """
1492
-
1493
- def __init__(self):
1494
- r"""
1495
- :param _CardNo: 卡号
1496
- :type CardNo: str
1497
- :param _BankInfo: 银行信息
1498
- :type BankInfo: str
1499
- :param _ValidDate: 有效期,格式如:07/2023
1500
- :type ValidDate: str
1501
- :param _CardType: 卡类型
1502
- :type CardType: str
1503
- :param _CardName: 卡名字
1504
- :type CardName: str
1505
- :param _BorderCutImage: 切片图片数据
1506
- 注意:此字段可能返回 null,表示取不到有效值。
1507
- :type BorderCutImage: str
1508
- :param _CardNoImage: 卡号图片数据
1509
- 注意:此字段可能返回 null,表示取不到有效值。
1510
- :type CardNoImage: str
1511
- :param _WarningCode: WarningCode 告警码列表和释义:
1512
- -9110:银行卡日期无效;
1513
- -9111:银行卡边框不完整;
1514
- -9112:银行卡图片反光;
1515
- -9113:银行卡复印件;
1516
- -9114:银行卡翻拍件
1517
- (告警码可以同时存在多个)
1518
- 注意:此字段可能返回 null,表示取不到有效值。
1519
- :type WarningCode: list of int
1520
- :param _QualityValue: 图片质量分数,请求EnableQualityValue时返回(取值范围:0-100,分数越低越模糊,建议阈值≥50)。
1521
- 注意:此字段可能返回 null,表示取不到有效值。
1522
- :type QualityValue: int
1523
- :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1524
- :type RequestId: str
1525
- """
1526
- self._CardNo = None
1527
- self._BankInfo = None
1528
- self._ValidDate = None
1529
- self._CardType = None
1530
- self._CardName = None
1531
- self._BorderCutImage = None
1532
- self._CardNoImage = None
1533
- self._WarningCode = None
1534
- self._QualityValue = None
1535
- self._RequestId = None
1536
-
1537
- @property
1538
- def CardNo(self):
1539
- """卡号
1540
- :rtype: str
1541
- """
1542
- return self._CardNo
1543
-
1544
- @CardNo.setter
1545
- def CardNo(self, CardNo):
1546
- self._CardNo = CardNo
1547
-
1548
- @property
1549
- def BankInfo(self):
1550
- """银行信息
1551
- :rtype: str
1552
- """
1553
- return self._BankInfo
1554
-
1555
- @BankInfo.setter
1556
- def BankInfo(self, BankInfo):
1557
- self._BankInfo = BankInfo
1558
-
1559
- @property
1560
- def ValidDate(self):
1561
- """有效期,格式如:07/2023
1562
- :rtype: str
1563
- """
1564
- return self._ValidDate
1565
-
1566
- @ValidDate.setter
1567
- def ValidDate(self, ValidDate):
1568
- self._ValidDate = ValidDate
1569
-
1570
- @property
1571
- def CardType(self):
1572
- """卡类型
1573
- :rtype: str
1574
- """
1575
- return self._CardType
1576
-
1577
- @CardType.setter
1578
- def CardType(self, CardType):
1579
- self._CardType = CardType
1580
-
1581
- @property
1582
- def CardName(self):
1583
- """卡名字
1584
- :rtype: str
1585
- """
1586
- return self._CardName
1587
-
1588
- @CardName.setter
1589
- def CardName(self, CardName):
1590
- self._CardName = CardName
1591
-
1592
- @property
1593
- def BorderCutImage(self):
1594
- """切片图片数据
1595
- 注意:此字段可能返回 null,表示取不到有效值。
1596
- :rtype: str
1597
- """
1598
- return self._BorderCutImage
1599
-
1600
- @BorderCutImage.setter
1601
- def BorderCutImage(self, BorderCutImage):
1602
- self._BorderCutImage = BorderCutImage
1603
-
1604
- @property
1605
- def CardNoImage(self):
1606
- """卡号图片数据
1607
- 注意:此字段可能返回 null,表示取不到有效值。
1608
- :rtype: str
1609
- """
1610
- return self._CardNoImage
1611
-
1612
- @CardNoImage.setter
1613
- def CardNoImage(self, CardNoImage):
1614
- self._CardNoImage = CardNoImage
1615
-
1616
- @property
1617
- def WarningCode(self):
1618
- """WarningCode 告警码列表和释义:
1619
- -9110:银行卡日期无效;
1620
- -9111:银行卡边框不完整;
1621
- -9112:银行卡图片反光;
1622
- -9113:银行卡复印件;
1623
- -9114:银行卡翻拍件
1624
- (告警码可以同时存在多个)
1625
- 注意:此字段可能返回 null,表示取不到有效值。
1626
- :rtype: list of int
1627
- """
1628
- return self._WarningCode
1629
-
1630
- @WarningCode.setter
1631
- def WarningCode(self, WarningCode):
1632
- self._WarningCode = WarningCode
1633
-
1634
- @property
1635
- def QualityValue(self):
1636
- """图片质量分数,请求EnableQualityValue时返回(取值范围:0-100,分数越低越模糊,建议阈值≥50)。
1637
- 注意:此字段可能返回 null,表示取不到有效值。
1638
- :rtype: int
1639
- """
1640
- return self._QualityValue
1641
-
1642
- @QualityValue.setter
1643
- def QualityValue(self, QualityValue):
1644
- self._QualityValue = QualityValue
1645
-
1646
- @property
1647
- def RequestId(self):
1648
- """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1649
- :rtype: str
1650
- """
1651
- return self._RequestId
1652
-
1653
- @RequestId.setter
1654
- def RequestId(self, RequestId):
1655
- self._RequestId = RequestId
1656
-
1657
-
1658
- def _deserialize(self, params):
1659
- self._CardNo = params.get("CardNo")
1660
- self._BankInfo = params.get("BankInfo")
1661
- self._ValidDate = params.get("ValidDate")
1662
- self._CardType = params.get("CardType")
1663
- self._CardName = params.get("CardName")
1664
- self._BorderCutImage = params.get("BorderCutImage")
1665
- self._CardNoImage = params.get("CardNoImage")
1666
- self._WarningCode = params.get("WarningCode")
1667
- self._QualityValue = params.get("QualityValue")
1668
- self._RequestId = params.get("RequestId")
1669
-
1670
-
1671
1343
  class BankSlipInfo(AbstractModel):
1672
1344
  """银行回单识别出的字段
1673
1345
 
@@ -10984,6 +10656,198 @@ Finger:由手指导致的不完整,仅在不完整告警中返回
10984
10656
 
10985
10657
 
10986
10658
 
10659
+ class GetOCRResultRequest(AbstractModel):
10660
+ """GetOCRResult请求参数结构体
10661
+
10662
+ """
10663
+
10664
+ def __init__(self):
10665
+ r"""
10666
+ :param _OCRToken: token值
10667
+ :type OCRToken: str
10668
+ """
10669
+ self._OCRToken = None
10670
+
10671
+ @property
10672
+ def OCRToken(self):
10673
+ """token值
10674
+ :rtype: str
10675
+ """
10676
+ return self._OCRToken
10677
+
10678
+ @OCRToken.setter
10679
+ def OCRToken(self, OCRToken):
10680
+ self._OCRToken = OCRToken
10681
+
10682
+
10683
+ def _deserialize(self, params):
10684
+ self._OCRToken = params.get("OCRToken")
10685
+ memeber_set = set(params.keys())
10686
+ for name, value in vars(self).items():
10687
+ property_name = name[1:]
10688
+ if property_name in memeber_set:
10689
+ memeber_set.remove(property_name)
10690
+ if len(memeber_set) > 0:
10691
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
10692
+
10693
+
10694
+
10695
+ class GetOCRResultResponse(AbstractModel):
10696
+ """GetOCRResult返回参数结构体
10697
+
10698
+ """
10699
+
10700
+ def __init__(self):
10701
+ r"""
10702
+ :param _Type: ocr业务类型
10703
+ :type Type: str
10704
+ :param _OCRResult: ocr结果
10705
+ :type OCRResult: :class:`tencentcloud.ocr.v20181119.models.OCRResult`
10706
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
10707
+ :type RequestId: str
10708
+ """
10709
+ self._Type = None
10710
+ self._OCRResult = None
10711
+ self._RequestId = None
10712
+
10713
+ @property
10714
+ def Type(self):
10715
+ """ocr业务类型
10716
+ :rtype: str
10717
+ """
10718
+ return self._Type
10719
+
10720
+ @Type.setter
10721
+ def Type(self, Type):
10722
+ self._Type = Type
10723
+
10724
+ @property
10725
+ def OCRResult(self):
10726
+ """ocr结果
10727
+ :rtype: :class:`tencentcloud.ocr.v20181119.models.OCRResult`
10728
+ """
10729
+ return self._OCRResult
10730
+
10731
+ @OCRResult.setter
10732
+ def OCRResult(self, OCRResult):
10733
+ self._OCRResult = OCRResult
10734
+
10735
+ @property
10736
+ def RequestId(self):
10737
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
10738
+ :rtype: str
10739
+ """
10740
+ return self._RequestId
10741
+
10742
+ @RequestId.setter
10743
+ def RequestId(self, RequestId):
10744
+ self._RequestId = RequestId
10745
+
10746
+
10747
+ def _deserialize(self, params):
10748
+ self._Type = params.get("Type")
10749
+ if params.get("OCRResult") is not None:
10750
+ self._OCRResult = OCRResult()
10751
+ self._OCRResult._deserialize(params.get("OCRResult"))
10752
+ self._RequestId = params.get("RequestId")
10753
+
10754
+
10755
+ class GetOCRTokenRequest(AbstractModel):
10756
+ """GetOCRToken请求参数结构体
10757
+
10758
+ """
10759
+
10760
+ def __init__(self):
10761
+ r"""
10762
+ :param _Type: 业务类型,如身份证识别为IDCardOCR
10763
+ :type Type: str
10764
+ :param _IDCardConfig: 身份证配置信息
10765
+ :type IDCardConfig: :class:`tencentcloud.ocr.v20181119.models.IDCardConfig`
10766
+ """
10767
+ self._Type = None
10768
+ self._IDCardConfig = None
10769
+
10770
+ @property
10771
+ def Type(self):
10772
+ """业务类型,如身份证识别为IDCardOCR
10773
+ :rtype: str
10774
+ """
10775
+ return self._Type
10776
+
10777
+ @Type.setter
10778
+ def Type(self, Type):
10779
+ self._Type = Type
10780
+
10781
+ @property
10782
+ def IDCardConfig(self):
10783
+ """身份证配置信息
10784
+ :rtype: :class:`tencentcloud.ocr.v20181119.models.IDCardConfig`
10785
+ """
10786
+ return self._IDCardConfig
10787
+
10788
+ @IDCardConfig.setter
10789
+ def IDCardConfig(self, IDCardConfig):
10790
+ self._IDCardConfig = IDCardConfig
10791
+
10792
+
10793
+ def _deserialize(self, params):
10794
+ self._Type = params.get("Type")
10795
+ if params.get("IDCardConfig") is not None:
10796
+ self._IDCardConfig = IDCardConfig()
10797
+ self._IDCardConfig._deserialize(params.get("IDCardConfig"))
10798
+ memeber_set = set(params.keys())
10799
+ for name, value in vars(self).items():
10800
+ property_name = name[1:]
10801
+ if property_name in memeber_set:
10802
+ memeber_set.remove(property_name)
10803
+ if len(memeber_set) > 0:
10804
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
10805
+
10806
+
10807
+
10808
+ class GetOCRTokenResponse(AbstractModel):
10809
+ """GetOCRToken返回参数结构体
10810
+
10811
+ """
10812
+
10813
+ def __init__(self):
10814
+ r"""
10815
+ :param _OCRToken: token值
10816
+ :type OCRToken: str
10817
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
10818
+ :type RequestId: str
10819
+ """
10820
+ self._OCRToken = None
10821
+ self._RequestId = None
10822
+
10823
+ @property
10824
+ def OCRToken(self):
10825
+ """token值
10826
+ :rtype: str
10827
+ """
10828
+ return self._OCRToken
10829
+
10830
+ @OCRToken.setter
10831
+ def OCRToken(self, OCRToken):
10832
+ self._OCRToken = OCRToken
10833
+
10834
+ @property
10835
+ def RequestId(self):
10836
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
10837
+ :rtype: str
10838
+ """
10839
+ return self._RequestId
10840
+
10841
+ @RequestId.setter
10842
+ def RequestId(self, RequestId):
10843
+ self._RequestId = RequestId
10844
+
10845
+
10846
+ def _deserialize(self, params):
10847
+ self._OCRToken = params.get("OCRToken")
10848
+ self._RequestId = params.get("RequestId")
10849
+
10850
+
10987
10851
  class GetTaskStateRequest(AbstractModel):
10988
10852
  """GetTaskState请求参数结构体
10989
10853
 
@@ -11787,6 +11651,132 @@ class HmtResidentPermitOCRResponse(AbstractModel):
11787
11651
  self._RequestId = params.get("RequestId")
11788
11652
 
11789
11653
 
11654
+ class IDCardConfig(AbstractModel):
11655
+ """身份证配置信息
11656
+
11657
+ """
11658
+
11659
+ def __init__(self):
11660
+ r"""
11661
+ :param _CopyWarn: 默认为false
11662
+ :type CopyWarn: bool
11663
+ :param _BorderCheckWarn: 默认为false
11664
+ :type BorderCheckWarn: bool
11665
+ :param _ReshootWarn: 默认为false
11666
+ :type ReshootWarn: bool
11667
+ :param _DetectPsWarn: 默认为false
11668
+ :type DetectPsWarn: bool
11669
+ :param _TempIdWarn: 默认为false
11670
+ :type TempIdWarn: bool
11671
+ :param _InvalidDateWarn: 默认为false
11672
+ :type InvalidDateWarn: bool
11673
+ :param _ReflectWarn: 默认为false
11674
+ :type ReflectWarn: bool
11675
+ """
11676
+ self._CopyWarn = None
11677
+ self._BorderCheckWarn = None
11678
+ self._ReshootWarn = None
11679
+ self._DetectPsWarn = None
11680
+ self._TempIdWarn = None
11681
+ self._InvalidDateWarn = None
11682
+ self._ReflectWarn = None
11683
+
11684
+ @property
11685
+ def CopyWarn(self):
11686
+ """默认为false
11687
+ :rtype: bool
11688
+ """
11689
+ return self._CopyWarn
11690
+
11691
+ @CopyWarn.setter
11692
+ def CopyWarn(self, CopyWarn):
11693
+ self._CopyWarn = CopyWarn
11694
+
11695
+ @property
11696
+ def BorderCheckWarn(self):
11697
+ """默认为false
11698
+ :rtype: bool
11699
+ """
11700
+ return self._BorderCheckWarn
11701
+
11702
+ @BorderCheckWarn.setter
11703
+ def BorderCheckWarn(self, BorderCheckWarn):
11704
+ self._BorderCheckWarn = BorderCheckWarn
11705
+
11706
+ @property
11707
+ def ReshootWarn(self):
11708
+ """默认为false
11709
+ :rtype: bool
11710
+ """
11711
+ return self._ReshootWarn
11712
+
11713
+ @ReshootWarn.setter
11714
+ def ReshootWarn(self, ReshootWarn):
11715
+ self._ReshootWarn = ReshootWarn
11716
+
11717
+ @property
11718
+ def DetectPsWarn(self):
11719
+ """默认为false
11720
+ :rtype: bool
11721
+ """
11722
+ return self._DetectPsWarn
11723
+
11724
+ @DetectPsWarn.setter
11725
+ def DetectPsWarn(self, DetectPsWarn):
11726
+ self._DetectPsWarn = DetectPsWarn
11727
+
11728
+ @property
11729
+ def TempIdWarn(self):
11730
+ """默认为false
11731
+ :rtype: bool
11732
+ """
11733
+ return self._TempIdWarn
11734
+
11735
+ @TempIdWarn.setter
11736
+ def TempIdWarn(self, TempIdWarn):
11737
+ self._TempIdWarn = TempIdWarn
11738
+
11739
+ @property
11740
+ def InvalidDateWarn(self):
11741
+ """默认为false
11742
+ :rtype: bool
11743
+ """
11744
+ return self._InvalidDateWarn
11745
+
11746
+ @InvalidDateWarn.setter
11747
+ def InvalidDateWarn(self, InvalidDateWarn):
11748
+ self._InvalidDateWarn = InvalidDateWarn
11749
+
11750
+ @property
11751
+ def ReflectWarn(self):
11752
+ """默认为false
11753
+ :rtype: bool
11754
+ """
11755
+ return self._ReflectWarn
11756
+
11757
+ @ReflectWarn.setter
11758
+ def ReflectWarn(self, ReflectWarn):
11759
+ self._ReflectWarn = ReflectWarn
11760
+
11761
+
11762
+ def _deserialize(self, params):
11763
+ self._CopyWarn = params.get("CopyWarn")
11764
+ self._BorderCheckWarn = params.get("BorderCheckWarn")
11765
+ self._ReshootWarn = params.get("ReshootWarn")
11766
+ self._DetectPsWarn = params.get("DetectPsWarn")
11767
+ self._TempIdWarn = params.get("TempIdWarn")
11768
+ self._InvalidDateWarn = params.get("InvalidDateWarn")
11769
+ self._ReflectWarn = params.get("ReflectWarn")
11770
+ memeber_set = set(params.keys())
11771
+ for name, value in vars(self).items():
11772
+ property_name = name[1:]
11773
+ if property_name in memeber_set:
11774
+ memeber_set.remove(property_name)
11775
+ if len(memeber_set) > 0:
11776
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
11777
+
11778
+
11779
+
11790
11780
  class IDCardInfo(AbstractModel):
11791
11781
  """身份证信息返回
11792
11782
 
@@ -11995,6 +11985,246 @@ class IDCardInfo(AbstractModel):
11995
11985
 
11996
11986
 
11997
11987
 
11988
+ class IDCardInfoResult(AbstractModel):
11989
+ """身份证ocr信息结果
11990
+
11991
+ """
11992
+
11993
+ def __init__(self):
11994
+ r"""
11995
+ :param _WarnCodes: 警告代码
11996
+ 注意:此字段可能返回 null,表示取不到有效值。
11997
+ :type WarnCodes: list of int
11998
+ :param _Address: 地址
11999
+ 注意:此字段可能返回 null,表示取不到有效值。
12000
+ :type Address: str
12001
+ :param _Authority: 签发机关
12002
+ 注意:此字段可能返回 null,表示取不到有效值。
12003
+ :type Authority: str
12004
+ :param _Birth: 出生日期
12005
+ 注意:此字段可能返回 null,表示取不到有效值。
12006
+ :type Birth: str
12007
+ :param _IdNum: 身份证号
12008
+ 注意:此字段可能返回 null,表示取不到有效值。
12009
+ :type IdNum: str
12010
+ :param _Name: 名字
12011
+ 注意:此字段可能返回 null,表示取不到有效值。
12012
+ :type Name: str
12013
+ :param _Nation: 地区
12014
+ 注意:此字段可能返回 null,表示取不到有效值。
12015
+ :type Nation: str
12016
+ :param _Sex: 性别
12017
+ 注意:此字段可能返回 null,表示取不到有效值。
12018
+ :type Sex: str
12019
+ :param _ValidDate: 到期时间
12020
+ 注意:此字段可能返回 null,表示取不到有效值。
12021
+ :type ValidDate: str
12022
+ :param _RequestId: 请求的id
12023
+ 注意:此字段可能返回 null,表示取不到有效值。
12024
+ :type RequestId: str
12025
+ :param _ErrorCode: 错误码
12026
+ 注意:此字段可能返回 null,表示取不到有效值。
12027
+ :type ErrorCode: str
12028
+ :param _ErrorMessage: 错误信息
12029
+ 注意:此字段可能返回 null,表示取不到有效值。
12030
+ :type ErrorMessage: str
12031
+ :param _ImageUrl: 原图地址
12032
+ :type ImageUrl: str
12033
+ """
12034
+ self._WarnCodes = None
12035
+ self._Address = None
12036
+ self._Authority = None
12037
+ self._Birth = None
12038
+ self._IdNum = None
12039
+ self._Name = None
12040
+ self._Nation = None
12041
+ self._Sex = None
12042
+ self._ValidDate = None
12043
+ self._RequestId = None
12044
+ self._ErrorCode = None
12045
+ self._ErrorMessage = None
12046
+ self._ImageUrl = None
12047
+
12048
+ @property
12049
+ def WarnCodes(self):
12050
+ """警告代码
12051
+ 注意:此字段可能返回 null,表示取不到有效值。
12052
+ :rtype: list of int
12053
+ """
12054
+ return self._WarnCodes
12055
+
12056
+ @WarnCodes.setter
12057
+ def WarnCodes(self, WarnCodes):
12058
+ self._WarnCodes = WarnCodes
12059
+
12060
+ @property
12061
+ def Address(self):
12062
+ """地址
12063
+ 注意:此字段可能返回 null,表示取不到有效值。
12064
+ :rtype: str
12065
+ """
12066
+ return self._Address
12067
+
12068
+ @Address.setter
12069
+ def Address(self, Address):
12070
+ self._Address = Address
12071
+
12072
+ @property
12073
+ def Authority(self):
12074
+ """签发机关
12075
+ 注意:此字段可能返回 null,表示取不到有效值。
12076
+ :rtype: str
12077
+ """
12078
+ return self._Authority
12079
+
12080
+ @Authority.setter
12081
+ def Authority(self, Authority):
12082
+ self._Authority = Authority
12083
+
12084
+ @property
12085
+ def Birth(self):
12086
+ """出生日期
12087
+ 注意:此字段可能返回 null,表示取不到有效值。
12088
+ :rtype: str
12089
+ """
12090
+ return self._Birth
12091
+
12092
+ @Birth.setter
12093
+ def Birth(self, Birth):
12094
+ self._Birth = Birth
12095
+
12096
+ @property
12097
+ def IdNum(self):
12098
+ """身份证号
12099
+ 注意:此字段可能返回 null,表示取不到有效值。
12100
+ :rtype: str
12101
+ """
12102
+ return self._IdNum
12103
+
12104
+ @IdNum.setter
12105
+ def IdNum(self, IdNum):
12106
+ self._IdNum = IdNum
12107
+
12108
+ @property
12109
+ def Name(self):
12110
+ """名字
12111
+ 注意:此字段可能返回 null,表示取不到有效值。
12112
+ :rtype: str
12113
+ """
12114
+ return self._Name
12115
+
12116
+ @Name.setter
12117
+ def Name(self, Name):
12118
+ self._Name = Name
12119
+
12120
+ @property
12121
+ def Nation(self):
12122
+ """地区
12123
+ 注意:此字段可能返回 null,表示取不到有效值。
12124
+ :rtype: str
12125
+ """
12126
+ return self._Nation
12127
+
12128
+ @Nation.setter
12129
+ def Nation(self, Nation):
12130
+ self._Nation = Nation
12131
+
12132
+ @property
12133
+ def Sex(self):
12134
+ """性别
12135
+ 注意:此字段可能返回 null,表示取不到有效值。
12136
+ :rtype: str
12137
+ """
12138
+ return self._Sex
12139
+
12140
+ @Sex.setter
12141
+ def Sex(self, Sex):
12142
+ self._Sex = Sex
12143
+
12144
+ @property
12145
+ def ValidDate(self):
12146
+ """到期时间
12147
+ 注意:此字段可能返回 null,表示取不到有效值。
12148
+ :rtype: str
12149
+ """
12150
+ return self._ValidDate
12151
+
12152
+ @ValidDate.setter
12153
+ def ValidDate(self, ValidDate):
12154
+ self._ValidDate = ValidDate
12155
+
12156
+ @property
12157
+ def RequestId(self):
12158
+ """请求的id
12159
+ 注意:此字段可能返回 null,表示取不到有效值。
12160
+ :rtype: str
12161
+ """
12162
+ return self._RequestId
12163
+
12164
+ @RequestId.setter
12165
+ def RequestId(self, RequestId):
12166
+ self._RequestId = RequestId
12167
+
12168
+ @property
12169
+ def ErrorCode(self):
12170
+ """错误码
12171
+ 注意:此字段可能返回 null,表示取不到有效值。
12172
+ :rtype: str
12173
+ """
12174
+ return self._ErrorCode
12175
+
12176
+ @ErrorCode.setter
12177
+ def ErrorCode(self, ErrorCode):
12178
+ self._ErrorCode = ErrorCode
12179
+
12180
+ @property
12181
+ def ErrorMessage(self):
12182
+ """错误信息
12183
+ 注意:此字段可能返回 null,表示取不到有效值。
12184
+ :rtype: str
12185
+ """
12186
+ return self._ErrorMessage
12187
+
12188
+ @ErrorMessage.setter
12189
+ def ErrorMessage(self, ErrorMessage):
12190
+ self._ErrorMessage = ErrorMessage
12191
+
12192
+ @property
12193
+ def ImageUrl(self):
12194
+ """原图地址
12195
+ :rtype: str
12196
+ """
12197
+ return self._ImageUrl
12198
+
12199
+ @ImageUrl.setter
12200
+ def ImageUrl(self, ImageUrl):
12201
+ self._ImageUrl = ImageUrl
12202
+
12203
+
12204
+ def _deserialize(self, params):
12205
+ self._WarnCodes = params.get("WarnCodes")
12206
+ self._Address = params.get("Address")
12207
+ self._Authority = params.get("Authority")
12208
+ self._Birth = params.get("Birth")
12209
+ self._IdNum = params.get("IdNum")
12210
+ self._Name = params.get("Name")
12211
+ self._Nation = params.get("Nation")
12212
+ self._Sex = params.get("Sex")
12213
+ self._ValidDate = params.get("ValidDate")
12214
+ self._RequestId = params.get("RequestId")
12215
+ self._ErrorCode = params.get("ErrorCode")
12216
+ self._ErrorMessage = params.get("ErrorMessage")
12217
+ self._ImageUrl = params.get("ImageUrl")
12218
+ memeber_set = set(params.keys())
12219
+ for name, value in vars(self).items():
12220
+ property_name = name[1:]
12221
+ if property_name in memeber_set:
12222
+ memeber_set.remove(property_name)
12223
+ if len(memeber_set) > 0:
12224
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
12225
+
12226
+
12227
+
11998
12228
  class IDCardOCRRequest(AbstractModel):
11999
12229
  """IDCardOCR请求参数结构体
12000
12230
 
@@ -12384,6 +12614,65 @@ WarnInfos,告警信息,Code 告警码列表和释义:
12384
12614
  self._RequestId = params.get("RequestId")
12385
12615
 
12386
12616
 
12617
+ class IDCardResult(AbstractModel):
12618
+ """IDCardResult
12619
+
12620
+ """
12621
+
12622
+ def __init__(self):
12623
+ r"""
12624
+ :param _Front: 正面结果
12625
+ 注意:此字段可能返回 null,表示取不到有效值。
12626
+ :type Front: :class:`tencentcloud.ocr.v20181119.models.IDCardInfoResult`
12627
+ :param _Back: 反面结果
12628
+ 注意:此字段可能返回 null,表示取不到有效值。
12629
+ :type Back: :class:`tencentcloud.ocr.v20181119.models.IDCardInfoResult`
12630
+ """
12631
+ self._Front = None
12632
+ self._Back = None
12633
+
12634
+ @property
12635
+ def Front(self):
12636
+ """正面结果
12637
+ 注意:此字段可能返回 null,表示取不到有效值。
12638
+ :rtype: :class:`tencentcloud.ocr.v20181119.models.IDCardInfoResult`
12639
+ """
12640
+ return self._Front
12641
+
12642
+ @Front.setter
12643
+ def Front(self, Front):
12644
+ self._Front = Front
12645
+
12646
+ @property
12647
+ def Back(self):
12648
+ """反面结果
12649
+ 注意:此字段可能返回 null,表示取不到有效值。
12650
+ :rtype: :class:`tencentcloud.ocr.v20181119.models.IDCardInfoResult`
12651
+ """
12652
+ return self._Back
12653
+
12654
+ @Back.setter
12655
+ def Back(self, Back):
12656
+ self._Back = Back
12657
+
12658
+
12659
+ def _deserialize(self, params):
12660
+ if params.get("Front") is not None:
12661
+ self._Front = IDCardInfoResult()
12662
+ self._Front._deserialize(params.get("Front"))
12663
+ if params.get("Back") is not None:
12664
+ self._Back = IDCardInfoResult()
12665
+ self._Back._deserialize(params.get("Back"))
12666
+ memeber_set = set(params.keys())
12667
+ for name, value in vars(self).items():
12668
+ property_name = name[1:]
12669
+ if property_name in memeber_set:
12670
+ memeber_set.remove(property_name)
12671
+ if len(memeber_set) > 0:
12672
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
12673
+
12674
+
12675
+
12387
12676
  class ImageCoordinates(AbstractModel):
12388
12677
  """头像位置坐标
12389
12678
 
@@ -17935,6 +18224,46 @@ class NonTaxItem(AbstractModel):
17935
18224
 
17936
18225
 
17937
18226
 
18227
+ class OCRResult(AbstractModel):
18228
+ """ocr结果信息
18229
+
18230
+ """
18231
+
18232
+ def __init__(self):
18233
+ r"""
18234
+ :param _IDCardResult: 身份证结果
18235
+ 注意:此字段可能返回 null,表示取不到有效值。
18236
+ :type IDCardResult: :class:`tencentcloud.ocr.v20181119.models.IDCardResult`
18237
+ """
18238
+ self._IDCardResult = None
18239
+
18240
+ @property
18241
+ def IDCardResult(self):
18242
+ """身份证结果
18243
+ 注意:此字段可能返回 null,表示取不到有效值。
18244
+ :rtype: :class:`tencentcloud.ocr.v20181119.models.IDCardResult`
18245
+ """
18246
+ return self._IDCardResult
18247
+
18248
+ @IDCardResult.setter
18249
+ def IDCardResult(self, IDCardResult):
18250
+ self._IDCardResult = IDCardResult
18251
+
18252
+
18253
+ def _deserialize(self, params):
18254
+ if params.get("IDCardResult") is not None:
18255
+ self._IDCardResult = IDCardResult()
18256
+ self._IDCardResult._deserialize(params.get("IDCardResult"))
18257
+ memeber_set = set(params.keys())
18258
+ for name, value in vars(self).items():
18259
+ property_name = name[1:]
18260
+ if property_name in memeber_set:
18261
+ memeber_set.remove(property_name)
18262
+ if len(memeber_set) > 0:
18263
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
18264
+
18265
+
18266
+
17938
18267
  class OnlineTaxiItineraryInfo(AbstractModel):
17939
18268
  """网约车行程单识别结果
17940
18269
 
@@ -28032,6 +28361,8 @@ class SmartStructuralProRequest(AbstractModel):
28032
28361
  :type ReturnFullText: bool
28033
28362
  :param _ConfigId: 配置id支持:General -- 通用场景 InvoiceEng -- 海运提单、国际invoice模版 WayBillEng --海运订单模板
28034
28363
  :type ConfigId: str
28364
+ :param _EnableCoord: 是否开启全文字段坐标值的识别
28365
+ :type EnableCoord: bool
28035
28366
  """
28036
28367
  self._ImageUrl = None
28037
28368
  self._ImageBase64 = None
@@ -28039,6 +28370,7 @@ class SmartStructuralProRequest(AbstractModel):
28039
28370
  self._ItemNames = None
28040
28371
  self._ReturnFullText = None
28041
28372
  self._ConfigId = None
28373
+ self._EnableCoord = None
28042
28374
 
28043
28375
  @property
28044
28376
  def ImageUrl(self):
@@ -28106,6 +28438,17 @@ class SmartStructuralProRequest(AbstractModel):
28106
28438
  def ConfigId(self, ConfigId):
28107
28439
  self._ConfigId = ConfigId
28108
28440
 
28441
+ @property
28442
+ def EnableCoord(self):
28443
+ """是否开启全文字段坐标值的识别
28444
+ :rtype: bool
28445
+ """
28446
+ return self._EnableCoord
28447
+
28448
+ @EnableCoord.setter
28449
+ def EnableCoord(self, EnableCoord):
28450
+ self._EnableCoord = EnableCoord
28451
+
28109
28452
 
28110
28453
  def _deserialize(self, params):
28111
28454
  self._ImageUrl = params.get("ImageUrl")
@@ -28114,6 +28457,7 @@ class SmartStructuralProRequest(AbstractModel):
28114
28457
  self._ItemNames = params.get("ItemNames")
28115
28458
  self._ReturnFullText = params.get("ReturnFullText")
28116
28459
  self._ConfigId = params.get("ConfigId")
28460
+ self._EnableCoord = params.get("EnableCoord")
28117
28461
  memeber_set = set(params.keys())
28118
28462
  for name, value in vars(self).items():
28119
28463
  property_name = name[1:]
@@ -37179,7 +37523,7 @@ class VatInvoiceVerifyNewRequest(AbstractModel):
37179
37523
  :type InvoiceNo: str
37180
37524
  :param _InvoiceDate: 开票日期(不支持当天发票查询,支持五年以内开具的发票),格式:“YYYY-MM-DD”,如:2019-12-20。
37181
37525
  :type InvoiceDate: str
37182
- :param _InvoiceCode: 发票代码(10或12 位),全电发票为空。查验未成功超过5次后当日无法再查。
37526
+ :param _InvoiceCode: 发票代码(10或12 位),全电发票为空。查验超过5次后当日无法再查。
37183
37527
  :type InvoiceCode: str
37184
37528
  :param _InvoiceKind: 票种类型 01:增值税专用发票, 02:货运运输业增值税专用发 票, 03:机动车销售统一发票, 04:增值税普通发票, 08:增值税电子专用发票(含全电), 10:增值税电子普通发票(含全电), 11:增值税普通发票(卷式), 14:增值税电子(通行费)发 票, 15:二手车销售统一发票,16:财务发票, 32:深圳区块链发票(云南区块链因业务调整现已下线)。
37185
37529
  :type InvoiceKind: str
@@ -37195,9 +37539,7 @@ class VatInvoiceVerifyNewRequest(AbstractModel):
37195
37539
  :type SellerTaxCode: str
37196
37540
  :param _EnableCommonElectronic: 是否开启通用机打电子发票,默认为关闭。
37197
37541
  :type EnableCommonElectronic: bool
37198
- :param _EnableTodayInvoice: 是否允许查验当日发票,默认值为false
37199
-
37200
- 请注意,发票从开具到录入税局需要一定的时间来更新和验证发票信息,打开后仅支持查验已成功录入到税局中的发票。
37542
+ :param _EnableTodayInvoice: 是否允许查验当日发票,默认值为false。请注意,发票从开具到录入税局需要一定的时间来更新和验证发票信息,打开后仅支持查验已成功录入到税局中的当日发票。
37201
37543
  :type EnableTodayInvoice: bool
37202
37544
  """
37203
37545
  self._InvoiceNo = None
@@ -37235,7 +37577,7 @@ class VatInvoiceVerifyNewRequest(AbstractModel):
37235
37577
 
37236
37578
  @property
37237
37579
  def InvoiceCode(self):
37238
- """发票代码(10或12 位),全电发票为空。查验未成功超过5次后当日无法再查。
37580
+ """发票代码(10或12 位),全电发票为空。查验超过5次后当日无法再查。
37239
37581
  :rtype: str
37240
37582
  """
37241
37583
  return self._InvoiceCode
@@ -37314,9 +37656,7 @@ class VatInvoiceVerifyNewRequest(AbstractModel):
37314
37656
 
37315
37657
  @property
37316
37658
  def EnableTodayInvoice(self):
37317
- """是否允许查验当日发票,默认值为false
37318
-
37319
- 请注意,发票从开具到录入税局需要一定的时间来更新和验证发票信息,打开后仅支持查验已成功录入到税局中的发票。
37659
+ """是否允许查验当日发票,默认值为false。请注意,发票从开具到录入税局需要一定的时间来更新和验证发票信息,打开后仅支持查验已成功录入到税局中的当日发票。
37320
37660
  :rtype: bool
37321
37661
  """
37322
37662
  return self._EnableTodayInvoice
@@ -78,31 +78,6 @@ class OcrClient(AbstractClient):
78
78
  raise TencentCloudSDKException(type(e).__name__, str(e))
79
79
 
80
80
 
81
- def BankCardOCR(self, request):
82
- """本接口支持对中国大陆主流银行卡正反面关键字段的检测与识别,包括卡号、卡类型、卡名字、银行信息、有效期。支持竖排异形卡识别、多角度旋转图片识别。支持对复印件、翻拍件、边框遮挡的银行卡进行告警,可应用于各种银行卡信息有效性校验场景,如金融行业身份认证、第三方支付绑卡等场景。
83
-
84
- 默认接口请求频率限制:10次/秒。
85
-
86
- :param request: Request instance for BankCardOCR.
87
- :type request: :class:`tencentcloud.ocr.v20181119.models.BankCardOCRRequest`
88
- :rtype: :class:`tencentcloud.ocr.v20181119.models.BankCardOCRResponse`
89
-
90
- """
91
- try:
92
- params = request._serialize()
93
- headers = request.headers
94
- body = self.call("BankCardOCR", params, headers=headers)
95
- response = json.loads(body)
96
- model = models.BankCardOCRResponse()
97
- model._deserialize(response["Response"])
98
- return model
99
- except Exception as e:
100
- if isinstance(e, TencentCloudSDKException):
101
- raise
102
- else:
103
- raise TencentCloudSDKException(type(e).__name__, str(e))
104
-
105
-
106
81
  def BankSlipOCR(self, request):
107
82
  """本接口支持银行回单全字段的识别,包括付款开户行、收款开户行、付款账号、收款账号、回单类型、回单编号、币种、流水号、凭证号码、交易机构、交易金额、手续费、日期等字段信息。
108
83
 
@@ -867,6 +842,52 @@ class OcrClient(AbstractClient):
867
842
  raise TencentCloudSDKException(type(e).__name__, str(e))
868
843
 
869
844
 
845
+ def GetOCRResult(self, request):
846
+ """获取ocr结果
847
+
848
+ :param request: Request instance for GetOCRResult.
849
+ :type request: :class:`tencentcloud.ocr.v20181119.models.GetOCRResultRequest`
850
+ :rtype: :class:`tencentcloud.ocr.v20181119.models.GetOCRResultResponse`
851
+
852
+ """
853
+ try:
854
+ params = request._serialize()
855
+ headers = request.headers
856
+ body = self.call("GetOCRResult", params, headers=headers)
857
+ response = json.loads(body)
858
+ model = models.GetOCRResultResponse()
859
+ model._deserialize(response["Response"])
860
+ return model
861
+ except Exception as e:
862
+ if isinstance(e, TencentCloudSDKException):
863
+ raise
864
+ else:
865
+ raise TencentCloudSDKException(type(e).__name__, str(e))
866
+
867
+
868
+ def GetOCRToken(self, request):
869
+ """获取ocr的token值
870
+
871
+ :param request: Request instance for GetOCRToken.
872
+ :type request: :class:`tencentcloud.ocr.v20181119.models.GetOCRTokenRequest`
873
+ :rtype: :class:`tencentcloud.ocr.v20181119.models.GetOCRTokenResponse`
874
+
875
+ """
876
+ try:
877
+ params = request._serialize()
878
+ headers = request.headers
879
+ body = self.call("GetOCRToken", params, headers=headers)
880
+ response = json.loads(body)
881
+ model = models.GetOCRTokenResponse()
882
+ model._deserialize(response["Response"])
883
+ return model
884
+ except Exception as e:
885
+ if isinstance(e, TencentCloudSDKException):
886
+ raise
887
+ else:
888
+ raise TencentCloudSDKException(type(e).__name__, str(e))
889
+
890
+
870
891
  def GetTaskState(self, request):
871
892
  """智慧表单产品已下线,需要下线相关API
872
893
 
@@ -945,12 +966,12 @@ class OcrClient(AbstractClient):
945
966
  def IDCardOCR(self, request):
946
967
  """本接口支持中国大陆居民二代身份证正反面所有字段的识别,包括姓名、性别、民族、出生日期、住址、公民身份证号、签发机关、有效期限,识别准确度达到99%以上。
947
968
 
948
- 另外,本接口还支持多种增值能力,满足不同场景的需求。如身份证照片、人像照片的裁剪功能,同时具备8种告警功能,如下表所示。
969
+ 另外,本接口还支持多种扩展能力,满足不同场景的需求。如身份证照片、人像照片的裁剪功能,同时具备8种告警功能,如下表所示。
949
970
 
950
971
  <table style="width:650px">
951
972
  <thead>
952
973
  <tr>
953
- <th width="150">增值能力</th>
974
+ <th width="150">扩展能力</th>
954
975
  <th width="500">能力项</th>
955
976
  </tr>
956
977
  </thead>
@@ -1443,12 +1464,12 @@ class OcrClient(AbstractClient):
1443
1464
 
1444
1465
  本接口支持中国大陆居民二代身份证正反面所有字段的识别,包括姓名、性别、民族、出生日期、住址、公民身份证号、签发机关、有效期限,识别准确度达到99%以上。
1445
1466
 
1446
- 另外,本接口还支持多种增值能力,满足不同场景的需求。如身份证照片、人像照片的裁剪功能,同时具备9种告警功能,如下表所示。
1467
+ 另外,本接口还支持多种扩展能力,满足不同场景的需求。如身份证照片、人像照片的裁剪功能,同时具备9种告警功能,如下表所示。
1447
1468
 
1448
1469
  <table style="width:650px">
1449
1470
  <thead>
1450
1471
  <tr>
1451
- <th width="150">增值能力</th>
1472
+ <th width="150">扩展能力</th>
1452
1473
  <th width="500">能力项</th>
1453
1474
  </tr>
1454
1475
  </thead>
@@ -1832,7 +1853,7 @@ class OcrClient(AbstractClient):
1832
1853
 
1833
1854
 
1834
1855
  def RecognizeTableAccurateOCR(self, request):
1835
- """本接口支持中英文图片/PDF内常规表格、无线表格、多表格的检测和识别,返回每个单元格的文字内容,支持旋转的表格图片识别,且支持将识别结果保存为 Excel 格式。识别效果比表格识别V2更好,覆盖场景更加广泛,对表格难例场景,如无线表格、嵌套表格(有线表格中包含无线表格)的识别效果均优于表格识别V2。点击[立即体验](https://ocrdemo.cloud.tencent.com?action=RecognizeTableAccurateOCR)
1856
+ """本接口支持中英文图片/PDF内常规表格、无线表格、多表格的检测和识别,返回每个单元格的文字内容,支持旋转的表格图片识别,且支持将识别结果保存为 Excel 格式。识别效果比表格识别V2更好,覆盖场景更加广泛,对表格难例场景,如无线表格、嵌套表格(有线表格中包含无线表格)的识别效果均优于表格识别V2。
1836
1857
 
1837
1858
  默认接口请求频率限制:2次/秒。
1838
1859
 
@@ -2156,7 +2177,7 @@ class OcrClient(AbstractClient):
2156
2177
 
2157
2178
 
2158
2179
  def SmartStructuralPro(self, request):
2159
- """本接口支持智能提取各类证照、票据、表单、合同等结构化场景的key:value字段信息,并支持提取表格信息的key:value组的结构化,灵活高效,适用于各类非标准材料的信息录入场景,点击[立即体验](https://cloud.tencent.com/product/smart-ocr)。
2180
+ """本接口支持智能提取各类证照、票据、表单、合同等结构化场景的key:value字段信息,并支持提取表格信息的key:value组的结构化,灵活高效,适用于各类非标准材料的信息录入场景,点击[立即体验](https://ocrdemo.cloud.tencent.com/)。
2160
2181
 
2161
2182
  默认接口请求频率限制:5次/秒。
2162
2183
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: tencentcloud-sdk-python-ocr
3
- Version: 3.0.1292
3
+ Version: 3.0.1295
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.1295
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common==3.0.1292