tencentcloud-sdk-python-ocr 3.1.46__tar.gz → 3.1.48__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.46 → tencentcloud_sdk_python_ocr-3.1.48}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_ocr-3.1.46 → tencentcloud_sdk_python_ocr-3.1.48}/setup.py +1 -1
  3. {tencentcloud_sdk_python_ocr-3.1.46 → tencentcloud_sdk_python_ocr-3.1.48}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_ocr-3.1.46 → tencentcloud_sdk_python_ocr-3.1.48}/tencentcloud/ocr/v20181119/models.py +475 -2
  5. {tencentcloud_sdk_python_ocr-3.1.46 → tencentcloud_sdk_python_ocr-3.1.48}/tencentcloud/ocr/v20181119/ocr_client.py +60 -0
  6. {tencentcloud_sdk_python_ocr-3.1.46 → tencentcloud_sdk_python_ocr-3.1.48}/tencentcloud/ocr/v20181119/ocr_client_async.py +50 -0
  7. {tencentcloud_sdk_python_ocr-3.1.46 → tencentcloud_sdk_python_ocr-3.1.48}/tencentcloud_sdk_python_ocr.egg-info/PKG-INFO +2 -2
  8. tencentcloud_sdk_python_ocr-3.1.48/tencentcloud_sdk_python_ocr.egg-info/requires.txt +1 -0
  9. tencentcloud_sdk_python_ocr-3.1.46/tencentcloud_sdk_python_ocr.egg-info/requires.txt +0 -1
  10. {tencentcloud_sdk_python_ocr-3.1.46 → tencentcloud_sdk_python_ocr-3.1.48}/README.rst +0 -0
  11. {tencentcloud_sdk_python_ocr-3.1.46 → tencentcloud_sdk_python_ocr-3.1.48}/setup.cfg +0 -0
  12. {tencentcloud_sdk_python_ocr-3.1.46 → tencentcloud_sdk_python_ocr-3.1.48}/tencentcloud/ocr/__init__.py +0 -0
  13. {tencentcloud_sdk_python_ocr-3.1.46 → tencentcloud_sdk_python_ocr-3.1.48}/tencentcloud/ocr/v20181119/__init__.py +0 -0
  14. {tencentcloud_sdk_python_ocr-3.1.46 → tencentcloud_sdk_python_ocr-3.1.48}/tencentcloud/ocr/v20181119/errorcodes.py +0 -0
  15. {tencentcloud_sdk_python_ocr-3.1.46 → tencentcloud_sdk_python_ocr-3.1.48}/tencentcloud_sdk_python_ocr.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_ocr-3.1.46 → tencentcloud_sdk_python_ocr-3.1.48}/tencentcloud_sdk_python_ocr.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_ocr-3.1.46 → tencentcloud_sdk_python_ocr-3.1.48}/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.46
3
+ Version: 3.1.48
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.46
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.48
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.46,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.48,<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.46'
17
+ __version__ = '3.1.48'
@@ -4776,6 +4776,150 @@ class DescribeExtractDocAgentJobResponse(AbstractModel):
4776
4776
  self._RequestId = params.get("RequestId")
4777
4777
 
4778
4778
 
