tencentcloud-sdk-python-ocr 3.0.1416__tar.gz → 3.0.1419__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.

Potentially problematic release.


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

Files changed (16) hide show
  1. {tencentcloud-sdk-python-ocr-3.0.1416 → tencentcloud-sdk-python-ocr-3.0.1419}/PKG-INFO +1 -1
  2. {tencentcloud-sdk-python-ocr-3.0.1416 → tencentcloud-sdk-python-ocr-3.0.1419}/setup.py +1 -1
  3. {tencentcloud-sdk-python-ocr-3.0.1416 → tencentcloud-sdk-python-ocr-3.0.1419}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud-sdk-python-ocr-3.0.1416 → tencentcloud-sdk-python-ocr-3.0.1419}/tencentcloud/ocr/v20181119/models.py +158 -0
  5. {tencentcloud-sdk-python-ocr-3.0.1416 → tencentcloud-sdk-python-ocr-3.0.1419}/tencentcloud_sdk_python_ocr.egg-info/PKG-INFO +1 -1
  6. tencentcloud-sdk-python-ocr-3.0.1419/tencentcloud_sdk_python_ocr.egg-info/requires.txt +1 -0
  7. tencentcloud-sdk-python-ocr-3.0.1416/tencentcloud_sdk_python_ocr.egg-info/requires.txt +0 -1
  8. {tencentcloud-sdk-python-ocr-3.0.1416 → tencentcloud-sdk-python-ocr-3.0.1419}/README.rst +0 -0
  9. {tencentcloud-sdk-python-ocr-3.0.1416 → tencentcloud-sdk-python-ocr-3.0.1419}/setup.cfg +0 -0
  10. {tencentcloud-sdk-python-ocr-3.0.1416 → tencentcloud-sdk-python-ocr-3.0.1419}/tencentcloud/ocr/__init__.py +0 -0
  11. {tencentcloud-sdk-python-ocr-3.0.1416 → tencentcloud-sdk-python-ocr-3.0.1419}/tencentcloud/ocr/v20181119/__init__.py +0 -0
  12. {tencentcloud-sdk-python-ocr-3.0.1416 → tencentcloud-sdk-python-ocr-3.0.1419}/tencentcloud/ocr/v20181119/errorcodes.py +0 -0
  13. {tencentcloud-sdk-python-ocr-3.0.1416 → tencentcloud-sdk-python-ocr-3.0.1419}/tencentcloud/ocr/v20181119/ocr_client.py +0 -0
  14. {tencentcloud-sdk-python-ocr-3.0.1416 → tencentcloud-sdk-python-ocr-3.0.1419}/tencentcloud_sdk_python_ocr.egg-info/SOURCES.txt +0 -0
  15. {tencentcloud-sdk-python-ocr-3.0.1416 → tencentcloud-sdk-python-ocr-3.0.1419}/tencentcloud_sdk_python_ocr.egg-info/dependency_links.txt +0 -0
  16. {tencentcloud-sdk-python-ocr-3.0.1416 → tencentcloud-sdk-python-ocr-3.0.1419}/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.1416
3
+ Version: 3.0.1419
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.1416"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.0.1419,<4.0.0"],
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.1416'
17
+ __version__ = '3.0.1419'
@@ -1974,11 +1974,14 @@ class BizLicenseOCRRequest(AbstractModel):
1974
1974
  :type EnableCopyWarn: bool
1975
1975
  :param _EnablePeriodComplete: 是否返回自动拼接的有效期,默认为true
1976
1976
  :type EnablePeriodComplete: bool
