tencentcloud-sdk-python-ocr 3.1.128__tar.gz → 3.1.132__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 (17) hide show
  1. {tencentcloud_sdk_python_ocr-3.1.128 → tencentcloud_sdk_python_ocr-3.1.132}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_ocr-3.1.128 → tencentcloud_sdk_python_ocr-3.1.132}/setup.py +1 -1
  3. {tencentcloud_sdk_python_ocr-3.1.128 → tencentcloud_sdk_python_ocr-3.1.132}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_ocr-3.1.128 → tencentcloud_sdk_python_ocr-3.1.132}/tencentcloud/ocr/v20181119/models.py +489 -102
  5. {tencentcloud_sdk_python_ocr-3.1.128 → tencentcloud_sdk_python_ocr-3.1.132}/tencentcloud/ocr/v20181119/ocr_client.py +50 -0
  6. {tencentcloud_sdk_python_ocr-3.1.128 → tencentcloud_sdk_python_ocr-3.1.132}/tencentcloud/ocr/v20181119/ocr_client_async.py +40 -0
  7. {tencentcloud_sdk_python_ocr-3.1.128 → tencentcloud_sdk_python_ocr-3.1.132}/tencentcloud_sdk_python_ocr.egg-info/PKG-INFO +2 -2
  8. tencentcloud_sdk_python_ocr-3.1.132/tencentcloud_sdk_python_ocr.egg-info/requires.txt +1 -0
  9. tencentcloud_sdk_python_ocr-3.1.128/tencentcloud_sdk_python_ocr.egg-info/requires.txt +0 -1
  10. {tencentcloud_sdk_python_ocr-3.1.128 → tencentcloud_sdk_python_ocr-3.1.132}/README.rst +0 -0
  11. {tencentcloud_sdk_python_ocr-3.1.128 → tencentcloud_sdk_python_ocr-3.1.132}/setup.cfg +0 -0
  12. {tencentcloud_sdk_python_ocr-3.1.128 → tencentcloud_sdk_python_ocr-3.1.132}/tencentcloud/ocr/__init__.py +0 -0
  13. {tencentcloud_sdk_python_ocr-3.1.128 → tencentcloud_sdk_python_ocr-3.1.132}/tencentcloud/ocr/v20181119/__init__.py +0 -0
  14. {tencentcloud_sdk_python_ocr-3.1.128 → tencentcloud_sdk_python_ocr-3.1.132}/tencentcloud/ocr/v20181119/errorcodes.py +0 -0
  15. {tencentcloud_sdk_python_ocr-3.1.128 → tencentcloud_sdk_python_ocr-3.1.132}/tencentcloud_sdk_python_ocr.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_ocr-3.1.128 → tencentcloud_sdk_python_ocr-3.1.132}/tencentcloud_sdk_python_ocr.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_ocr-3.1.128 → tencentcloud_sdk_python_ocr-3.1.132}/tencentcloud_sdk_python_ocr.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-ocr
3
- Version: 3.1.128
3
+ Version: 3.1.132
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.1.128
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.132
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -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.1.128,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.132,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Ocr SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.128'
17
+ __version__ = '3.1.132'
@@ -4405,6 +4405,252 @@ class CoordList(AbstractModel):
4405
4405
 
4406
4406
 
4407
4407
 
