tencentcloud-sdk-python-ocr 3.0.1438__py2.py3-none-any.whl → 3.0.1444__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of tencentcloud-sdk-python-ocr might be problematic. Click here for more details.

tencentcloud/__init__.py CHANGED
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1438'
17
+ __version__ = '3.0.1444'
@@ -3608,6 +3608,10 @@ class CardWarnInfo(AbstractModel):
3608
3608
  :type BlurCheck: int
3609
3609
  :param _BlurScore: 模糊分数, 范围:0.0-1.0,分数越高越模糊,建议阈值为0.5
3610
3610
  :type BlurScore: float
3611
+ :param _ElectronCheck: 是否电子身份证
3612
+ 0:否
3613
+ 1:是电子身份证
3614
+ :type ElectronCheck: int
3611
3615
  """
3612
3616
  self._BorderCheck = None
3613
3617
  self._OcclusionCheck = None
@@ -3616,6 +3620,7 @@ class CardWarnInfo(AbstractModel):
3616
3620
  self._PSCheck = None
3617
3621
  self._BlurCheck = None
3618
3622
  self._BlurScore = None
3623
+ self._ElectronCheck = None
3619
3624
 
3620
3625
  @property
3621
3626
  def BorderCheck(self):
@@ -3706,6 +3711,19 @@ class CardWarnInfo(AbstractModel):
3706
3711
  def BlurScore(self, BlurScore):
3707
3712
  self._BlurScore = BlurScore
3708
3713
 
3714
+ @property
3715
+ def ElectronCheck(self):
3716
+ """是否电子身份证
3717
+ 0:否
3718
+ 1:是电子身份证
3719
+ :rtype: int
3720
+ """
3721
+ return self._ElectronCheck
3722
+
3723
+ @ElectronCheck.setter
3724
+ def ElectronCheck(self, ElectronCheck):
3725
+ self._ElectronCheck = ElectronCheck
3726
+
3709
3727
 
3710
3728
  def _deserialize(self, params):
3711
3729
  self._BorderCheck = params.get("BorderCheck")
@@ -3715,6 +3733,7 @@ class CardWarnInfo(AbstractModel):
3715
3733
  self._PSCheck = params.get("PSCheck")
3716
3734
  self._BlurCheck = params.get("BlurCheck")
3717
3735
  self._BlurScore = params.get("BlurScore")
3736
+ self._ElectronCheck = params.get("ElectronCheck")
3718
3737
  memeber_set = set(params.keys())
3719
3738
  for name, value in vars(self).items():
3720
3739
  property_name = name[1:]
@@ -8071,7 +8090,7 @@ RideHailingDriverLicense -- 网约车驾驶证
8071
8090
  RideHailingTransportLicense -- 网约车运输证
8072
8091
  WayBill -- 快递运单
8073
8092
  AccountOpeningPermit -- 银行开户许可证
8074
- InvoiceEng -- 海外发票模版
8093
+ InvoiceEng -- 国际发票模板
8075
8094
  Coin --钱币识别模板
8076
8095
  OnboardingDocuments -- 入职材料识别
8077
8096
  PropertyOwnershipCertificate -- 房产证识别
@@ -8169,7 +8188,7 @@ RideHailingDriverLicense -- 网约车驾驶证
8169
8188
  RideHailingTransportLicense -- 网约车运输证
8170
8189
  WayBill -- 快递运单
8171
8190
  AccountOpeningPermit -- 银行开户许可证
8172
- InvoiceEng -- 海外发票模版
8191
+ InvoiceEng -- 国际发票模板
8173
8192
  Coin --钱币识别模板
8174
8193
  OnboardingDocuments -- 入职材料识别
8175
8194
  PropertyOwnershipCertificate -- 房产证识别
@@ -8331,7 +8350,7 @@ ReceiptWeightNote -- 磅单收货单识别模板
8331
8350
  :type EnableCoord: bool
8332
8351
  :param _OutputParentKey: 是否开启父子key识别,默认是
8333
8352
  :type OutputParentKey: bool
8334
- :param _ConfigAdvanced: 模版的单个属性配置
8353
+ :param _ConfigAdvanced: 模板的单个属性配置
8335
8354
  :type ConfigAdvanced: :class:`tencentcloud.ocr.v20181119.models.ConfigAdvanced`
8336
8355
  """
8337
8356
  self._ImageUrl = None
@@ -8451,7 +8470,7 @@ ReceiptWeightNote -- 磅单收货单识别模板
8451
8470
 