1977
+ :param _EnableBusinessCertificate: 是否支持营业类证件识别(包括营业执照和非营业执照的其他证件),默认为false
1978
+ :type EnableBusinessCertificate: bool
1977
1979
  """
1978
1980
  self._ImageBase64 = None
1979
1981
  self._ImageUrl = None
1980
1982
  self._EnableCopyWarn = None
1981
1983
  self._EnablePeriodComplete = None
1984
+ self._EnableBusinessCertificate = None
1982
1985
 
1983
1986
  @property
1984
1987
  def ImageBase64(self):
@@ -2031,12 +2034,24 @@ class BizLicenseOCRRequest(AbstractModel):
2031
2034
  def EnablePeriodComplete(self, EnablePeriodComplete):
2032
2035
  self._EnablePeriodComplete = EnablePeriodComplete
2033
2036
 
2037
+ @property
2038
+ def EnableBusinessCertificate(self):
2039
+ """是否支持营业类证件识别(包括营业执照和非营业执照的其他证件),默认为false
2040
+ :rtype: bool
2041
+ """
2042
+ return self._EnableBusinessCertificate
2043
+
2044
+ @EnableBusinessCertificate.setter
2045
+ def EnableBusinessCertificate(self, EnableBusinessCertificate):
2046
+ self._EnableBusinessCertificate = EnableBusinessCertificate
2047
+
2034
2048
 
2035
2049
  def _deserialize(self, params):
2036
2050
  self._ImageBase64 = params.get("ImageBase64")
2037
2051
  self._ImageUrl = params.get("ImageUrl")
2038
2052
  self._EnableCopyWarn = params.get("EnableCopyWarn")
2039
2053
  self._EnablePeriodComplete = params.get("EnablePeriodComplete")
2054
+ self._EnableBusinessCertificate = params.get("EnableBusinessCertificate")
2040
2055
  memeber_set = set(params.keys())
2041
2056
  for name, value in vars(self).items():
2042
2057
  property_name = name[1:]
@@ -2104,6 +2119,8 @@ WARN_RESHOOT_CARD翻拍件告警
2104
2119
  :type RegistrationAuthority: str
2105
2120
  :param _Electronic: 是否是电子营业执照。false为没有,true为有。
2106
2121
  :type Electronic: bool
2122
+ :param _BusinessCertificate: 非营业执照的营业类证件识别结果,将以结构化形式呈现。
2123
+ :type BusinessCertificate: list of BusinessCertificateInfo
2107
2124
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2108
2125
  :type RequestId: str
2109
2126
  """
@@ -2129,6 +2146,7 @@ WARN_RESHOOT_CARD翻拍件告警
2129
2146
  self._SerialNumber = None
2130
2147
  self._RegistrationAuthority = None
2131
2148
  self._Electronic = None
2149
+ self._BusinessCertificate = None
2132
2150
  self._RequestId = None
2133
2151
 
2134
2152
  @property
@@ -2379,6 +2397,17 @@ WARN_RESHOOT_CARD翻拍件告警
2379
2397
  def Electronic(self, Electronic):
2380
2398
  self._Electronic = Electronic
2381
2399
 
2400
+ @property
2401
+ def BusinessCertificate(self):
2402
+ """非营业执照的营业类证件识别结果,将以结构化形式呈现。
2403
+ :rtype: list of BusinessCertificateInfo
2404
+ """
2405
+ return self._BusinessCertificate
2406
+
2407
+ @BusinessCertificate.setter
2408
+ def BusinessCertificate(self, BusinessCertificate):
2409
+ self._BusinessCertificate = BusinessCertificate
2410
+
2382
2411
  @property
2383
2412
  def RequestId(self):