4408
+ class CropEnhanceImageOCRRequest(AbstractModel):
4409
+ r"""CropEnhanceImageOCR请求参数结构体
4410
+
4411
+ """
4412
+
4413
+ def __init__(self):
4414
+ r"""
4415
+ :param _ImageBase64: <p>图片/PDF的 Base64 值。要求Base64不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。</p>
4416
+ :type ImageBase64: str
4417
+ :param _ImageUrl: <p>图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。</p>
4418
+ :type ImageUrl: str
4419
+ :param _PdfPageNumber: <p>需要识别的PDF页面的对应页码,仅支持PDF单页识别,默认值为1。</p>
4420
+ :type PdfPageNumber: int
4421
+ :param _Crop: <p>0表示关闭切边<br>1表示开启切边,默认为1</p>
4422
+ :type Crop: int
4423
+ :param _Deskew: <p>0表示关闭弯曲矫正<br>1表示开启弯曲矫正,默认为1</p>
4424
+ :type Deskew: int
4425
+ :param _OnlyPosition: <p>0表示返回处理后的图和坐标,默认为0<br>1表示只返回坐标,不返回图片</p>
4426
+ :type OnlyPosition: int
4427
+ :param _EnhanceType: <p>默认-1</p><ul><li>-1 不处理增强</li><li>1 增亮</li><li>2 增强并锐化</li><li>3 黑白</li><li>4 灰度</li><li>5 去阴影增强</li><li>6 点阵图</li></ul>
4428
+ :type EnhanceType: int
4429
+ :param _AdjustOrientation: <p>0表示不矫正图像方向,默认为0 1表示矫正图像方向</p>
4430
+ :type AdjustOrientation: int
4431
+ """
4432
+ self._ImageBase64 = None
4433
+ self._ImageUrl = None
4434
+ self._PdfPageNumber = None
4435
+ self._Crop = None
4436
+ self._Deskew = None
4437
+ self._OnlyPosition = None
4438
+ self._EnhanceType = None
4439
+ self._AdjustOrientation = None
4440
+
4441
+ @property
4442
+ def ImageBase64(self):
4443
+ r"""<p>图片/PDF的 Base64 值。要求Base64不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。</p>
4444
+ :rtype: str
4445
+ """
4446
+ return self._ImageBase64
4447
+
4448
+ @ImageBase64.setter
4449
+ def ImageBase64(self, ImageBase64):
4450
+ self._ImageBase64 = ImageBase64
4451
+
4452
+ @property
4453
+ def ImageUrl(self):
4454
+ r"""<p>图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。</p>
4455
+ :rtype: str
4456
+ """
4457
+ return self._ImageUrl
4458
+
4459
+ @ImageUrl.setter
4460
+ def ImageUrl(self, ImageUrl):
4461
+ self._ImageUrl = ImageUrl
4462
+
4463
+ @property
4464
+ def PdfPageNumber(self):
4465
+ r"""<p>需要识别的PDF页面的对应页码,仅支持PDF单页识别,默认值为1。</p>
4466
+ :rtype: int
4467
+ """
4468
+ return self._PdfPageNumber
4469
+
4470
+ @PdfPageNumber.setter
4471
+ def PdfPageNumber(self, PdfPageNumber):
4472
+ self._PdfPageNumber = PdfPageNumber
4473
+
4474
+ @property
4475
+ def Crop(self):
4476
+ r"""<p>0表示关闭切边<br>1表示开启切边,默认为1</p>
4477
+ :rtype: int
4478
+ """
4479
+ return self._Crop
4480
+
4481
+ @Crop.setter
4482
+ def Crop(self, Crop):
4483
+ self._Crop = Crop
4484
+
4485
+ @property
4486
+ def Deskew(self):
4487
+ r"""<p>0表示关闭弯曲矫正<br>1表示开启弯曲矫正,默认为1</p>
4488
+ :rtype: int
4489
+ """
4490
+ return self._Deskew
4491
+
4492
+ @Deskew.setter
4493
+ def Deskew(self, Deskew):
4494
+ self._Deskew = Deskew
4495
+
4496
+ @property
4497
+ def OnlyPosition(self):
4498
+ r"""<p>0表示返回处理后的图和坐标,默认为0<br>1表示只返回坐标,不返回图片</p>
4499
+ :rtype: int
4500
+ """
4501
+ return self._OnlyPosition
4502
+
4503
+ @OnlyPosition.setter
4504
+ def OnlyPosition(self, OnlyPosition):
4505
+ self._OnlyPosition = OnlyPosition
4506
+
4507
+ @property
4508
+ def EnhanceType(self):
4509
+ r"""<p>默认-1</p><ul><li>-1 不处理增强</li><li>1 增亮</li><li>2 增强并锐化</li><li>3 黑白</li><li>4 灰度</li><li>5 去阴影增强</li><li>6 点阵图</li></ul>
4510
+ :rtype: int
4511
+ """
4512
+ return self._EnhanceType
4513
+
4514
+ @EnhanceType.setter
4515
+ def EnhanceType(self, EnhanceType):
4516
+ self._EnhanceType = EnhanceType
4517
+
4518
+ @property
4519
+ def AdjustOrientation(self):
4520
+ r"""<p>0表示不矫正图像方向,默认为0 1表示矫正图像方向</p>
4521
+ :rtype: int
4522
+ """
4523
+ return self._AdjustOrientation
4524
+
4525
+ @AdjustOrientation.setter
4526
+ def AdjustOrientation(self, AdjustOrientation):
4527
+ self._AdjustOrientation = AdjustOrientation
4528
+
4529
+
4530
+ def _deserialize(self, params):
4531
+ self._ImageBase64 = params.get("ImageBase64")
4532
+ self._ImageUrl = params.get("ImageUrl")
4533
+ self._PdfPageNumber = params.get("PdfPageNumber")
4534
+ self._Crop = params.get("Crop")
4535
+ self._Deskew = params.get("Deskew")
4536
+ self._OnlyPosition = params.get("OnlyPosition")
4537
+ self._EnhanceType = params.get("EnhanceType")
4538
+ self._AdjustOrientation = params.get("AdjustOrientation")
4539
+ memeber_set = set(params.keys())
4540
+ for name, value in vars(self).items():
4541
+ property_name = name[1:]
4542
+ if property_name in memeber_set:
4543
+ memeber_set.remove(property_name)
4544
+ if len(memeber_set) > 0:
4545
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
4546
+
4547
+
4548
+
4549
+ class CropEnhanceImageOCRResponse(AbstractModel):
4550
+ r"""CropEnhanceImageOCR返回参数结构体
4551
+
4552
+ """
4553
+
4554
+ def __init__(self):
4555
+ r"""
4556
+ :param _CroppedWidth: <p>处理后图的宽</p>
4557
+ :type CroppedWidth: int
4558
+ :param _CroppedHeight: <p>处理后图的高</p>
4559
+ :type CroppedHeight: int
4560
+ :param _CroppedImage: <p>图像处理后的jpg图片,base64格式</p>
4561
+ :type CroppedImage: str
4562
+ :param _Position: <p>切图区域的4个角点坐标, 是个长度为8的数组<br>[0,1,2,3,4,5,6,7]</p><p>(0,1) 左上角坐标<br>(2,3) 右上角坐标<br>(4,5) 右下角坐标<br>(6,7) 左下角坐标</p>
4563
+ :type Position: list of int
4564
+ :param _Angle: <p>图像角度,AdjustOrientation =1时生效, 返回值如下 -1: 失败 0、90、180、270</p>
4565
+ 注意:此字段可能返回 null,表示取不到有效值。
4566
+ :type Angle: int
4567
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4568
+ :type RequestId: str
4569
+ """
4570
+ self._CroppedWidth = None
4571
+ self._CroppedHeight = None
4572
+ self._CroppedImage = None
4573
+ self._Position = None
4574
+ self._Angle = None
4575
+ self._RequestId = None
4576
+
4577
+ @property
4578
+ def CroppedWidth(self):
4579
+ r"""<p>处理后图的宽</p>
4580
+ :rtype: int
4581
+ """
4582
+ return self._CroppedWidth
4583
+
4584
+ @CroppedWidth.setter
4585
+ def CroppedWidth(self, CroppedWidth):
4586
+ self._CroppedWidth = CroppedWidth
4587
+
4588
+ @property
4589
+ def CroppedHeight(self):
4590
+ r"""<p>处理后图的高</p>
4591
+ :rtype: int
4592
+ """
4593
+ return self._CroppedHeight
4594
+
4595
+ @CroppedHeight.setter
4596
+ def CroppedHeight(self, CroppedHeight):
4597
+ self._CroppedHeight = CroppedHeight
4598
+
4599
+ @property
4600
+ def CroppedImage(self):
4601
+ r"""<p>图像处理后的jpg图片,base64格式</p>
4602
+ :rtype: str
4603
+ """
4604
+ return self._CroppedImage
4605
+
4606
+ @CroppedImage.setter
4607
+ def CroppedImage(self, CroppedImage):
4608
+ self._CroppedImage = CroppedImage
4609
+
4610
+ @property
4611
+ def Position(self):
4612
+ r"""<p>切图区域的4个角点坐标, 是个长度为8的数组<br>[0,1,2,3,4,5,6,7]</p><p>(0,1) 左上角坐标<br>(2,3) 右上角坐标<br>(4,5) 右下角坐标<br>(6,7) 左下角坐标</p>
4613
+ :rtype: list of int
4614
+ """
4615
+ return self._Position
4616
+
4617
+ @Position.setter
4618
+ def Position(self, Position):
4619
+ self._Position = Position
4620
+
4621
+ @property
4622
+ def Angle(self):
4623
+ r"""<p>图像角度,AdjustOrientation =1时生效, 返回值如下 -1: 失败 0、90、180、270</p>
4624
+ 注意:此字段可能返回 null,表示取不到有效值。
4625
+ :rtype: int
4626
+ """
4627
+ return self._Angle
4628
+
4629
+ @Angle.setter
4630
+ def Angle(self, Angle):
4631
+ self._Angle = Angle
4632
+
4633
+ @property
4634
+ def RequestId(self):
4635
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4636
+ :rtype: str
4637
+ """
4638
+ return self._RequestId
4639
+
4640
+ @RequestId.setter
4641
+ def RequestId(self, RequestId):
4642
+ self._RequestId = RequestId
4643
+
4644
+
4645
+ def _deserialize(self, params):
4646
+ self._CroppedWidth = params.get("CroppedWidth")
4647
+ self._CroppedHeight = params.get("CroppedHeight")
4648
+ self._CroppedImage = params.get("CroppedImage")
4649
+ self._Position = params.get("Position")
4650
+ self._Angle = params.get("Angle")
4651
+ self._RequestId = params.get("RequestId")
4652
+
4653
+
4408
4654
  class CustomsDeclaration(AbstractModel):
4409
4655
  r"""海关进/出口货物报关单