8452
8471
  @property
8453
8472
  def ConfigAdvanced(self):
8454
- """模版的单个属性配置
8473
+ """模板的单个属性配置
8455
8474
  :rtype: :class:`tencentcloud.ocr.v20181119.models.ConfigAdvanced`
8456
8475
  """
8457
8476
  return self._ConfigAdvanced
@@ -8605,7 +8624,7 @@ flase:输出默认字段+自定义字段
8605
8624
  :type ReturnFullText: bool
8606
8625
  :param _ConfigId: 配置id支持:
8607
8626
  General -- 通用场景
8608
- InvoiceEng -- 国际invoice模版
8627
+ InvoiceEng -- 国际invoice模板
8609
8628
  WayBillEng --海运订单模板
8610
8629
  CustomsDeclaration -- 进出口报关单
8611
8630
  WeightNote -- 磅单
@@ -8615,18 +8634,18 @@ EntrustmentBook -- 海运托书
8615
8634
  Statement -- 对账单识别模板
8616
8635
  BookingConfirmation -- 配舱通知书识别模板
8617
8636
  AirWayBill -- 航空运单识别模板
8618
- Table -- 表格模版
8637
+ Table -- 表格模板
8619
8638
  SteelLabel -- 实物标签识别模板
8620
8639
  CarInsurance -- 车辆保险单识别模板
8621
8640
  MultiRealEstateCertificate -- 房产材料识别模板
8622
8641
  MultiRealEstateMaterial -- 房产证明识别模板
8623
- HongKongUtilityBill -- 香港水电煤单识别模板
8642
+ HongKongUtilityBill -- 中国香港水电煤单识别模板
8624
8643
  :type ConfigId: str
8625
8644
  :param _EnableCoord: 是否开启全文字段坐标值的识别
8626
8645
  :type EnableCoord: bool
8627
8646
  :param _OutputParentKey: 是否开启父子key识别,默认是
8628
8647
  :type OutputParentKey: bool
8629
- :param _ConfigAdvanced: 模版的单个属性配置
8648
+ :param _ConfigAdvanced: 模板的单个属性配置
8630
8649
  :type ConfigAdvanced: :class:`tencentcloud.ocr.v20181119.models.ConfigAdvanced`
8631
8650
  :param _OutputLanguage: cn时,添加的key为中文
8632
8651
  en时,添加的key为英语
@@ -8716,7 +8735,7 @@ flase:输出默认字段+自定义字段
8716
8735
  def ConfigId(self):
8717
8736
  """配置id支持:
8718
8737
  General -- 通用场景
8719
- InvoiceEng -- 国际invoice模版
8738
+ InvoiceEng -- 国际invoice模板
8720
8739
  WayBillEng --海运订单模板
8721
8740
  CustomsDeclaration -- 进出口报关单
8722
8741
  WeightNote -- 磅单
@@ -8726,12 +8745,12 @@ EntrustmentBook -- 海运托书
8726
8745
  Statement -- 对账单识别模板
8727
8746
  BookingConfirmation -- 配舱通知书识别模板
8728
8747
  AirWayBill -- 航空运单识别模板
8729
- Table -- 表格模版
8748
+ Table -- 表格模板
8730
8749
  SteelLabel -- 实物标签识别模板
8731
8750
  CarInsurance -- 车辆保险单识别模板
8732
8751
  MultiRealEstateCertificate -- 房产材料识别模板
8733
8752
  MultiRealEstateMaterial -- 房产证明识别模板
8734
- HongKongUtilityBill -- 香港水电煤单识别模板
8753
+ HongKongUtilityBill -- 中国香港水电煤单识别模板
8735
8754
  :rtype: str
8736
8755
  """
8737
8756
  return self._ConfigId
@@ -8764,7 +8783,7 @@ HongKongUtilityBill -- 香港水电煤单识别模板
8764
8783
 
8765
8784
  @property
8766
8785
  def ConfigAdvanced(self):
8767
- """模版的单个属性配置
8786
+ """模板的单个属性配置
8768
8787
  :rtype: :class:`tencentcloud.ocr.v20181119.models.ConfigAdvanced`
8769
8788
  """
8770
8789
  return self._ConfigAdvanced
@@ -10577,6 +10596,8 @@ class GeneralAccurateOCRRequest(AbstractModel):
10577
10596
  :type PdfPageNumber: int
10578
10597
  :param _EnableDetectText: 文本检测开关,默认为true。设置为false可直接进行单行识别,适用于仅包含正向单行文本的图片场景。