4779
+ class DescribeMarkEssayAgentJobRequest(AbstractModel):
4780
+ r"""DescribeMarkEssayAgentJob请求参数结构体
4781
+
4782
+ """
4783
+
4784
+ def __init__(self):
4785
+ r"""
4786
+ :param _JobId: 任务唯一ID。由服务端生成。
4787
+ :type JobId: str
4788
+ """
4789
+ self._JobId = None
4790
+
4791
+ @property
4792
+ def JobId(self):
4793
+ r"""任务唯一ID。由服务端生成。
4794
+ :rtype: str
4795
+ """
4796
+ return self._JobId
4797
+
4798
+ @JobId.setter
4799
+ def JobId(self, JobId):
4800
+ self._JobId = JobId
4801
+
4802
+
4803
+ def _deserialize(self, params):
4804
+ self._JobId = params.get("JobId")
4805
+ memeber_set = set(params.keys())
4806
+ for name, value in vars(self).items():
4807
+ property_name = name[1:]
4808
+ if property_name in memeber_set:
4809
+ memeber_set.remove(property_name)
4810
+ if len(memeber_set) > 0:
4811
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
4812
+
4813
+
4814
+
4815
+ class DescribeMarkEssayAgentJobResponse(AbstractModel):
4816
+ r"""DescribeMarkEssayAgentJob返回参数结构体
4817
+
4818
+ """
4819
+
4820
+ def __init__(self):
4821
+ r"""
4822
+ :param _Angle: 图片旋转角度(角度制),文本的水平方向为 0;顺时针为正,逆时针为负。
4823
+ :type Angle: float
4824
+ :param _SentenceSuggests: 配置结构化文本信息。
4825
+ :type SentenceSuggests: list of MarkEssaySuggestions
4826
+ :param _ErrorCode: 任务执行错误码。当任务状态不为 FAIL 时,该值为""。
4827
+ :type ErrorCode: str
4828
+ :param _ErrorMessage: 任务执行错误信息。当任务状态不为 FAIL 时,该值为""。
4829
+ :type ErrorMessage: str
4830
+ :param _JobStatus: 任务状态。WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功
4831
+ :type JobStatus: str
4832
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4833
+ :type RequestId: str
4834
+ """
4835
+ self._Angle = None
4836
+ self._SentenceSuggests = None
4837
+ self._ErrorCode = None
4838
+ self._ErrorMessage = None
4839
+ self._JobStatus = None
4840
+ self._RequestId = None
4841
+
4842
+ @property
4843
+ def Angle(self):
4844
+ r"""图片旋转角度(角度制),文本的水平方向为 0;顺时针为正,逆时针为负。
4845
+ :rtype: float
4846
+ """
4847
+ return self._Angle
4848
+
4849
+ @Angle.setter
4850
+ def Angle(self, Angle):
4851
+ self._Angle = Angle
4852
+
4853
+ @property
4854
+ def SentenceSuggests(self):
4855
+ r"""配置结构化文本信息。
4856
+ :rtype: list of MarkEssaySuggestions
4857
+ """
4858
+ return self._SentenceSuggests
4859
+
4860
+ @SentenceSuggests.setter
4861
+ def SentenceSuggests(self, SentenceSuggests):
4862
+ self._SentenceSuggests = SentenceSuggests
4863
+
4864
+ @property
4865
+ def ErrorCode(self):
4866
+ r"""任务执行错误码。当任务状态不为 FAIL 时,该值为""。
4867
+ :rtype: str
4868
+ """
4869
+ return self._ErrorCode
4870
+
4871
+ @ErrorCode.setter
4872
+ def ErrorCode(self, ErrorCode):
4873
+ self._ErrorCode = ErrorCode
4874
+
4875
+ @property
4876
+ def ErrorMessage(self):
4877
+ r"""任务执行错误信息。当任务状态不为 FAIL 时,该值为""。
4878
+ :rtype: str
4879
+ """
4880
+ return self._ErrorMessage
4881
+
4882
+ @ErrorMessage.setter
4883
+ def ErrorMessage(self, ErrorMessage):
4884
+ self._ErrorMessage = ErrorMessage
4885
+
4886
+ @property
4887
+ def JobStatus(self):
4888
+ r"""任务状态。WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功
4889
+ :rtype: str
4890
+ """
4891
+ return self._JobStatus
4892
+
4893
+ @JobStatus.setter
4894
+ def JobStatus(self, JobStatus):
4895
+ self._JobStatus = JobStatus
4896
+
4897
+ @property
4898
+ def RequestId(self):
4899
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4900
+ :rtype: str
4901
+ """
4902
+ return self._RequestId
4903
+
4904
+ @RequestId.setter
4905
+ def RequestId(self, RequestId):
4906
+ self._RequestId = RequestId
4907
+
4908
+
4909
+ def _deserialize(self, params):
4910
+ self._Angle = params.get("Angle")
4911
+ if params.get("SentenceSuggests") is not None:
4912
+ self._SentenceSuggests = []
4913
+ for item in params.get("SentenceSuggests"):
4914
+ obj = MarkEssaySuggestions()
4915
+ obj._deserialize(item)
4916
+ self._SentenceSuggests.append(obj)
4917
+ self._ErrorCode = params.get("ErrorCode")
4918
+ self._ErrorMessage = params.get("ErrorMessage")
4919
+ self._JobStatus = params.get("JobStatus")
4920
+ self._RequestId = params.get("RequestId")
4921
+
4922
+
4779
4923
  class DescribeQuestionMarkAgentJobRequest(AbstractModel):
4780
4924
  r"""DescribeQuestionMarkAgentJob请求参数结构体
4781
4925
 
@@ -18009,7 +18153,7 @@ class MainlandPermitOCRRequest(AbstractModel):
18009
18153
  :type RetProfile: bool
18010
18154
  :param _CardSide: 图片正反面
18011
18155
  FRONT:正面