4410
4656
 
@@ -5284,14 +5530,11 @@ class DriverLicenseOCRRequest(AbstractModel):
5284
5530
 
5285
5531
  def __init__(self):
5286
5532
  r"""
5287
- :param _ImageBase64: 图片的 Base64 值。要求图片经Base64编码后不超过 10M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
5533
+ :param _ImageBase64: <p>图片的 Base64 值。要求图片经Base64编码后不超过 10M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。</p>
5288
5534
  :type ImageBase64: str
5289
- :param _ImageUrl: 图片的 Url 地址。要求图片经Base64编码后不超过 10M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。图片下载时间不超过 3 秒。建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
5535
+ :param _ImageUrl: <p>图片的 Url 地址。要求图片经Base64编码后不超过 10M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。图片下载时间不超过 3 秒。建议图片存储于腾讯云,可保障更高的下载速度和稳定性。</p>
5290
5536
  :type ImageUrl: str
5291
- :param _CardSide: FRONT 为驾驶证主页正面(有红色印章的一面),
5292
- BACK 为驾驶证副页正面(有档案编号的一面)。
5293
- DOUBLE 支持自动识别驾驶证正副页单面,和正副双面同框识别
5294
- 默认值为:FRONT。
5537
+ :param _CardSide: <p>FRONT 为驾驶证主页正面(有红色印章的一面),<br>BACK 为驾驶证副页正面(有档案编号的一面)。<br>DOUBLE 支持自动识别驾驶证正副页单面,和正副双面同框识别<br>默认值为:FRONT。</p>
5295
5538
  :type CardSide: str
5296
5539
  """
5297
5540
  self._ImageBase64 = None
@@ -5300,7 +5543,7 @@ DOUBLE 支持自动识别驾驶证正副页单面,和正副双面同框识别
5300
5543
 
5301
5544
  @property
5302
5545
  def ImageBase64(self):
5303
- r"""图片的 Base64 值。要求图片经Base64编码后不超过 10M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
5546
+ r"""<p>图片的 Base64 值。要求图片经Base64编码后不超过 10M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。</p>
5304
5547
  :rtype: str
5305
5548
  """
5306
5549
  return self._ImageBase64
@@ -5311,7 +5554,7 @@ DOUBLE 支持自动识别驾驶证正副页单面,和正副双面同框识别
5311
5554
 
5312
5555
  @property
5313
5556
  def ImageUrl(self):
5314
- r"""图片的 Url 地址。要求图片经Base64编码后不超过 10M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。图片下载时间不超过 3 秒。建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
5557
+ r"""<p>图片的 Url 地址。要求图片经Base64编码后不超过 10M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。图片下载时间不超过 3 秒。建议图片存储于腾讯云,可保障更高的下载速度和稳定性。</p>
5315
5558
  :rtype: str
5316
5559
  """
5317
5560
  return self._ImageUrl
@@ -5322,10 +5565,7 @@ DOUBLE 支持自动识别驾驶证正副页单面,和正副双面同框识别
5322
5565
 
5323
5566
  @property
5324
5567
  def CardSide(self):
5325
- r"""FRONT 为驾驶证主页正面(有红色印章的一面),
5326
- BACK 为驾驶证副页正面(有档案编号的一面)。
5327
- DOUBLE 支持自动识别驾驶证正副页单面,和正副双面同框识别
5328
- 默认值为:FRONT。
5568
+ r"""<p>FRONT 为驾驶证主页正面(有红色印章的一面),<br>BACK 为驾驶证副页正面(有档案编号的一面)。<br>DOUBLE 支持自动识别驾驶证正副页单面,和正副双面同框识别<br>默认值为:FRONT。</p>
5329
5569
  :rtype: str
5330
5570
  """
5331
5571
  return self._CardSide
@@ -5356,64 +5596,49 @@ class DriverLicenseOCRResponse(AbstractModel):
5356
5596
 
5357
5597
  def __init__(self):
5358
5598
  r"""
5359
- :param _Name: 驾驶证正页姓名
5599
+ :param _Name: <p>驾驶证正页姓名</p>
5360
5600
  :type Name: str
5361
- :param _Sex: 性别
5601
+ :param _Sex: <p>性别</p>
5362
5602
  :type Sex: str
5363
- :param _Nationality: 国籍
5603
+ :param _Nationality: <p>国籍</p>
5364
5604
  :type Nationality: str
5365
- :param _Address: 住址
5605
+ :param _Address: <p>住址</p>
5366
5606
  :type Address: str
5367
- :param _DateOfBirth: 出生日期(YYYY-MM-DD)
5607
+ :param _DateOfBirth: <p>出生日期(YYYY-MM-DD)</p>
5368
5608
  :type DateOfBirth: str
5369
- :param _DateOfFirstIssue: 初次领证日期(YYYY-MM-DD)
5609
+ :param _DateOfFirstIssue: <p>初次领证日期(YYYY-MM-DD)</p>
5370
5610
  :type DateOfFirstIssue: str
5371
- :param _Class: 准驾车型
5611
+ :param _Class: <p>准驾车型</p>
5372
5612
  :type Class: str
5373
- :param _StartDate: 有效期开始时间(YYYY-MM-DD)
5613
+ :param _StartDate: <p>有效期开始时间(YYYY-MM-DD)</p>
5374
5614
  :type StartDate: str
5375
- :param _EndDate: 有效期截止时间(新版驾驶证返回 YYYY-MM-DD,
5376
- 老版驾驶证返回有效期限 X年)
5615
+ :param _EndDate: <p>有效期截止时间(新版驾驶证返回 YYYY-MM-DD,老版驾驶证返回有效期限 X年;若驾驶证有效期为长期,则返回&quot;长期&quot;)</p>
5377
5616
  :type EndDate: str
5378
- :param _CardCode: 驾驶证正页证号
5617
+ :param _CardCode: <p>驾驶证正页证号</p>
5379
5618
  :type CardCode: str