2384
2413
  """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
@@ -2414,6 +2443,12 @@ WARN_RESHOOT_CARD翻拍件告警
2414
2443
  self._SerialNumber = params.get("SerialNumber")
2415
2444
  self._RegistrationAuthority = params.get("RegistrationAuthority")
2416
2445
  self._Electronic = params.get("Electronic")
2446
+ if params.get("BusinessCertificate") is not None:
2447
+ self._BusinessCertificate = []
2448
+ for item in params.get("BusinessCertificate"):
2449
+ obj = BusinessCertificateInfo()
2450
+ obj._deserialize(item)
2451
+ self._BusinessCertificate.append(obj)
2417
2452
  self._RequestId = params.get("RequestId")
2418
2453
 
2419
2454
 
@@ -3211,6 +3246,74 @@ class BusinessCardOCRResponse(AbstractModel):
3211
3246
  self._RequestId = params.get("RequestId")
3212
3247
 
3213
3248
 
3249
+ class BusinessCertificateInfo(AbstractModel):
3250
+ """非营业执照的营业类证件识别结果,将以结构化形式呈现。
3251
+
3252
+ """
3253
+
3254
+ def __init__(self):
3255
+ r"""
3256
+ :param _Name: 识别出的名称
3257
+ :type Name: str
3258
+ :param _Value: 识别出的字段名称对应的值
3259
+ :type Value: str
3260
+ :param _Rect: 坐标
3261
+ :type Rect: :class:`tencentcloud.ocr.v20181119.models.Rect`
3262
+ """
3263
+ self._Name = None
3264
+ self._Value = None
3265
+ self._Rect = None
3266
+
3267
+ @property
3268
+ def Name(self):
3269
+ """识别出的名称
3270
+ :rtype: str
3271
+ """
3272
+ return self._Name
3273
+
3274
+ @Name.setter
3275
+ def Name(self, Name):
3276
+ self._Name = Name
3277
+
3278
+ @property
3279
+ def Value(self):
3280
+ """识别出的字段名称对应的值
3281
+ :rtype: str
3282
+ """
3283
+ return self._Value
3284
+
3285
+ @Value.setter
3286
+ def Value(self, Value):
3287
+ self._Value = Value
3288
+
3289
+ @property
3290
+ def Rect(self):
3291
+ """坐标
3292
+ :rtype: :class:`tencentcloud.ocr.v20181119.models.Rect`
3293
+ """
3294
+ return self._Rect
3295
+
3296
+ @Rect.setter
3297
+ def Rect(self, Rect):
3298
+ self._Rect = Rect
3299
+
3300
+
3301
+ def _deserialize(self, params):
3302
+ self._Name = params.get("Name")
3303
+ self._Value = params.get("Value")
3304
+ if params.get("Rect") is not None:
3305
+ self._Rect = Rect()
3306
+ self._Rect._deserialize(params.get("Rect"))
3307
+ memeber_set = set(params.keys())
3308
+ for name, value in vars(self).items():
3309
+ property_name = name[1:]
3310
+ if property_name in memeber_set:
3311
+ memeber_set.remove(property_name)
3312
+ if len(memeber_set) > 0:
3313
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
3314
+
3315
+
3316
+
3214
3317
  class CandWord(AbstractModel):
3215
3318
  """候选字符集(包含候选字Character以及置信度Confidence)
3216
3319
 
@@ -3499,12 +3602,20 @@ class CardWarnInfo(AbstractModel):
3499
3602
  0:正常
3500
3603
  1:有PS
3501
3604
  :type PSCheck: int
3605
+ :param _BlurCheck: 是否模糊:
3606
+ 0:正常
3607
+ 1:模糊
3608
+ :type BlurCheck: int
3609
+ :param _BlurScore: 模糊分数, 范围:0.0-1.0,分数越高越模糊,建议阈值为0.5
3610
+ :type BlurScore: float
3502
3611
  """
3503
3612
  self._BorderCheck = None
3504
3613
  self._OcclusionCheck = None
3505
3614
  self._CopyCheck = None
3506
3615
  self._ReshootCheck = None
3507
3616
  self._PSCheck = None
3617
+ self._BlurCheck = None
3618
+ self._BlurScore = None
3508
3619
 
3509
3620
  @property
3510
3621
  def BorderCheck(self):
@@ -3571,6 +3682,30 @@ class CardWarnInfo(AbstractModel):
3571
3682
  def PSCheck(self, PSCheck):
3572
3683
  self._PSCheck = PSCheck
3573
3684
 
3685
+ @property
3686
+ def BlurCheck(self):
3687
+ """是否模糊:
3688
+ 0:正常
3689
+ 1:模糊
3690
+ :rtype: int
3691
+ """
3692
+ return self._BlurCheck
3693
+
3694
+ @BlurCheck.setter
3695
+ def BlurCheck(self, BlurCheck):
3696
+ self._BlurCheck = BlurCheck
3697
+
3698
+ @property
3699
+ def BlurScore(self):
3700
+ """模糊分数, 范围:0.0-1.0,分数越高越模糊,建议阈值为0.5
3701
+ :rtype: float
3702
+ """
3703
+ return self._BlurScore
3704
+
3705
+ @BlurScore.setter
3706
+ def BlurScore(self, BlurScore):
3707
+ self._BlurScore = BlurScore
3708
+
3574
3709
 
3575
3710
  def _deserialize(self, params):
3576
3711
  self._BorderCheck = params.get("BorderCheck")
@@ -3578,6 +3713,8 @@ class CardWarnInfo(AbstractModel):
3578
3713
  self._CopyCheck = params.get("CopyCheck")
3579
3714
  self._ReshootCheck = params.get("ReshootCheck")
3580
3715
  self._PSCheck = params.get("PSCheck")
3716
+ self._BlurCheck = params.get("BlurCheck")
3717
+ self._BlurScore = params.get("BlurScore")
3581
3718
  memeber_set = set(params.keys())
3582
3719
  for name, value in vars(self).items():
3583
3720
  property_name = name[1:]
@@ -8481,6 +8618,9 @@ AirWayBill -- 航空运单识别模板
8481
8618
  Table -- 表格模版
8482
8619
  SteelLabel -- 实物标签识别模板
8483
8620
  CarInsurance -- 车辆保险单识别模板
8621
+ MultiRealEstateCertificate -- 房产材料识别模板
8622
+ MultiRealEstateMaterial -- 房产证明识别模板
8623
+ HongKongUtilityBill -- 香港水电煤单识别模板
8484
8624
  :type ConfigId: str
8485
8625
  :param _EnableCoord: 是否开启全文字段坐标值的识别
8486
8626
  :type EnableCoord: bool
@@ -8585,6 +8725,9 @@ AirWayBill -- 航空运单识别模板
8585
8725
  Table -- 表格模版
8586
8726
  SteelLabel -- 实物标签识别模板
8587
8727
  CarInsurance -- 车辆保险单识别模板
8728
+ MultiRealEstateCertificate -- 房产材料识别模板
8729
+ MultiRealEstateMaterial -- 房产证明识别模板
8730
+ HongKongUtilityBill -- 香港水电煤单识别模板
8588
8731
  :rtype: str
8589
8732
  """