10579
10598
  :type EnableDetectText: bool
10599
+ :param _ConfigID: 配置ID支持: OCR -- 通用场景 MulOCR--多语种场景
10600
+ :type ConfigID: str
10580
10601
  """
10581
10602
  self._ImageBase64 = None
10582
10603
  self._ImageUrl = None
@@ -10585,6 +10606,7 @@ class GeneralAccurateOCRRequest(AbstractModel):
10585
10606
  self._IsPdf = None
10586
10607
  self._PdfPageNumber = None
10587
10608
  self._EnableDetectText = None
10609
+ self._ConfigID = None
10588
10610
 
10589
10611
  @property
10590
10612
  def ImageBase64(self):
@@ -10663,6 +10685,17 @@ class GeneralAccurateOCRRequest(AbstractModel):
10663
10685
  def EnableDetectText(self, EnableDetectText):
10664
10686
  self._EnableDetectText = EnableDetectText
10665
10687
 
10688
+ @property
10689
+ def ConfigID(self):
10690
+ """配置ID支持: OCR -- 通用场景 MulOCR--多语种场景
10691
+ :rtype: str
10692
+ """
10693
+ return self._ConfigID
10694
+
10695
+ @ConfigID.setter
10696
+ def ConfigID(self, ConfigID):
10697
+ self._ConfigID = ConfigID
10698
+
10666
10699
 
10667
10700
  def _deserialize(self, params):
10668
10701
  self._ImageBase64 = params.get("ImageBase64")
@@ -10672,6 +10705,7 @@ class GeneralAccurateOCRRequest(AbstractModel):
10672
10705
  self._IsPdf = params.get("IsPdf")
10673
10706
  self._PdfPageNumber = params.get("PdfPageNumber")
10674
10707
  self._EnableDetectText = params.get("EnableDetectText")
10708
+ self._ConfigID = params.get("ConfigID")
10675
10709
  memeber_set = set(params.keys())
10676
10710
  for name, value in vars(self).items():
10677
10711
  property_name = name[1:]
@@ -12514,10 +12548,10 @@ class HandwritingEssayOCRRequest(AbstractModel):
12514
12548
  :param _PdfPageNumber: 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为前3页。
12515
12549
  :type PdfPageNumber: int
12516
12550
  :param _ConfigId: 配置id支持:
12517
- ArticleRecognize -- 手写作文模版
12551
+ ArticleRecognize -- 手写作文模板
12518
12552
  默认:ArticleRecognize
12519
12553
  :type ConfigId: str
12520
- :param _Scene: 模版的单个属性配置
12554
+ :param _Scene: 模板的单个属性配置
12521
12555
  :type Scene: str
12522
12556
  """
12523
12557
  self._ImageUrl = None
@@ -12562,7 +12596,7 @@ ArticleRecognize -- 手写作文模版
12562
12596
  @property
12563
12597
  def ConfigId(self):
12564
12598
  """配置id支持:
12565
- ArticleRecognize -- 手写作文模版
12599
+ ArticleRecognize -- 手写作文模板
12566
12600
  默认:ArticleRecognize
12567
12601
  :rtype: str
12568
12602
  """
@@ -12574,7 +12608,7 @@ ArticleRecognize -- 手写作文模版
12574
12608
 
12575
12609
  @property
12576
12610
  def Scene(self):
12577
- """模版的单个属性配置
12611
+ """模板的单个属性配置
12578
12612
  :rtype: str
12579
12613
  """
12580
12614
  return self._Scene
@@ -27157,6 +27191,8 @@ class RecognizeValidIDCardOCRRequest(AbstractModel):
27157
27191
  :type EnableWordCheck: bool
27158
27192
  :param _EnableQualityCheck: 默认值为false,打开返回证件是否模糊。
27159
27193
  :type EnableQualityCheck: bool
27194
+ :param _EnableElectronCheck: 默认值为false,打开返回是否存在电子身份证判断。
27195
+ :type EnableElectronCheck: bool
27160
27196
  """
27161
27197
  self._ImageBase64 = None
27162
27198
  self._ImageUrl = None
@@ -27170,6 +27206,7 @@ class RecognizeValidIDCardOCRRequest(AbstractModel):
27170
27206
  self._EnablePSCheck = None
27171
27207
  self._EnableWordCheck = None
27172
27208
  self._EnableQualityCheck = None
27209
+ self._EnableElectronCheck = None
27173
27210
 