5380
- :param _ArchivesCode: 档案编号
5619
+ :param _ArchivesCode: <p>档案编号</p>
5381
5620
  :type ArchivesCode: str
5382
- :param _Record: 记录
5621
+ :param _Record: <p>记录</p>
5383
5622
  :type Record: str
5384
- :param _RecognizeWarnCode: Code 告警码列表和释义:
5385
- -9102 复印件告警
5386
- -9103 翻拍件告警
5387
- -9104 反光告警
5388
- -9105 模糊告警
5389
- -9106 边框不完整告警
5390
- 注:告警码可以同时存在多个
5623
+ :param _RecognizeWarnCode: <p>Code 告警码列表和释义:<br>-9102 复印件告警<br>-9103 翻拍件告警<br>-9104 反光告警<br>-9105 模糊告警<br>-9106 边框不完整告警<br>注:告警码可以同时存在多个</p>
5391
5624
  :type RecognizeWarnCode: list of int
5392
- :param _RecognizeWarnMsg: 告警码说明:
5393
- WARN_DRIVER_LICENSE_COPY_CARD 复印件告警
5394
- WARN_DRIVER_LICENSE_SCREENED_CARD 翻拍件告警
5395
- WARN_DRIVER_LICENSE_REFLECTION 反光告警
5396
- WARN_DRIVER_LICENSE_BLUR 模糊告警
5397
- WARN_DRIVER_LICENSE_BORDER_INCOMPLETE 边框不完整告警
5398
- 注:告警信息可以同时存在多个
5625
+ :param _RecognizeWarnMsg: <p>告警码说明:<br>WARN_DRIVER_LICENSE_COPY_CARD 复印件告警<br>WARN_DRIVER_LICENSE_SCREENED_CARD 翻拍件告警<br>WARN_DRIVER_LICENSE_REFLECTION 反光告警<br>WARN_DRIVER_LICENSE_BLUR 模糊告警<br>WARN_DRIVER_LICENSE_BORDER_INCOMPLETE 边框不完整告警<br>注:告警信息可以同时存在多个</p>
5399
5626
  :type RecognizeWarnMsg: list of str
5400
- :param _IssuingAuthority: 发证单位
5627
+ :param _IssuingAuthority: <p>发证单位</p>
5401
5628
  :type IssuingAuthority: str
5402
- :param _State: 状态(仅电子驾驶证支持返回该字段)
5629
+ :param _State: <p>状态(仅电子驾驶证支持返回该字段)</p>
5403
5630
  :type State: str
5404
- :param _CumulativeScore: 累积记分(仅电子驾驶证支持返回该字段)
5631
+ :param _CumulativeScore: <p>累积记分(仅电子驾驶证支持返回该字段)</p>
5405
5632
  :type CumulativeScore: str
5406
- :param _CurrentTime: 当前时间(仅电子驾驶证支持返回该字段)
5633
+ :param _CurrentTime: <p>当前时间(仅电子驾驶证支持返回该字段)</p>
5407
5634
  :type CurrentTime: str
5408
- :param _GenerateTime: 生成时间(仅电子驾驶证支持返回该字段)
5635
+ :param _GenerateTime: <p>生成时间(仅电子驾驶证支持返回该字段)</p>
5409
5636
  :type GenerateTime: str
5410
- :param _BackPageName: 驾驶证副页姓名
5637
+ :param _BackPageName: <p>驾驶证副页姓名</p>
5411
5638
  :type BackPageName: str
5412
- :param _BackPageCardCode: 驾驶证副页证号
5639
+ :param _BackPageCardCode: <p>驾驶证副页证号</p>
5413
5640
  :type BackPageCardCode: str
5414
- :param _DriverLicenseType: 驾驶证类型
5415
- 电子驾驶证:Electronic
5416
- 普通驾驶证:Normal
5641
+ :param _DriverLicenseType: <p>驾驶证类型<br>电子驾驶证:Electronic<br>普通驾驶证:Normal</p>
5417
5642
  :type DriverLicenseType: str
5418
5643
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5419
5644
  :type RequestId: str
@@ -5444,7 +5669,7 @@ WARN_DRIVER_LICENSE_BORDER_INCOMPLETE 边框不完整告警
5444
5669
 
5445
5670
  @property
5446
5671
  def Name(self):
5447
- r"""驾驶证正页姓名
5672
+ r"""<p>驾驶证正页姓名</p>
5448
5673
  :rtype: str
5449
5674
  """
5450
5675
  return self._Name
@@ -5455,7 +5680,7 @@ WARN_DRIVER_LICENSE_BORDER_INCOMPLETE 边框不完整告警
5455
5680
 
5456
5681
  @property
5457
5682
  def Sex(self):
5458
- r"""性别
5683
+ r"""<p>性别</p>
5459
5684
  :rtype: str
5460
5685
  """
5461
5686
  return self._Sex
@@ -5466,7 +5691,7 @@ WARN_DRIVER_LICENSE_BORDER_INCOMPLETE 边框不完整告警
5466
5691
 
5467
5692
  @property
5468
5693
  def Nationality(self):
5469
- r"""国籍
5694
+ r"""<p>国籍</p>
5470
5695
  :rtype: str
5471
5696
  """
5472
5697
  return self._Nationality
@@ -5477,7 +5702,7 @@ WARN_DRIVER_LICENSE_BORDER_INCOMPLETE 边框不完整告警
5477
5702
 
5478
5703
  @property
5479
5704
  def Address(self):
5480
- r"""住址
5705
+ r"""<p>住址</p>
5481
5706
  :rtype: str
5482
5707
  """
5483
5708
  return self._Address
@@ -5488,7 +5713,7 @@ WARN_DRIVER_LICENSE_BORDER_INCOMPLETE 边框不完整告警
5488
5713
 
5489
5714
  @property
5490
5715
  def DateOfBirth(self):
5491
- r"""出生日期(YYYY-MM-DD)
5716
+ r"""<p>出生日期(YYYY-MM-DD)</p>
5492
5717
  :rtype: str
5493
5718
  """
5494
5719
  return self._DateOfBirth
@@ -5499,7 +5724,7 @@ WARN_DRIVER_LICENSE_BORDER_INCOMPLETE 边框不完整告警
5499
5724
 
5500
5725
  @property
5501
5726
  def DateOfFirstIssue(self):
5502
- r"""初次领证日期(YYYY-MM-DD)
5727
+ r"""<p>初次领证日期(YYYY-MM-DD)</p>
5503
5728
  :rtype: str
5504
5729
  """
5505
5730
  return self._DateOfFirstIssue
@@ -5510,7 +5735,7 @@ WARN_DRIVER_LICENSE_BORDER_INCOMPLETE 边框不完整告警
5510
5735
 
