tencentcloud-sdk-python-ocr 3.0.1418__tar.gz → 3.0.1421__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.1418 → tencentcloud-sdk-python-ocr-3.0.1421}/PKG-INFO +1 -1
  2. {tencentcloud-sdk-python-ocr-3.0.1418 → tencentcloud-sdk-python-ocr-3.0.1421}/setup.py +1 -1
  3. {tencentcloud-sdk-python-ocr-3.0.1418 → tencentcloud-sdk-python-ocr-3.0.1421}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud-sdk-python-ocr-3.0.1418 → tencentcloud-sdk-python-ocr-3.0.1421}/tencentcloud/ocr/v20181119/models.py +107 -18
  5. {tencentcloud-sdk-python-ocr-3.0.1418 → tencentcloud-sdk-python-ocr-3.0.1421}/tencentcloud/ocr/v20181119/ocr_client.py +3 -1
  6. {tencentcloud-sdk-python-ocr-3.0.1418 → tencentcloud-sdk-python-ocr-3.0.1421}/tencentcloud_sdk_python_ocr.egg-info/PKG-INFO +1 -1
  7. tencentcloud-sdk-python-ocr-3.0.1421/tencentcloud_sdk_python_ocr.egg-info/requires.txt +1 -0
  8. tencentcloud-sdk-python-ocr-3.0.1418/tencentcloud_sdk_python_ocr.egg-info/requires.txt +0 -1
  9. {tencentcloud-sdk-python-ocr-3.0.1418 → tencentcloud-sdk-python-ocr-3.0.1421}/README.rst +0 -0
  10. {tencentcloud-sdk-python-ocr-3.0.1418 → tencentcloud-sdk-python-ocr-3.0.1421}/setup.cfg +0 -0
  11. {tencentcloud-sdk-python-ocr-3.0.1418 → tencentcloud-sdk-python-ocr-3.0.1421}/tencentcloud/ocr/__init__.py +0 -0
  12. {tencentcloud-sdk-python-ocr-3.0.1418 → tencentcloud-sdk-python-ocr-3.0.1421}/tencentcloud/ocr/v20181119/__init__.py +0 -0
  13. {tencentcloud-sdk-python-ocr-3.0.1418 → tencentcloud-sdk-python-ocr-3.0.1421}/tencentcloud/ocr/v20181119/errorcodes.py +0 -0
  14. {tencentcloud-sdk-python-ocr-3.0.1418 → tencentcloud-sdk-python-ocr-3.0.1421}/tencentcloud_sdk_python_ocr.egg-info/SOURCES.txt +0 -0
  15. {tencentcloud-sdk-python-ocr-3.0.1418 → tencentcloud-sdk-python-ocr-3.0.1421}/tencentcloud_sdk_python_ocr.egg-info/dependency_links.txt +0 -0
  16. {tencentcloud-sdk-python-ocr-3.0.1418 → tencentcloud-sdk-python-ocr-3.0.1421}/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.1418
3
+ Version: 3.0.1421
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.1418"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.0.1421,<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.1418'
17
+ __version__ = '3.0.1421'
@@ -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
 
@@ -11341,16 +11444,9 @@ class GeneralHandwritingOCRRequest(AbstractModel):
11341
11444
 
11342
11445
  def __init__(self):
11343
11446
  r"""
11344
- :param _ImageBase64: 图片的 Base64 值。
11345
- 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
11346
- 支持的图片大小:所下载图片经Base64编码后不超过 7M。
11347
- 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
11447
+ :param _ImageBase64: 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
11348
11448
  :type ImageBase64: str
11349
- :param _ImageUrl: 图片的 Url 地址。
11350
- 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
11351
- 支持的图片大小:所下载图片经 Base64 编码后不超过7M。图片下载时间不超过 3 秒。
11352
- 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
11353
- 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
11449
+ :param _ImageUrl: 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
11354
11450
  :type ImageUrl: str
11355
11451
  :param _Scene: 场景字段,默认不用填写。
11356
11452
  可选值:only_hw 表示只输出手写体识别结果,过滤印刷体。
@@ -11369,10 +11465,7 @@ class GeneralHandwritingOCRRequest(AbstractModel):
11369
11465
 
11370
11466
  @property
11371
11467
  def ImageBase64(self):
11372
- """图片的 Base64 值。
11373
- 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
11374
- 支持的图片大小:所下载图片经Base64编码后不超过 7M。
11375
- 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
11468
+ """图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
11376
11469
  :rtype: str
11377
11470
  """
11378
11471
  return self._ImageBase64
@@ -11383,11 +11476,7 @@ class GeneralHandwritingOCRRequest(AbstractModel):
11383
11476
 
11384
11477
  @property
11385
11478
  def ImageUrl(self):
11386
- """图片的 Url 地址。
11387
- 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
11388
- 支持的图片大小:所下载图片经 Base64 编码后不超过7M。图片下载时间不超过 3 秒。
11389
- 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
11390
- 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
11479
+ """图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
11391
11480
  :rtype: str
11392
11481
  """
11393
11482
  return self._ImageUrl
@@ -895,7 +895,9 @@ class OcrClient(AbstractClient):
895
895
 
896
896
 
897
897
  def GeneralHandwritingOCR(self, request):
898
- """本接口支持图片内手写体文字的检测和识别,针对手写字体无规则、字迹潦草、模糊等特点进行了识别能力的增强。
898
+ """<b>此接口为通用手写体识别的旧版本服务,不再进行服务升级,建议您使用识别能力更强、服务性能更优的<a href="https://cloud.tencent.com/document/product/866/34937">通用印刷体识别(高精度)识别服务</a>。</b>
899
+
900
+ 本接口支持图片内手写体文字的检测和识别,针对手写字体无规则、字迹潦草、模糊等特点进行了识别能力的增强。
899
901
 
900
902
  默认接口请求频率限制:10次/秒。
901
903
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: tencentcloud-sdk-python-ocr
3
- Version: 3.0.1418
3
+ Version: 3.0.1421
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.1421
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common==3.0.1418