18012
- BACK:反面
18156
+ BACK:反面 (仅支持来往内地通行证反面识别,不支持港澳台通行证反面识别)
18013
18157
  默认为FRONT
18014
18158
  :type CardSide: str
18015
18159
  """
@@ -18055,7 +18199,7 @@ BACK:反面
18055
18199
  def CardSide(self):
18056
18200
  r"""图片正反面
18057
18201
  FRONT:正面
18058
- BACK:反面
18202
+ BACK:反面 (仅支持来往内地通行证反面识别,不支持港澳台通行证反面识别)
18059
18203
  默认为FRONT
18060
18204
  :rtype: str
18061
18205
  """
@@ -18395,6 +18539,163 @@ class MainlandTravelPermitBackInfos(AbstractModel):
18395
18539
 
18396
18540
 
18397
18541
 
18542
+ class MarkEssaySuggestions(AbstractModel):
18543
+ r"""作文批改建议
18544
+
18545
+ """
18546
+
18547
+ def __init__(self):
18548
+ r"""
18549
+ :param _ID: 作文批改序号
18550
+ :type ID: int
18551
+ :param _Type: 批改类型:主要包括:词汇、语句
18552
+ :type Type: str
18553
+ :param _SubType: 子类型,基于Type返回二级类型
18554
+
18555
+ 词汇: 错别字、使用拼音、词语误用、词语冗余、词汇贫乏、多字/漏字
18556
+
18557
+ 语句:语法硬伤、逻辑问题、表达不佳、标点误用、优美句子
18558
+ :type SubType: str
18559
+ :param _Origin: 原文内容
18560
+ :type Origin: str
18561
+ :param _Replace: 批改后的内容
18562
+ :type Replace: str
18563
+ :param _Message: 点评内容
18564
+ :type Message: str
18565
+ :param _Positions: array[][]二维数组,原文内容可能存在跨行的句子,会有多组坐标返回
18566
+
18567
+ 切图区域的4个角点坐标, 是个长度为8的数组
18568
+
18569
+ [0,1,2,3,4,5,6,7]
18570
+
18571
+ (0,1) 左上角坐标
18572
+ (2,3) 右上角坐标
18573
+ (4,5) 右下角坐标
18574
+ (6,7) 左下角坐标
18575
+ :type Positions: list of Positions
18576
+ """
18577
+ self._ID = None
18578
+ self._Type = None
18579
+ self._SubType = None
18580
+ self._Origin = None
18581
+ self._Replace = None
18582
+ self._Message = None
18583
+ self._Positions = None
18584
+
18585
+ @property
18586
+ def ID(self):
18587
+ r"""作文批改序号
18588
+ :rtype: int
18589
+ """
18590
+ return self._ID
18591
+
18592
+ @ID.setter
18593
+ def ID(self, ID):
18594
+ self._ID = ID
18595
+
18596
+ @property
18597
+ def Type(self):
18598
+ r"""批改类型:主要包括:词汇、语句
18599
+ :rtype: str
18600
+ """
18601
+ return self._Type
18602
+
18603
+ @Type.setter
18604
+ def Type(self, Type):
18605
+ self._Type = Type
18606
+
18607
+ @property
18608
+ def SubType(self):
18609
+ r"""子类型,基于Type返回二级类型
18610
+
18611
+ 词汇: 错别字、使用拼音、词语误用、词语冗余、词汇贫乏、多字/漏字
18612
+
18613
+ 语句:语法硬伤、逻辑问题、表达不佳、标点误用、优美句子
18614
+ :rtype: str
18615
+ """
18616
+ return self._SubType
18617
+
18618
+ @SubType.setter
18619
+ def SubType(self, SubType):
18620
+ self._SubType = SubType
18621
+
18622
+ @property
18623
+ def Origin(self):
18624
+ r"""原文内容
18625
+ :rtype: str
18626
+ """
18627
+ return self._Origin
18628
+
18629
+ @Origin.setter
18630
+ def Origin(self, Origin):
18631
+ self._Origin = Origin
18632
+
18633
+ @property
18634
+ def Replace(self):
18635
+ r"""批改后的内容
18636
+ :rtype: str
18637
+ """
18638
+ return self._Replace
18639
+
18640
+ @Replace.setter
18641
+ def Replace(self, Replace):
18642
+ self._Replace = Replace
18643
+
18644
+ @property
18645
+ def Message(self):
18646
+ r"""点评内容
18647
+ :rtype: str
18648
+ """
18649
+ return self._Message
18650
+
18651
+ @Message.setter
18652
+ def Message(self, Message):
18653
+ self._Message = Message
18654
+
18655
+ @property
18656
+ def Positions(self):
18657
+ r"""array[][]二维数组,原文内容可能存在跨行的句子,会有多组坐标返回
18658
+
18659
+ 切图区域的4个角点坐标, 是个长度为8的数组
18660
+
18661
+ [0,1,2,3,4,5,6,7]
18662
+
18663
+ (0,1) 左上角坐标
18664
+ (2,3) 右上角坐标
18665
+ (4,5) 右下角坐标
18666
+ (6,7) 左下角坐标
18667
+ :rtype: list of Positions
18668
+ """
18669
+ return self._Positions
18670
+
18671
+ @Positions.setter
18672
+ def Positions(self, Positions):
18673
+ self._Positions = Positions
18674
+
18675
+
18676
+ def _deserialize(self, params):
18677
+ self._ID = params.get("ID")
18678
+ self._Type = params.get("Type")
18679
+ self._SubType = params.get("SubType")
18680
+ self._Origin = params.get("Origin")
18681
+ self._Replace = params.get("Replace")
18682
+ self._Message = params.get("Message")
18683
+ if params.get("Positions") is not None:
18684
+ self._Positions = []
18685
+ for item in params.get("Positions"):
18686
+ obj = Positions()
18687
+ obj._deserialize(item)
18688
+ self._Positions.append(obj)
18689
+ memeber_set = set(params.keys())
18690
+ for name, value in vars(self).items():
18691
+ property_name = name[1:]
18692
+ if property_name in memeber_set:
18693
+ memeber_set.remove(property_name)
18694
+ if len(memeber_set) > 0:
18695
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
18696
+
18697
+
18698
+
18398
18699
  class MarkInfo(AbstractModel):
18399
18700
  r"""整张试卷所有题目批改信息