27174
27211
  @property
27175
27212
  def ImageBase64(self):
@@ -27316,6 +27353,17 @@ class RecognizeValidIDCardOCRRequest(AbstractModel):
27316
27353
  def EnableQualityCheck(self, EnableQualityCheck):
27317
27354
  self._EnableQualityCheck = EnableQualityCheck
27318
27355
 
27356
+ @property
27357
+ def EnableElectronCheck(self):
27358
+ """默认值为false,打开返回是否存在电子身份证判断。
27359
+ :rtype: bool
27360
+ """
27361
+ return self._EnableElectronCheck
27362
+
27363
+ @EnableElectronCheck.setter
27364
+ def EnableElectronCheck(self, EnableElectronCheck):
27365
+ self._EnableElectronCheck = EnableElectronCheck
27366
+
27319
27367
 
27320
27368
  def _deserialize(self, params):
27321
27369
  self._ImageBase64 = params.get("ImageBase64")
@@ -27330,6 +27378,7 @@ class RecognizeValidIDCardOCRRequest(AbstractModel):
27330
27378
  self._EnablePSCheck = params.get("EnablePSCheck")
27331
27379
  self._EnableWordCheck = params.get("EnableWordCheck")
27332
27380
  self._EnableQualityCheck = params.get("EnableQualityCheck")
27381
+ self._EnableElectronCheck = params.get("EnableElectronCheck")
27333
27382
  memeber_set = set(params.keys())
27334
27383
  for name, value in vars(self).items():
27335
27384
  property_name = name[1:]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-ocr
3
- Version: 3.0.1438
3
+ Version: 3.0.1444
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
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.6
17
17
  Classifier: Programming Language :: Python :: 3.7
18
- Requires-Dist: tencentcloud-sdk-python-common (<4.0.0,>=3.0.1438)
18
+ Requires-Dist: tencentcloud-sdk-python-common (<4.0.0,>=3.0.1444)
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1,10 @@
1
+ tencentcloud/__init__.py,sha256=z7pegdPMkssddojtfv7Ov_NQWpfty7HFI6vrZw_JgMU,631
2
+ tencentcloud/ocr/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ tencentcloud/ocr/v20181119/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ tencentcloud/ocr/v20181119/errorcodes.py,sha256=F14bbQDRi4P9JfBfjuTGaR08iiQkY3d3KcyBwscqAtk,6985
5
+ tencentcloud/ocr/v20181119/models.py,sha256=k-76pnHF0Pg5ZHfEaVO_MkZs4GfaCOBDpdFpfd_QEc8,1384472
6
+ tencentcloud/ocr/v20181119/ocr_client.py,sha256=D9rJ5NROJ6i0WjWIUXD0CvY_NTYq74un_lPz_o3DcKQ,123525
7
+ tencentcloud_sdk_python_ocr-3.0.1444.dist-info/METADATA,sha256=XzDaoi96DKbQYYDAP6zVM-D7-rdFPS4Lxhdm45rSHos,1503
8
+ tencentcloud_sdk_python_ocr-3.0.1444.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
9
+ tencentcloud_sdk_python_ocr-3.0.1444.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
10
+ tencentcloud_sdk_python_ocr-3.0.1444.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- tencentcloud/__init__.py,sha256=L9ZWJfKuTSRkkepyZo_LE4xEIrV3t8FJ4Mq0rSjpuP0,631
2
- tencentcloud/ocr/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- tencentcloud/ocr/v20181119/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- tencentcloud/ocr/v20181119/errorcodes.py,sha256=F14bbQDRi4P9JfBfjuTGaR08iiQkY3d3KcyBwscqAtk,6985
5
- tencentcloud/ocr/v20181119/models.py,sha256=_lSP58lyhycpyQ8jt7di77_Ev6l2smj0_cLXlauZDK0,1382890
6
- tencentcloud/ocr/v20181119/ocr_client.py,sha256=D9rJ5NROJ6i0WjWIUXD0CvY_NTYq74un_lPz_o3DcKQ,123525
7
- tencentcloud_sdk_python_ocr-3.0.1438.dist-info/METADATA,sha256=8ChXFrc4BkdFuhmHxoGZNyPce-MWHer4Vy48XzVyI1A,1503
8
- tencentcloud_sdk_python_ocr-3.0.1438.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
9
- tencentcloud_sdk_python_ocr-3.0.1438.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
10
- tencentcloud_sdk_python_ocr-3.0.1438.dist-info/RECORD,,