5511
5736
  @property
5512
5737
  def Class(self):
5513
- r"""准驾车型
5738
+ r"""<p>准驾车型</p>
5514
5739
  :rtype: str
5515
5740
  """
5516
5741
  return self._Class
@@ -5521,7 +5746,7 @@ WARN_DRIVER_LICENSE_BORDER_INCOMPLETE 边框不完整告警
5521
5746
 
5522
5747
  @property
5523
5748
  def StartDate(self):
5524
- r"""有效期开始时间(YYYY-MM-DD)
5749
+ r"""<p>有效期开始时间(YYYY-MM-DD)</p>
5525
5750
  :rtype: str
5526
5751
  """
5527
5752
  return self._StartDate
@@ -5532,8 +5757,7 @@ WARN_DRIVER_LICENSE_BORDER_INCOMPLETE 边框不完整告警
5532
5757
 
5533
5758
  @property
5534
5759
  def EndDate(self):
5535
- r"""有效期截止时间(新版驾驶证返回 YYYY-MM-DD,
5536
- 老版驾驶证返回有效期限 X年)
5760
+ r"""<p>有效期截止时间(新版驾驶证返回 YYYY-MM-DD,老版驾驶证返回有效期限 X年;若驾驶证有效期为长期,则返回&quot;长期&quot;)</p>
5537
5761
  :rtype: str
5538
5762
  """
5539
5763
  return self._EndDate
@@ -5544,7 +5768,7 @@ WARN_DRIVER_LICENSE_BORDER_INCOMPLETE 边框不完整告警
5544
5768
 
5545
5769
  @property
5546
5770
  def CardCode(self):
5547
- r"""驾驶证正页证号
5771
+ r"""<p>驾驶证正页证号</p>
5548
5772
  :rtype: str
5549
5773
  """
5550
5774
  return self._CardCode
@@ -5555,7 +5779,7 @@ WARN_DRIVER_LICENSE_BORDER_INCOMPLETE 边框不完整告警
5555
5779
 
5556
5780
  @property
5557
5781
  def ArchivesCode(self):
5558
- r"""档案编号
5782
+ r"""<p>档案编号</p>
5559
5783
  :rtype: str
5560
5784
  """
5561
5785
  return self._ArchivesCode
@@ -5566,7 +5790,7 @@ WARN_DRIVER_LICENSE_BORDER_INCOMPLETE 边框不完整告警
5566
5790
 
5567
5791
  @property
5568
5792
  def Record(self):
5569
- r"""记录
5793
+ r"""<p>记录</p>
5570
5794
  :rtype: str
5571
5795
  """
5572
5796
  return self._Record
@@ -5577,13 +5801,7 @@ WARN_DRIVER_LICENSE_BORDER_INCOMPLETE 边框不完整告警
5577
5801
 
5578
5802
  @property
5579
5803
  def RecognizeWarnCode(self):
5580
- r"""Code 告警码列表和释义:
5581
- -9102 复印件告警
5582
- -9103 翻拍件告警
5583
- -9104 反光告警
5584
- -9105 模糊告警
5585
- -9106 边框不完整告警
5586
- 注:告警码可以同时存在多个
5804
+ r"""<p>Code 告警码列表和释义:<br>-9102 复印件告警<br>-9103 翻拍件告警<br>-9104 反光告警<br>-9105 模糊告警<br>-9106 边框不完整告警<br>注:告警码可以同时存在多个</p>
5587
5805
  :rtype: list of int
5588
5806
  """
5589
5807
  return self._RecognizeWarnCode
@@ -5594,13 +5812,7 @@ WARN_DRIVER_LICENSE_BORDER_INCOMPLETE 边框不完整告警
5594
5812
 
5595
5813
  @property
5596
5814
  def RecognizeWarnMsg(self):
5597
- r"""告警码说明:
5598
- WARN_DRIVER_LICENSE_COPY_CARD 复印件告警
5599
- WARN_DRIVER_LICENSE_SCREENED_CARD 翻拍件告警
5600
- WARN_DRIVER_LICENSE_REFLECTION 反光告警
5601
- WARN_DRIVER_LICENSE_BLUR 模糊告警
5602
- WARN_DRIVER_LICENSE_BORDER_INCOMPLETE 边框不完整告警
5603
- 注:告警信息可以同时存在多个
5815
+ r"""<p>告警码说明:<br>WARN_DRIVER_LICENSE_COPY_CARD 复印件告警<br>WARN_DRIVER_LICENSE_SCREENED_CARD 翻拍件告警<br>WARN_DRIVER_LICENSE_REFLECTION 反光告警<br>WARN_DRIVER_LICENSE_BLUR 模糊告警<br>WARN_DRIVER_LICENSE_BORDER_INCOMPLETE 边框不完整告警<br>注:告警信息可以同时存在多个</p>
5604
5816
  :rtype: list of str
5605
5817
  """
5606
5818
  return self._RecognizeWarnMsg
@@ -5611,7 +5823,7 @@ WARN_DRIVER_LICENSE_BORDER_INCOMPLETE 边框不完整告警
5611
5823
 
5612
5824
  @property
5613
5825
  def IssuingAuthority(self):
5614
- r"""发证单位
5826
+ r"""<p>发证单位</p>
5615
5827
  :rtype: str
5616
5828
  """
5617
5829
  return self._IssuingAuthority
@@ -5622,7 +5834,7 @@ WARN_DRIVER_LICENSE_BORDER_INCOMPLETE 边框不完整告警
5622
5834
 
5623
5835
  @property
5624
5836
  def State(self):
5625
- r"""状态(仅电子驾驶证支持返回该字段)
5837
+ r"""<p>状态(仅电子驾驶证支持返回该字段)</p>
5626
5838
  :rtype: str
5627
5839
  """
5628
5840
  return self._State
@@ -5633,7 +5845,7 @@ WARN_DRIVER_LICENSE_BORDER_INCOMPLETE 边框不完整告警
5633
5845
 
5634
5846
  @property
5635
5847
  def CumulativeScore(self):
5636
- r"""累积记分(仅电子驾驶证支持返回该字段)
5848
+ r"""<p>累积记分(仅电子驾驶证支持返回该字段)</p>
5637
5849
  :rtype: str
5638
5850
  """
5639
5851
  return self._CumulativeScore
@@ -5644,7 +5856,7 @@ WARN_DRIVER_LICENSE_BORDER_INCOMPLETE 边框不完整告警
5644
5856
 
5645
5857
  @property
5646
5858
  def CurrentTime(self):
5647
- r"""当前时间(仅电子驾驶证支持返回该字段)
5859
+ r"""<p>当前时间(仅电子驾驶证支持返回该字段)</p>
5648
5860
  :rtype: str
5649
5861
  """