18400
18701
 
@@ -22236,6 +22537,54 @@ class PortraitImageInfo(AbstractModel):
22236
22537
 
22237
22538
 
22238
22539
 
22540
+ class Positions(AbstractModel):
22541
+ r"""这是OCR在高精度识别下返回的坐标值,采用的是由一个数组表示4个顶点的坐标构成,如[0,1,2,3,4,5,6,7]
22542
+ - (0,1) 左上角坐标
22543
+ - (2,3) 右上角坐标
22544
+ - (4,5) 右下角坐标
22545
+ - (6,7) 左下角坐标
22546
+
22547
+ """
22548
+
22549
+ def __init__(self):
22550
+ r"""
22551
+ :param _Position: 这是OCR在高精度识别下返回的坐标值,采用的是由一个数组表示4个顶点的坐标构成,如[0,1,2,3,4,5,6,7]
22552
+ - (0,1) 左上角坐标
22553
+ - (2,3) 右上角坐标
22554
+ - (4,5) 右下角坐标
22555
+ - (6,7) 左下角坐标
22556
+ :type Position: list of int
22557
+ """
22558
+ self._Position = None
22559
+
22560
+ @property
22561
+ def Position(self):
22562
+ r"""这是OCR在高精度识别下返回的坐标值,采用的是由一个数组表示4个顶点的坐标构成,如[0,1,2,3,4,5,6,7]
22563
+ - (0,1) 左上角坐标
22564
+ - (2,3) 右上角坐标
22565
+ - (4,5) 右下角坐标
22566
+ - (6,7) 左下角坐标
22567
+ :rtype: list of int
22568
+ """
22569
+ return self._Position
22570
+
22571
+ @Position.setter
22572
+ def Position(self, Position):
22573
+ self._Position = Position
22574
+
22575
+
22576
+ def _deserialize(self, params):
22577
+ self._Position = params.get("Position")
22578
+ memeber_set = set(params.keys())
22579
+ for name, value in vars(self).items():
22580
+ property_name = name[1:]
22581
+ if property_name in memeber_set:
22582
+ memeber_set.remove(property_name)
22583
+ if len(memeber_set) > 0:
22584
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
22585
+
22586
+
22587
+
22239
22588
  class QrcodeImgSize(AbstractModel):