8590
8733
  return self._ConfigId
@@ -26844,6 +26987,8 @@ class RecognizeValidIDCardOCRRequest(AbstractModel):
26844
26987
  :type EnablePSCheck: bool
26845
26988
  :param _EnableWordCheck: 默认值为false,打开返回字段级反光和字段级完整性告警。类型为:临时、港澳台居住证、外国人居住证失效
26846
26989
  :type EnableWordCheck: bool
26990
+ :param _EnableQualityCheck: 默认值为false,打开返回证件是否模糊。
26991
+ :type EnableQualityCheck: bool
26847
26992
  """
26848
26993
  self._ImageBase64 = None
26849
26994
  self._ImageUrl = None
@@ -26856,6 +27001,7 @@ class RecognizeValidIDCardOCRRequest(AbstractModel):
26856
27001
  self._EnableReshootCheck = None
26857
27002
  self._EnablePSCheck = None
26858
27003
  self._EnableWordCheck = None
27004
+ self._EnableQualityCheck = None
26859
27005
 
26860
27006
  @property
26861
27007
  def ImageBase64(self):
@@ -26991,6 +27137,17 @@ class RecognizeValidIDCardOCRRequest(AbstractModel):
26991
27137
  def EnableWordCheck(self, EnableWordCheck):
26992
27138
  self._EnableWordCheck = EnableWordCheck
26993
27139
 
27140
+ @property
27141
+ def EnableQualityCheck(self):
27142
+ """默认值为false,打开返回证件是否模糊。
27143
+ :rtype: bool
27144
+ """
27145
+ return self._EnableQualityCheck
27146
+
27147
+ @EnableQualityCheck.setter
27148
+ def EnableQualityCheck(self, EnableQualityCheck):
27149
+ self._EnableQualityCheck = EnableQualityCheck
27150
+
26994
27151
 
26995
27152
  def _deserialize(self, params):
26996
27153
  self._ImageBase64 = params.get("ImageBase64")
@@ -27004,6 +27161,7 @@ class RecognizeValidIDCardOCRRequest(AbstractModel):
27004
27161
  self._EnableReshootCheck = params.get("EnableReshootCheck")
27005
27162
  self._EnablePSCheck = params.get("EnablePSCheck")
27006
27163
  self._EnableWordCheck = params.get("EnableWordCheck")
27164
+ self._EnableQualityCheck = params.get("EnableQualityCheck")
27007
27165
  memeber_set = set(params.keys())
27008
27166
  for name, value in vars(self).items():
27009
27167
  property_name = name[1:]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: tencentcloud-sdk-python-ocr
3
- Version: 3.0.1416
3
+ Version: 3.0.1419
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<4.0.0,>=3.0.1419
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common==3.0.1416