5650
5862
  return self._CurrentTime
@@ -5655,7 +5867,7 @@ WARN_DRIVER_LICENSE_BORDER_INCOMPLETE 边框不完整告警
5655
5867
 
5656
5868
  @property
5657
5869
  def GenerateTime(self):
5658
- r"""生成时间(仅电子驾驶证支持返回该字段)
5870
+ r"""<p>生成时间(仅电子驾驶证支持返回该字段)</p>
5659
5871
  :rtype: str
5660
5872
  """
5661
5873
  return self._GenerateTime
@@ -5666,7 +5878,7 @@ WARN_DRIVER_LICENSE_BORDER_INCOMPLETE 边框不完整告警
5666
5878
 
5667
5879
  @property
5668
5880
  def BackPageName(self):
5669
- r"""驾驶证副页姓名
5881
+ r"""<p>驾驶证副页姓名</p>
5670
5882
  :rtype: str
5671
5883
  """
5672
5884
  return self._BackPageName
@@ -5677,7 +5889,7 @@ WARN_DRIVER_LICENSE_BORDER_INCOMPLETE 边框不完整告警
5677
5889
 
5678
5890
  @property
5679
5891
  def BackPageCardCode(self):
5680
- r"""驾驶证副页证号
5892
+ r"""<p>驾驶证副页证号</p>
5681
5893
  :rtype: str
5682
5894
  """
5683
5895
  return self._BackPageCardCode
@@ -5688,9 +5900,7 @@ WARN_DRIVER_LICENSE_BORDER_INCOMPLETE 边框不完整告警
5688
5900
 
5689
5901
  @property
5690
5902
  def DriverLicenseType(self):
5691
- r"""驾驶证类型
5692
- 电子驾驶证:Electronic
5693
- 普通驾驶证:Normal
5903
+ r"""<p>驾驶证类型<br>电子驾驶证:Electronic<br>普通驾驶证:Normal</p>
5694
5904
  :rtype: str
5695
5905
  """
5696
5906
  return self._DriverLicenseType
@@ -8383,6 +8593,183 @@ class EnterpriseLicenseOCRResponse(AbstractModel):
8383
8593
  self._RequestId = params.get("RequestId")
8384
8594
 
8385
8595
 
8596
+ class EraseHandwrittenImageOCRRequest(AbstractModel):
8597
+ r"""EraseHandwrittenImageOCR请求参数结构体
8598
+
8599
+ """
8600
+
8601
+ def __init__(self):
8602
+ r"""
8603
+ :param _ImageBase64: 图片/PDF的 Base64 值。要求Base64不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
8604
+ :type ImageBase64: str
8605
+ :param _ImageUrl: 图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
8606
+ :type ImageUrl: str
8607
+ :param _PdfPageNumber: 需要识别的PDF页面的对应页码,仅支持PDF单页识别,默认值为1。
8608
+ :type PdfPageNumber: int
8609
+ :param _Crop: 0表示关闭切边,默认为0
8610
+ 1表示开启切边
8611
+ :type Crop: int
8612
+ :param _Deskew: 0表示关闭弯曲矫正,默认为0
8613
+ 1表示开启弯曲矫正
8614
+ :type Deskew: int
8615
+ :param _Sharpen: 0表示关闭增强锐化,默认为0
8616
+ 1表示开启增强锐化
8617
+ :type Sharpen: int
8618
+ :param _Grayscale: 0表示返回黑白图像
8619
+ 1表示返回彩色图像,默认为1
8620
+ :type Grayscale: int
8621
+ """
8622
+ self._ImageBase64 = None
8623
+ self._ImageUrl = None
8624
+ self._PdfPageNumber = None
8625
+ self._Crop = None
8626
+ self._Deskew = None
8627
+ self._Sharpen = None
8628
+ self._Grayscale = None
8629
+
8630
+ @property
8631
+ def ImageBase64(self):
8632
+ r"""图片/PDF的 Base64 值。要求Base64不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
8633
+ :rtype: str
8634
+ """
8635
+ return self._ImageBase64
8636
+
8637
+ @ImageBase64.setter
8638
+ def ImageBase64(self, ImageBase64):
8639
+ self._ImageBase64 = ImageBase64
8640
+
8641
+ @property
8642
+ def ImageUrl(self):
8643
+ r"""图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
8644
+ :rtype: str
8645
+ """
8646
+ return self._ImageUrl
8647
+
8648
+ @ImageUrl.setter
8649
+ def ImageUrl(self, ImageUrl):
8650
+ self._ImageUrl = ImageUrl
8651
+
8652
+ @property
8653
+ def PdfPageNumber(self):
8654
+ r"""需要识别的PDF页面的对应页码,仅支持PDF单页识别,默认值为1。
8655
+ :rtype: int
8656
+ """
8657
+ return self._PdfPageNumber
8658
+
8659
+ @PdfPageNumber.setter
8660
+ def PdfPageNumber(self, PdfPageNumber):
8661
+ self._PdfPageNumber = PdfPageNumber
8662
+
8663
+ @property
8664
+ def Crop(self):
8665
+ r"""0表示关闭切边,默认为0
8666
+ 1表示开启切边
8667
+ :rtype: int
8668
+ """
8669
+ return self._Crop
8670
+
8671
+ @Crop.setter
8672
+ def Crop(self, Crop):
8673
+ self._Crop = Crop
8674
+
8675
+ @property
8676
+ def Deskew(self):
8677
+ r"""0表示关闭弯曲矫正,默认为0
8678
+ 1表示开启弯曲矫正
8679
+ :rtype: int
8680
+ """
8681
+ return self._Deskew
8682
+
8683
+ @Deskew.setter
8684
+ def Deskew(self, Deskew):
8685
+ self._Deskew = Deskew
8686
+
8687
+ @property
8688
+ def Sharpen(self):
8689
+ r"""0表示关闭增强锐化,默认为0
8690
+ 1表示开启增强锐化
8691
+ :rtype: int
8692
+ """
8693
+ return self._Sharpen
8694
+
8695
+ @Sharpen.setter
8696
+ def Sharpen(self, Sharpen):
8697
+ self._Sharpen = Sharpen
8698
+
8699
+ @property
8700
+ def Grayscale(self):
8701
+ r"""0表示返回黑白图像
8702
+ 1表示返回彩色图像,默认为1
8703
+ :rtype: int
8704
+ """
8705
+ return self._Grayscale
8706
+
8707
+ @Grayscale.setter
8708
+ def Grayscale(self, Grayscale):
8709
+ self._Grayscale = Grayscale
8710
+
8711
+
8712
+ def _deserialize(self, params):
8713
+ self._ImageBase64 = params.get("ImageBase64")
8714
+ self._ImageUrl = params.get("ImageUrl")
8715
+ self._PdfPageNumber = params.get("PdfPageNumber")
8716
+ self._Crop = params.get("Crop")
8717
+ self._Deskew = params.get("Deskew")
8718
+ self._Sharpen = params.get("Sharpen")
8719
+ self._Grayscale = params.get("Grayscale")
8720
+ memeber_set = set(params.keys())
8721
+ for name, value in vars(self).items():
8722
+ property_name = name[1:]
8723
+ if property_name in memeber_set:
8724
+ memeber_set.remove(property_name)
8725
+ if len(memeber_set) > 0:
8726
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
8727
+
8728
+
8729
+
8730
+ class EraseHandwrittenImageOCRResponse(AbstractModel):
8731
+ r"""EraseHandwrittenImageOCR返回参数结构体
8732
+
8733
+ """
8734
+
8735
+ def __init__(self):
8736
+ r"""
8737
+ :param _Image: 图像处理后的jpg图片,base64格式
8738
+ :type Image: str
8739
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
8740
+ :type RequestId: str
8741
+ """
8742
+ self._Image = None
8743
+ self._RequestId = None
8744
+
8745
+ @property
8746
+ def Image(self):
8747
+ r"""图像处理后的jpg图片,base64格式
8748
+ :rtype: str
8749
+ """
8750
+ return self._Image
8751
+
8752
+ @Image.setter
8753
+ def Image(self, Image):
8754
+ self._Image = Image
8755
+
8756
+ @property
8757
+ def RequestId(self):
8758
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
8759
+ :rtype: str
8760
+ """
8761
+ return self._RequestId
8762
+
8763
+ @RequestId.setter
8764
+ def RequestId(self, RequestId):
8765
+ self._RequestId = RequestId
8766
+
8767
+
8768
+ def _deserialize(self, params):
8769
+ self._Image = params.get("Image")
8770
+ self._RequestId = params.get("RequestId")
8771
+
8772
+
8386
8773
  class EstateCertOCRRequest(AbstractModel):
8387
8774
  r"""EstateCertOCR请求参数结构体