22240
22589
  r"""图片大小
22241
22590
 
@@ -31432,6 +31781,130 @@ class SubmitExtractDocAgentJobResponse(AbstractModel):
31432
31781
  self._RequestId = params.get("RequestId")
31433
31782
 
31434
31783
 
31784
+ class SubmitMarkEssayAgentJobRequest(AbstractModel):
31785
+ r"""SubmitMarkEssayAgentJob请求参数结构体
31786
+
31787
+ """
31788
+
31789
+ def __init__(self):
31790
+ r"""
31791
+ :param _ImageBase64List: 图片/PDF的 Base64 值。要求Base64不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。 示例值:/9j/4AAQSkZJRg.....s97n//2Q==
31792
+ :type ImageBase64List: list of str
31793
+ :param _ImageUrlList: 图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。 示例值:https://ocr-demo-1254418846.cos.ap-guangzhou.myqcloud.com/general/GeneralAccurateOCR/GeneralAccurateOCR1.jpg
31794
+ :type ImageUrlList: list of str
31795
+ :param _PdfPageNumber: 需要识别的PDF页面的对应页码,仅支持PDF单页识别,默认值为1。 示例值:1
31796
+ :type PdfPageNumber: int
31797
+ :param _QuestionConfigMap: 批改信息输出配置,当key对应为1表示开启配置开关。 当key为StructureAndContent value为1 表示SentenceSuggest返回篇章结构和内容信息,默认只返回词汇、语句
31798
+ :type QuestionConfigMap: str
31799
+ """
31800
+ self._ImageBase64List = None
31801
+ self._ImageUrlList = None
31802
+ self._PdfPageNumber = None
31803
+ self._QuestionConfigMap = None
31804
+
31805
+ @property
31806
+ def ImageBase64List(self):
31807
+ r"""图片/PDF的 Base64 值。要求Base64不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。 示例值:/9j/4AAQSkZJRg.....s97n//2Q==
31808
+ :rtype: list of str
31809
+ """
31810
+ return self._ImageBase64List
31811
+
31812
+ @ImageBase64List.setter
31813
+ def ImageBase64List(self, ImageBase64List):
31814
+ self._ImageBase64List = ImageBase64List
31815
+
31816
+ @property
31817
+ def ImageUrlList(self):
31818
+ r"""图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。 示例值:https://ocr-demo-1254418846.cos.ap-guangzhou.myqcloud.com/general/GeneralAccurateOCR/GeneralAccurateOCR1.jpg
31819
+ :rtype: list of str
31820
+ """
31821
+ return self._ImageUrlList
31822
+
31823
+ @ImageUrlList.setter
31824
+ def ImageUrlList(self, ImageUrlList):
31825
+ self._ImageUrlList = ImageUrlList
31826
+
31827
+ @property
31828
+ def PdfPageNumber(self):
31829
+ r"""需要识别的PDF页面的对应页码,仅支持PDF单页识别,默认值为1。 示例值:1
31830
+ :rtype: int
31831
+ """
31832
+ return self._PdfPageNumber
31833
+
31834
+ @PdfPageNumber.setter
31835
+ def PdfPageNumber(self, PdfPageNumber):
31836
+ self._PdfPageNumber = PdfPageNumber
31837
+
31838
+ @property
31839
+ def QuestionConfigMap(self):
31840
+ r"""批改信息输出配置,当key对应为1表示开启配置开关。 当key为StructureAndContent value为1 表示SentenceSuggest返回篇章结构和内容信息,默认只返回词汇、语句
31841
+ :rtype: str
31842
+ """
31843
+ return self._QuestionConfigMap
31844
+
31845
+ @QuestionConfigMap.setter
31846
+ def QuestionConfigMap(self, QuestionConfigMap):
31847
+ self._QuestionConfigMap = QuestionConfigMap
31848
+
31849
+
31850
+ def _deserialize(self, params):
31851
+ self._ImageBase64List = params.get("ImageBase64List")
31852
+ self._ImageUrlList = params.get("ImageUrlList")
31853
+ self._PdfPageNumber = params.get("PdfPageNumber")
31854
+ self._QuestionConfigMap = params.get("QuestionConfigMap")
31855
+ memeber_set = set(params.keys())
31856
+ for name, value in vars(self).items():
31857
+ property_name = name[1:]
31858
+ if property_name in memeber_set:
31859
+ memeber_set.remove(property_name)
31860
+ if len(memeber_set) > 0:
31861
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
31862
+
31863
+
31864
+
31865
+ class SubmitMarkEssayAgentJobResponse(AbstractModel):
31866
+ r"""SubmitMarkEssayAgentJob返回参数结构体
31867
+
31868
+ """
31869
+
31870
+ def __init__(self):
31871
+ r"""
31872
+ :param _JobIds: 任务唯一ID。由服务端生成。 示例值:1334797167793684480
31873
+ :type JobIds: list of str
31874
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
31875
+ :type RequestId: str
31876
+ """
31877
+ self._JobIds = None
31878
+ self._RequestId = None
31879
+
31880
+ @property
31881
+ def JobIds(self):
31882
+ r"""任务唯一ID。由服务端生成。 示例值:1334797167793684480
31883
+ :rtype: list of str
31884
+ """
31885
+ return self._JobIds
31886
+
31887
+ @JobIds.setter
31888
+ def JobIds(self, JobIds):
31889
+ self._JobIds = JobIds
31890
+
31891
+ @property
31892
+ def RequestId(self):
31893
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
31894
+ :rtype: str
31895
+ """
31896
+ return self._RequestId
31897
+
31898
+ @RequestId.setter
31899
+ def RequestId(self, RequestId):
31900
+ self._RequestId = RequestId
31901
+
31902
+
31903
+ def _deserialize(self, params):
31904
+ self._JobIds = params.get("JobIds")
31905
+ self._RequestId = params.get("RequestId")
31906
+
31907
+
31435
31908
  class SubmitQuestionMarkAgentJobRequest(AbstractModel):