8388
8775
 
@@ -14269,16 +14656,16 @@ class ImageCoordinates(AbstractModel):
14269
14656
 
14270
14657
  def __init__(self):
14271
14658
  r"""
14272
- :param _X: 头像左上角横坐标
14659
+ :param _X: <p>头像左上角横坐标</p>
14273
14660
  注意:此字段可能返回 null,表示取不到有效值。
14274
14661
  :type X: int
14275
- :param _Y: 头像左上角纵坐标
14662
+ :param _Y: <p>头像左上角纵坐标</p>
14276
14663
  注意:此字段可能返回 null,表示取不到有效值。
14277
14664
  :type Y: int
14278
- :param _Width: 头像框宽度
14665
+ :param _Width: <p>头像框宽度</p><p>单位:px</p>
14279
14666
  注意:此字段可能返回 null,表示取不到有效值。
14280
14667
  :type Width: int
14281
- :param _Height: 头像框高度
14668
+ :param _Height: <p>头像框高度</p><p>单位:px</p>
14282
14669
  注意:此字段可能返回 null,表示取不到有效值。
14283
14670
  :type Height: int
14284
14671
  """
@@ -14289,7 +14676,7 @@ class ImageCoordinates(AbstractModel):
14289
14676
 
14290
14677
  @property
14291
14678
  def X(self):
14292
- r"""头像左上角横坐标
14679
+ r"""<p>头像左上角横坐标</p>
14293
14680
  注意:此字段可能返回 null,表示取不到有效值。
14294
14681
  :rtype: int
14295
14682
  """
@@ -14301,7 +14688,7 @@ class ImageCoordinates(AbstractModel):
14301
14688
 
14302
14689
  @property
14303
14690
  def Y(self):
14304
- r"""头像左上角纵坐标
14691
+ r"""<p>头像左上角纵坐标</p>
14305
14692
  注意:此字段可能返回 null,表示取不到有效值。
14306
14693
  :rtype: int
14307
14694
  """
@@ -14313,7 +14700,7 @@ class ImageCoordinates(AbstractModel):
14313
14700
 
14314
14701
  @property
14315
14702
  def Width(self):
14316
- r"""头像框宽度
14703
+ r"""<p>头像框宽度</p><p>单位:px</p>
14317
14704
  注意:此字段可能返回 null,表示取不到有效值。
14318
14705
  :rtype: int
14319
14706
  """
@@ -14325,7 +14712,7 @@ class ImageCoordinates(AbstractModel):
14325
14712
 
14326
14713
  @property
14327
14714
  def Height(self):
14328
- r"""头像框高度
14715
+ r"""<p>头像框高度</p><p>单位:px</p>
14329
14716
  注意:此字段可能返回 null,表示取不到有效值。
14330
14717
  :rtype: int
14331
14718
  """
@@ -26488,13 +26875,13 @@ class Rect(AbstractModel):
26488
26875
 
26489
26876
  def __init__(self):
26490
26877
  r"""
26491
- :param _X: 左上角x
26878
+ :param _X: <p>左上角x</p>
26492
26879
  :type X: int
26493
- :param _Y: 左上角y
26880
+ :param _Y: <p>左上角y</p>
26494
26881
  :type Y: int
26495
- :param _Width: 宽度
26882
+ :param _Width: <p>宽度</p><p>单位:px</p>
26496
26883
  :type Width: int
26497
- :param _Height: 高度
26884
+ :param _Height: <p>高度</p><p>单位:px</p>
26498
26885
  :type Height: int
26499
26886
  """
26500
26887
  self._X = None
@@ -26504,7 +26891,7 @@ class Rect(AbstractModel):
26504
26891
 
26505
26892
  @property
26506
26893
  def X(self):
26507
- r"""左上角x
26894
+ r"""<p>左上角x</p>
26508
26895
  :rtype: int
26509
26896
  """
26510
26897
  return self._X
@@ -26515,7 +26902,7 @@ class Rect(AbstractModel):
26515
26902
 
26516
26903
  @property
26517
26904
  def Y(self):
26518
- r"""左上角y
26905
+ r"""<p>左上角y</p>
26519
26906
  :rtype: int
26520
26907
  """
26521
26908
  return self._Y
@@ -26526,7 +26913,7 @@ class Rect(AbstractModel):
26526
26913
 
26527
26914
  @property
26528
26915
  def Width(self):
26529
- r"""宽度
26916
+ r"""<p>宽度</p><p>单位:px</p>
26530
26917
  :rtype: int
26531
26918
  """
26532
26919
  return self._Width
@@ -26537,7 +26924,7 @@ class Rect(AbstractModel):
26537
26924
 
26538
26925
  @property
26539
26926
  def Height(self):
26540
- r"""高度
26927
+ r"""<p>高度</p><p>单位:px</p>
26541
26928
  :rtype: int
26542
26929
  """
26543
26930
  return self._Height
@@ -250,6 +250,31 @@ class OcrClient(AbstractClient):
250
250
  raise TencentCloudSDKException(type(e).__name__, str(e))
251
251
 
252
252
 
253
+ def CropEnhanceImageOCR(self, request):
254
+ r"""图像切边矫正增强是面向文档类图片提供的图像增强处理能力,包括切边增强、图像矫正、阴影去除、摩尔纹去除等;可以有效优化文档类的图片质量,提升文字的清晰度,可以作为所有识别场景的图像预处理原子能力,从而提升识别效果。
255
+
256
+ 默认接口请求频率限制:5次/秒。
257
+
258
+ :param request: Request instance for CropEnhanceImageOCR.
259
+ :type request: :class:`tencentcloud.ocr.v20181119.models.CropEnhanceImageOCRRequest`
260
+ :rtype: :class:`tencentcloud.ocr.v20181119.models.CropEnhanceImageOCRResponse`
261
+
262
+ """
263
+ try:
264
+ params = request._serialize()
265
+ headers = request.headers
266
+ body = self.call("CropEnhanceImageOCR", params, headers=headers)
267
+ response = json.loads(body)
268
+ model = models.CropEnhanceImageOCRResponse()
269
+ model._deserialize(response["Response"])
270
+ return model
271
+ except Exception as e:
272
+ if isinstance(e, TencentCloudSDKException):
273
+ raise
274
+ else:
275
+ raise TencentCloudSDKException(type(e).__name__, str(e))
276
+
277
+
253
278
  def DescribeExtractDocAgentJob(self, request):
254
279
  r"""模型参数更大,速度更慢。推荐场景:可以接受异步(超过30s返回),样本输入输出token大于2000,长文本类文档建议用异步模型。需要 SubmitExtractDocAgentJob(提交任务)、DescribeExtractDocAgentJob(查询任务)两个接口配套使用,计费发生在提交任务后。【备注:1.固定价格不限抽取字段数,2.自适应价格抽取字段大于10记两次费用,小于等于10记一次费用】
255
280
 
@@ -431,6 +456,31 @@ class OcrClient(AbstractClient):
431
456
  raise TencentCloudSDKException(type(e).__name__, str(e))
432
457
 
433
458
 
459
+ def EraseHandwrittenImageOCR(self, request):
460
+ r"""本功能可自动清除试卷图片中的手写与批改痕迹,并输出洁净的空白试卷。也可以配合集成图像切边矫正技术,能自动定位、拉平试卷区域,从而在最优预处理基础上实现更佳的擦除效果。
461
+
462
+ 默认接口请求频率限制:5次/秒。
463
+
464
+ :param request: Request instance for EraseHandwrittenImageOCR.
465
+ :type request: :class:`tencentcloud.ocr.v20181119.models.EraseHandwrittenImageOCRRequest`
466
+ :rtype: :class:`tencentcloud.ocr.v20181119.models.EraseHandwrittenImageOCRResponse`
467
+
468
+ """
469
+ try:
470
+ params = request._serialize()
471
+ headers = request.headers
472
+ body = self.call("EraseHandwrittenImageOCR", params, headers=headers)
473
+ response = json.loads(body)
474
+ model = models.EraseHandwrittenImageOCRResponse()
475
+ model._deserialize(response["Response"])
476
+ return model
477
+ except Exception as e:
478
+ if isinstance(e, TencentCloudSDKException):
479
+ raise
480
+ else:
481
+ raise TencentCloudSDKException(type(e).__name__, str(e))
482
+
483
+
434
484
  def EstateCertOCR(self, request):
435
485
  r"""本接口支持不动产权证关键字段的识别,包括使用期限、面积、用途、权利性质、权利类型、坐落、共有情况、权利人、权利其他状况等。
436
486
 
@@ -204,6 +204,26 @@ class OcrClient(AbstractClient):
204
204
 
205
205
  return await self.call_and_deserialize(**kwargs)
206
206
 
207
+ async def CropEnhanceImageOCR(
208
+ self,
209
+ request: models.CropEnhanceImageOCRRequest,
210
+ opts: Dict = None,
211
+ ) -> models.CropEnhanceImageOCRResponse:
212
+ """
213
+ 图像切边矫正增强是面向文档类图片提供的图像增强处理能力,包括切边增强、图像矫正、阴影去除、摩尔纹去除等;可以有效优化文档类的图片质量,提升文字的清晰度,可以作为所有识别场景的图像预处理原子能力,从而提升识别效果。
214
+
215
+ 默认接口请求频率限制:5次/秒。
216
+ """
217
+
218
+ kwargs = {}
219
+ kwargs["action"] = "CropEnhanceImageOCR"
220
+ kwargs["params"] = request._serialize()
221
+ kwargs["resp_cls"] = models.CropEnhanceImageOCRResponse
222
+ kwargs["headers"] = request.headers
223
+ kwargs["opts"] = opts or {}
224
+
225
+ return await self.call_and_deserialize(**kwargs)
226
+
207
227
  async def DescribeExtractDocAgentJob(
208
228
  self,
209
229
  request: models.DescribeExtractDocAgentJobRequest,
@@ -350,6 +370,26 @@ class OcrClient(AbstractClient):
350
370
 
351
371
  return await self.call_and_deserialize(**kwargs)
352
372
 
373
+ async def EraseHandwrittenImageOCR(
374
+ self,
375
+ request: models.EraseHandwrittenImageOCRRequest,
376
+ opts: Dict = None,
377
+ ) -> models.EraseHandwrittenImageOCRResponse:
378
+ """
379
+ 本功能可自动清除试卷图片中的手写与批改痕迹,并输出洁净的空白试卷。也可以配合集成图像切边矫正技术,能自动定位、拉平试卷区域,从而在最优预处理基础上实现更佳的擦除效果。
380
+
381
+ 默认接口请求频率限制:5次/秒。
382
+ """
383
+
384
+ kwargs = {}
385
+ kwargs["action"] = "EraseHandwrittenImageOCR"
386
+ kwargs["params"] = request._serialize()
387
+ kwargs["resp_cls"] = models.EraseHandwrittenImageOCRResponse
388
+ kwargs["headers"] = request.headers
389
+ kwargs["opts"] = opts or {}
390
+
391
+ return await self.call_and_deserialize(**kwargs)
392
+
353
393
  async def EstateCertOCR(
354
394
  self,
355
395
  request: models.EstateCertOCRRequest,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-ocr
3
- Version: 3.1.128
3
+ Version: 3.1.132
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.1.128
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.132
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.132
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.128