31436
31909
  r"""SubmitQuestionMarkAgentJob请求参数结构体
31437
31910
 
@@ -299,6 +299,31 @@ class OcrClient(AbstractClient):
299
299
  raise TencentCloudSDKException(type(e).__name__, str(e))
300
300
 
301
301
 
302
+ def DescribeMarkEssayAgentJob(self, request):
303
+ r"""用于作文批改Agent查询任务。基于业界领先的千亿参数多模态大模型技术,提供中英文手写作文的精准批改端到端服务。核心功能涵盖错别字智能识别、好词好句点评、错句纠错,并能够在原文中定位至具体段落与字符位置,同时提供详细的修改建议与优化内容。此能力是作业批改场景中的核心模块。
304
+
305
+ 默认接口请求并发限制:2次/分钟。
306
+
307
+ :param request: Request instance for DescribeMarkEssayAgentJob.
308
+ :type request: :class:`tencentcloud.ocr.v20181119.models.DescribeMarkEssayAgentJobRequest`
309
+ :rtype: :class:`tencentcloud.ocr.v20181119.models.DescribeMarkEssayAgentJobResponse`
310
+
311
+ """
312
+ try:
313
+ params = request._serialize()
314
+ headers = request.headers
315
+ body = self.call("DescribeMarkEssayAgentJob", params, headers=headers)
316
+ response = json.loads(body)
317
+ model = models.DescribeMarkEssayAgentJobResponse()
318
+ model._deserialize(response["Response"])
319
+ return model
320
+ except Exception as e:
321
+ if isinstance(e, TencentCloudSDKException):
322
+ raise
323
+ else:
324
+ raise TencentCloudSDKException(type(e).__name__, str(e))
325
+
326
+
302
327
  def DescribeQuestionMarkAgentJob(self, request):
303
328
  r"""用于试题批改Agent查询任务。主要面向K12的试题批改产品,支持整卷/单题端到端(试卷切题+题目批改+手写坐标回显)处理,主要聚焦的场景包括试题批改(含手写答案)、试题解析(不含手写答案),其中低年级算式批改效果比线上[数学作业批改](https://cloud.tencent.com/document/product/1004)效果更好。精准输出题目、正误判定、答案对比、错误及知识点等结构化评估结果。
304
329
 
@@ -1106,6 +1131,9 @@ class OcrClient(AbstractClient):
1106
1131
 
1107
1132
  另外,本接口还支持多种扩展能力,满足不同场景的需求。如身份证照片、人像照片的裁剪功能,同时具备7种告警功能,如下表所示。
1108
1133
 
1134
+ 重要提醒:本产品告警功能依托AI检测技术,不可作为审核的唯一依据,应用前请做好效果测试。
1135
+
1136
+
1109
1137
  <table style="width:650px">
1110
1138
  <thead>
1111
1139
  <tr>
@@ -1607,6 +1635,9 @@ class OcrClient(AbstractClient):
1607
1635
 
1608
1636
  另外,本接口还支持多种扩展能力,满足不同场景的需求。如身份证照片、人像照片的裁剪功能,同时具备9种告警功能,如下表所示。
1609
1637
 
1638
+ 重要提醒:本产品告警功能依托AI检测技术,不可作为审核的唯一依据,应用前请做好效果测试。
1639
+
1640
+
1610
1641
  <table style="width:650px">
1611
1642
  <thead>
1612
1643
  <tr>
@@ -1702,6 +1733,8 @@ class OcrClient(AbstractClient):
1702
1733
  def RecognizeGeneralCardWarn(self, request):
1703
1734
  r"""支持通用证照的有效性检测告警,包括卡证复印件告警、卡证翻拍告警等功能,支持通用证照的ps伪造检测,可以应用于各种证件信息有效性校验场景。
1704
1735
 
1736
+ 重要提醒:本产品依托AI检测技术,不可作为审核的唯一依据,应用前请做好效果测试。
1737
+
1705
1738
  默认接口请求频率限制:5次/秒。
1706
1739
 
1707
1740
  :param request: Request instance for RecognizeGeneralCardWarn.
@@ -2185,6 +2218,8 @@ class OcrClient(AbstractClient):
2185
2218
  def RecognizeValidIDCardOCR(self, request):
2186
2219
  r"""本接口支持二代身份证、临时身份证、港澳台居住证、外国人永久居留证,字段内容识别功能,包括姓名、性别、民族、出生、出生日期、住址、公民身份号码、签发机关、有效期限、国籍、通行证号码、持证人持有号码;支持返回证件类型;支持翻拍、复印、边框不完整、遮挡、字段级反光和字段级完整性告警;支持卡片主体框裁剪和头像裁剪。
2187
2220
 
2221
+ 重要提醒:本产品告警功能依托AI检测技术,不可作为审核的唯一依据,应用前请做好效果测试。
2222
+
2188
2223
  默认接口请求频率限制:5次/秒。
2189
2224
 
2190
2225
  :param request: Request instance for RecognizeValidIDCardOCR.
@@ -2381,6 +2416,31 @@ class OcrClient(AbstractClient):
2381
2416
  raise TencentCloudSDKException(type(e).__name__, str(e))
2382
2417
 
2383
2418
 
2419
+ def SubmitMarkEssayAgentJob(self, request):
2420
+ r"""用于作文批改Agent提交任务。基于业界领先的千亿参数多模态大模型技术,提供中英文手写作文的精准批改端到端服务。核心功能涵盖错别字智能识别、好词好句点评、错句纠错,并能够在原文中定位至具体段落与字符位置,同时提供详细的修改建议与优化内容。此能力是作业批改场景中的核心模块。
2421
+
2422
+ 默认接口请求并发限制:2次/分钟。
2423
+
2424
+ :param request: Request instance for SubmitMarkEssayAgentJob.
2425
+ :type request: :class:`tencentcloud.ocr.v20181119.models.SubmitMarkEssayAgentJobRequest`
2426
+ :rtype: :class:`tencentcloud.ocr.v20181119.models.SubmitMarkEssayAgentJobResponse`
2427
+
2428
+ """
2429
+ try:
2430
+ params = request._serialize()
2431
+ headers = request.headers
2432
+ body = self.call("SubmitMarkEssayAgentJob", params, headers=headers)
2433
+ response = json.loads(body)
2434
+ model = models.SubmitMarkEssayAgentJobResponse()
2435
+ model._deserialize(response["Response"])
2436
+ return model
2437
+ except Exception as e:
2438
+ if isinstance(e, TencentCloudSDKException):
2439
+ raise
2440
+ else:
2441
+ raise TencentCloudSDKException(type(e).__name__, str(e))
2442
+
2443
+
2384
2444
  def SubmitQuestionMarkAgentJob(self, request):
2385
2445
  r"""用于试题批改Agent提交任务。主要面向K12的试题批改产品,支持整卷/单题端到端(试卷切题+题目批改+手写坐标回显)处理,主要聚焦的场景包括试题批改(含手写答案)、试题解析(不含手写答案),其中低年级算式批改效果比线上[数学作业批改](https://cloud.tencent.com/document/product/1004)效果更好。精准输出题目、正误判定、答案对比、错误及知识点等结构化评估结果。
2386
2446
 
@@ -243,6 +243,26 @@ class OcrClient(AbstractClient):
243
243
 
244
244
  return await self.call_and_deserialize(**kwargs)
245
245
 
246
+ async def DescribeMarkEssayAgentJob(
247
+ self,
248
+ request: models.DescribeMarkEssayAgentJobRequest,
249
+ opts: Dict = None,
250
+ ) -> models.DescribeMarkEssayAgentJobResponse:
251
+ """
252
+ 用于作文批改Agent查询任务。基于业界领先的千亿参数多模态大模型技术,提供中英文手写作文的精准批改端到端服务。核心功能涵盖错别字智能识别、好词好句点评、错句纠错,并能够在原文中定位至具体段落与字符位置,同时提供详细的修改建议与优化内容。此能力是作业批改场景中的核心模块。
253
+
254
+ 默认接口请求并发限制:2次/分钟。
255
+ """
256
+
257
+ kwargs = {}
258
+ kwargs["action"] = "DescribeMarkEssayAgentJob"
259
+ kwargs["params"] = request._serialize()
260
+ kwargs["resp_cls"] = models.DescribeMarkEssayAgentJobResponse
261
+ kwargs["headers"] = request.headers
262
+ kwargs["opts"] = opts or {}
263
+
264
+ return await self.call_and_deserialize(**kwargs)
265
+
246
266
  async def DescribeQuestionMarkAgentJob(
247
267
  self,
248
268
  request: models.DescribeQuestionMarkAgentJobRequest,
@@ -930,6 +950,9 @@ class OcrClient(AbstractClient):
930
950
 
931
951
  另外,本接口还支持多种扩展能力,满足不同场景的需求。如身份证照片、人像照片的裁剪功能,同时具备7种告警功能,如下表所示。
932
952
 
953
+ 重要提醒:本产品告警功能依托AI检测技术,不可作为审核的唯一依据,应用前请做好效果测试。
954
+
955
+
933
956
  <table style="width:650px">
934
957
  <thead>
935
958
  <tr>
@@ -1341,6 +1364,9 @@ class OcrClient(AbstractClient):
1341
1364
 
1342
1365
  另外,本接口还支持多种扩展能力,满足不同场景的需求。如身份证照片、人像照片的裁剪功能,同时具备9种告警功能,如下表所示。
1343
1366
 
1367
+ 重要提醒:本产品告警功能依托AI检测技术,不可作为审核的唯一依据,应用前请做好效果测试。
1368
+
1369
+
1344
1370
  <table style="width:650px">
1345
1371
  <thead>
1346
1372
  <tr>
@@ -1426,6 +1452,8 @@ class OcrClient(AbstractClient):
1426
1452
  """
1427
1453
  支持通用证照的有效性检测告警,包括卡证复印件告警、卡证翻拍告警等功能,支持通用证照的ps伪造检测,可以应用于各种证件信息有效性校验场景。
1428
1454
 
1455
+ 重要提醒:本产品依托AI检测技术,不可作为审核的唯一依据,应用前请做好效果测试。
1456
+
1429
1457
  默认接口请求频率限制:5次/秒。
1430
1458
  """
1431
1459
 
@@ -1854,6 +1882,8 @@ class OcrClient(AbstractClient):
1854
1882
  """
1855
1883
  本接口支持二代身份证、临时身份证、港澳台居住证、外国人永久居留证,字段内容识别功能,包括姓名、性别、民族、出生、出生日期、住址、公民身份号码、签发机关、有效期限、国籍、通行证号码、持证人持有号码;支持返回证件类型;支持翻拍、复印、边框不完整、遮挡、字段级反光和字段级完整性告警;支持卡片主体框裁剪和头像裁剪。
1856
1884
 
1885
+ 重要提醒:本产品告警功能依托AI检测技术,不可作为审核的唯一依据,应用前请做好效果测试。
1886
+
1857
1887
  默认接口请求频率限制:5次/秒。
1858
1888
  """
1859
1889
 
@@ -2005,6 +2035,26 @@ class OcrClient(AbstractClient):
2005
2035
 
2006
2036
  return await self.call_and_deserialize(**kwargs)
2007
2037
 
2038
+ async def SubmitMarkEssayAgentJob(
2039
+ self,
2040
+ request: models.SubmitMarkEssayAgentJobRequest,
2041
+ opts: Dict = None,
2042
+ ) -> models.SubmitMarkEssayAgentJobResponse:
2043
+ """
2044
+ 用于作文批改Agent提交任务。基于业界领先的千亿参数多模态大模型技术,提供中英文手写作文的精准批改端到端服务。核心功能涵盖错别字智能识别、好词好句点评、错句纠错,并能够在原文中定位至具体段落与字符位置,同时提供详细的修改建议与优化内容。此能力是作业批改场景中的核心模块。
2045
+
2046
+ 默认接口请求并发限制:2次/分钟。
2047
+ """
2048
+
2049
+ kwargs = {}
2050
+ kwargs["action"] = "SubmitMarkEssayAgentJob"
2051
+ kwargs["params"] = request._serialize()
2052
+ kwargs["resp_cls"] = models.SubmitMarkEssayAgentJobResponse
2053
+ kwargs["headers"] = request.headers
2054
+ kwargs["opts"] = opts or {}
2055
+
2056
+ return await self.call_and_deserialize(**kwargs)
2057
+
2008
2058
  async def SubmitQuestionMarkAgentJob(
2009
2059
  self,
2010
2060
  request: models.SubmitQuestionMarkAgentJobRequest,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-ocr
3
- Version: 3.1.46
3
+ Version: 3.1.48
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.46
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.48
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.48
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.46