tencentcloud-sdk-python-ocr 3.1.93__tar.gz → 3.1.108__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.93 → tencentcloud_sdk_python_ocr-3.1.108}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_ocr-3.1.93 → tencentcloud_sdk_python_ocr-3.1.108}/setup.py +1 -1
  3. {tencentcloud_sdk_python_ocr-3.1.93 → tencentcloud_sdk_python_ocr-3.1.108}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_ocr-3.1.93 → tencentcloud_sdk_python_ocr-3.1.108}/tencentcloud/ocr/v20181119/models.py +31 -438
  5. {tencentcloud_sdk_python_ocr-3.1.93 → tencentcloud_sdk_python_ocr-3.1.108}/tencentcloud/ocr/v20181119/ocr_client.py +0 -50
  6. {tencentcloud_sdk_python_ocr-3.1.93 → tencentcloud_sdk_python_ocr-3.1.108}/tencentcloud/ocr/v20181119/ocr_client_async.py +0 -40
  7. {tencentcloud_sdk_python_ocr-3.1.93 → tencentcloud_sdk_python_ocr-3.1.108}/tencentcloud_sdk_python_ocr.egg-info/PKG-INFO +2 -2
  8. tencentcloud_sdk_python_ocr-3.1.108/tencentcloud_sdk_python_ocr.egg-info/requires.txt +1 -0
  9. tencentcloud_sdk_python_ocr-3.1.93/tencentcloud_sdk_python_ocr.egg-info/requires.txt +0 -1
  10. {tencentcloud_sdk_python_ocr-3.1.93 → tencentcloud_sdk_python_ocr-3.1.108}/README.rst +0 -0
  11. {tencentcloud_sdk_python_ocr-3.1.93 → tencentcloud_sdk_python_ocr-3.1.108}/setup.cfg +0 -0
  12. {tencentcloud_sdk_python_ocr-3.1.93 → tencentcloud_sdk_python_ocr-3.1.108}/tencentcloud/ocr/__init__.py +0 -0
  13. {tencentcloud_sdk_python_ocr-3.1.93 → tencentcloud_sdk_python_ocr-3.1.108}/tencentcloud/ocr/v20181119/__init__.py +0 -0
  14. {tencentcloud_sdk_python_ocr-3.1.93 → tencentcloud_sdk_python_ocr-3.1.108}/tencentcloud/ocr/v20181119/errorcodes.py +0 -0
  15. {tencentcloud_sdk_python_ocr-3.1.93 → tencentcloud_sdk_python_ocr-3.1.108}/tencentcloud_sdk_python_ocr.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_ocr-3.1.93 → tencentcloud_sdk_python_ocr-3.1.108}/tencentcloud_sdk_python_ocr.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_ocr-3.1.93 → tencentcloud_sdk_python_ocr-3.1.108}/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.93
3
+ Version: 3.1.108
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.93
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.108
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.93,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.108,<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.93'
17
+ __version__ = '3.1.108'
@@ -25710,135 +25710,6 @@ class RecognizeMedicalInvoiceOCRResponse(AbstractModel):
25710
25710
  self._RequestId = params.get("RequestId")
25711
25711
 
25712
25712
 
25713
- class RecognizeOnlineTaxiItineraryOCRRequest(AbstractModel):
25714
- r"""RecognizeOnlineTaxiItineraryOCR请求参数结构体
25715
-
25716
- """
25717
-
25718
- def __init__(self):
25719
- r"""
25720
- :param _ImageBase64: 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
25721
- :type ImageBase64: str
25722
- :param _ImageUrl: 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
25723
- :type ImageUrl: str
25724
- :param _IsPdf: 是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。
25725
- :type IsPdf: bool
25726
- :param _PdfPageNumber: 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
25727
- :type PdfPageNumber: int
25728
- """
25729
- self._ImageBase64 = None
25730
- self._ImageUrl = None
25731
- self._IsPdf = None
25732
- self._PdfPageNumber = None
25733
-
25734
- @property
25735
- def ImageBase64(self):
25736
- r"""图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
25737
- :rtype: str
25738
- """
25739
- return self._ImageBase64
25740
-
25741
- @ImageBase64.setter
25742
- def ImageBase64(self, ImageBase64):
25743
- self._ImageBase64 = ImageBase64
25744
-
25745
- @property
25746
- def ImageUrl(self):
25747
- r"""图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
25748
- :rtype: str
25749
- """
25750
- return self._ImageUrl
25751
-
25752
- @ImageUrl.setter
25753
- def ImageUrl(self, ImageUrl):
25754
- self._ImageUrl = ImageUrl
25755
-
25756
- @property
25757
- def IsPdf(self):
25758
- r"""是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。
25759
- :rtype: bool
25760
- """
25761
- return self._IsPdf
25762
-
25763
- @IsPdf.setter
25764
- def IsPdf(self, IsPdf):
25765
- self._IsPdf = IsPdf
25766
-
25767
- @property
25768
- def PdfPageNumber(self):
25769
- r"""需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
25770
- :rtype: int
25771
- """
25772
- return self._PdfPageNumber
25773
-
25774
- @PdfPageNumber.setter
25775
- def PdfPageNumber(self, PdfPageNumber):
25776
- self._PdfPageNumber = PdfPageNumber
25777
-
25778
-
25779
- def _deserialize(self, params):
25780
- self._ImageBase64 = params.get("ImageBase64")
25781
- self._ImageUrl = params.get("ImageUrl")
25782
- self._IsPdf = params.get("IsPdf")
25783
- self._PdfPageNumber = params.get("PdfPageNumber")
25784
- memeber_set = set(params.keys())
25785
- for name, value in vars(self).items():
25786
- property_name = name[1:]
25787
- if property_name in memeber_set:
25788
- memeber_set.remove(property_name)
25789
- if len(memeber_set) > 0:
25790
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
25791
-
25792
-
25793
-
25794
- class RecognizeOnlineTaxiItineraryOCRResponse(AbstractModel):
25795
- r"""RecognizeOnlineTaxiItineraryOCR返回参数结构体
25796
-
25797
- """
25798
-
25799
- def __init__(self):
25800
- r"""
25801
- :param _OnlineTaxiItineraryInfos: 网约车行程单识别结果,具体内容请点击左侧链接。
25802
- :type OnlineTaxiItineraryInfos: list of OnlineTaxiItineraryInfo
25803
- :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
25804
- :type RequestId: str
25805
- """
25806
- self._OnlineTaxiItineraryInfos = None
25807
- self._RequestId = None
25808
-
25809
- @property
25810
- def OnlineTaxiItineraryInfos(self):
25811
- r"""网约车行程单识别结果,具体内容请点击左侧链接。
25812
- :rtype: list of OnlineTaxiItineraryInfo
25813
- """
25814
- return self._OnlineTaxiItineraryInfos
25815
-
25816
- @OnlineTaxiItineraryInfos.setter
25817
- def OnlineTaxiItineraryInfos(self, OnlineTaxiItineraryInfos):
25818
- self._OnlineTaxiItineraryInfos = OnlineTaxiItineraryInfos
25819
-
25820
- @property
25821
- def RequestId(self):
25822
- r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
25823
- :rtype: str
25824
- """
25825
- return self._RequestId
25826
-
25827
- @RequestId.setter
25828
- def RequestId(self, RequestId):
25829
- self._RequestId = RequestId
25830
-
25831
-
25832
- def _deserialize(self, params):
25833
- if params.get("OnlineTaxiItineraryInfos") is not None:
25834
- self._OnlineTaxiItineraryInfos = []
25835
- for item in params.get("OnlineTaxiItineraryInfos"):
25836
- obj = OnlineTaxiItineraryInfo()
25837
- obj._deserialize(item)
25838
- self._OnlineTaxiItineraryInfos.append(obj)
25839
- self._RequestId = params.get("RequestId")
25840
-
25841
-
25842
25713
  class RecognizeStoreNameRequest(AbstractModel):
25843
25714
  r"""RecognizeStoreName请求参数结构体
25844
25715
 
@@ -30733,20 +30604,22 @@ class SubmitExtractDocAgentJobRequest(AbstractModel):
30733
30604
 
30734
30605
  def __init__(self):
30735
30606
  r"""
30736
- :param _ImageBase64: 图片/PDF的 Base64 值。要求Base64不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl
30607
+ :param _ImageBase64: <p>图片/PDF的 Base64 值。要求Base64不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。</p>
30737
30608
  :type ImageBase64: str
30738
- :param _ImageUrl: 图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
30609
+ :param _ImageUrl: <p>图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。</p>
30739
30610
  :type ImageUrl: str
30740
- :param _PdfPageNumber: 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为前5页。
30611
+ :param _PdfPageNumber: <p>需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为前5页。</p>
30741
30612
  :type PdfPageNumber: int
30742
- :param _ItemNames: 自定义抽取需要的字段名称、字段类型、字段提示词。
30613
+ :param _ItemNames: <p>自定义抽取需要的字段名称、字段类型、字段提示词。</p>
30743
30614
  :type ItemNames: list of ItemNames
30744
- :param _EnableCoord: 是否需要返回坐标,默认false
30615
+ :param _EnableCoord: <p>是否需要返回坐标,默认false。</p>
30745
30616
  :type EnableCoord: bool
30746
- :param _FileStartPageNumber: 起始页
30617
+ :param _FileStartPageNumber: <p>起始页</p>
30747
30618
  :type FileStartPageNumber: int
30748
- :param _FileEndPageNumber: 结束页
30619
+ :param _FileEndPageNumber: <p>结束页</p>
30749
30620
  :type FileEndPageNumber: int
30621
+ :param _ModelConfig: <p>model_hunyuan:选择混元底座视觉大模型精调抽取任务 model_youtu:选择优图底座多模态大模型精调抽取任务</p>
30622
+ :type ModelConfig: str
30750
30623
  """
30751
30624
  self._ImageBase64 = None
30752
30625
  self._ImageUrl = None
@@ -30755,10 +30628,11 @@ class SubmitExtractDocAgentJobRequest(AbstractModel):
30755
30628
  self._EnableCoord = None
30756
30629
  self._FileStartPageNumber = None
30757
30630
  self._FileEndPageNumber = None
30631
+ self._ModelConfig = None
30758
30632
 
30759
30633
  @property
30760
30634
  def ImageBase64(self):
30761
- r"""图片/PDF的 Base64 值。要求Base64不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl
30635
+ r"""<p>图片/PDF的 Base64 值。要求Base64不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。</p>
30762
30636
  :rtype: str
30763
30637
  """
30764
30638
  return self._ImageBase64
@@ -30769,7 +30643,7 @@ class SubmitExtractDocAgentJobRequest(AbstractModel):
30769
30643
 
30770
30644
  @property
30771
30645
  def ImageUrl(self):
30772
- r"""图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
30646
+ r"""<p>图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。</p>
30773
30647
  :rtype: str
30774
30648
  """
30775
30649
  return self._ImageUrl
@@ -30782,7 +30656,7 @@ class SubmitExtractDocAgentJobRequest(AbstractModel):
30782
30656
  def PdfPageNumber(self):
30783
30657
  warnings.warn("parameter `PdfPageNumber` is deprecated", DeprecationWarning)
30784
30658
 
30785
- r"""需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为前5页。
30659
+ r"""<p>需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为前5页。</p>
30786
30660
  :rtype: int
30787
30661
  """
30788
30662
  return self._PdfPageNumber
@@ -30795,7 +30669,7 @@ class SubmitExtractDocAgentJobRequest(AbstractModel):
30795
30669
 
30796
30670
  @property
30797
30671
  def ItemNames(self):
30798
- r"""自定义抽取需要的字段名称、字段类型、字段提示词。
30672
+ r"""<p>自定义抽取需要的字段名称、字段类型、字段提示词。</p>
30799
30673
  :rtype: list of ItemNames
30800
30674
  """
30801
30675
  return self._ItemNames
@@ -30806,7 +30680,7 @@ class SubmitExtractDocAgentJobRequest(AbstractModel):
30806
30680
 
30807
30681
  @property
30808
30682
  def EnableCoord(self):
30809
- r"""是否需要返回坐标,默认false
30683
+ r"""<p>是否需要返回坐标,默认false。</p>
30810
30684
  :rtype: bool
30811
30685
  """
30812
30686
  return self._EnableCoord
@@ -30817,7 +30691,7 @@ class SubmitExtractDocAgentJobRequest(AbstractModel):
30817
30691
 
30818
30692
  @property
30819
30693
  def FileStartPageNumber(self):
30820
- r"""起始页
30694
+ r"""<p>起始页</p>
30821
30695
  :rtype: int
30822
30696
  """
30823
30697
  return self._FileStartPageNumber
@@ -30828,7 +30702,7 @@ class SubmitExtractDocAgentJobRequest(AbstractModel):
30828
30702
 
30829
30703
  @property
30830
30704
  def FileEndPageNumber(self):
30831
- r"""结束页
30705
+ r"""<p>结束页</p>
30832
30706
  :rtype: int
30833
30707
  """
30834
30708
  return self._FileEndPageNumber
@@ -30837,6 +30711,17 @@ class SubmitExtractDocAgentJobRequest(AbstractModel):
30837
30711
  def FileEndPageNumber(self, FileEndPageNumber):
30838
30712
  self._FileEndPageNumber = FileEndPageNumber
30839
30713
 
30714
+ @property
30715
+ def ModelConfig(self):
30716
+ r"""<p>model_hunyuan:选择混元底座视觉大模型精调抽取任务 model_youtu:选择优图底座多模态大模型精调抽取任务</p>
30717
+ :rtype: str
30718
+ """
30719
+ return self._ModelConfig
30720
+
30721
+ @ModelConfig.setter
30722
+ def ModelConfig(self, ModelConfig):
30723
+ self._ModelConfig = ModelConfig
30724
+
30840
30725
 
30841
30726
  def _deserialize(self, params):
30842
30727
  self._ImageBase64 = params.get("ImageBase64")
@@ -30851,6 +30736,7 @@ class SubmitExtractDocAgentJobRequest(AbstractModel):
30851
30736
  self._EnableCoord = params.get("EnableCoord")
30852
30737
  self._FileStartPageNumber = params.get("FileStartPageNumber")
30853
30738
  self._FileEndPageNumber = params.get("FileEndPageNumber")
30739
+ self._ModelConfig = params.get("ModelConfig")
30854
30740
  memeber_set = set(params.keys())
30855
30741
  for name, value in vars(self).items():
30856
30742
  property_name = name[1:]
@@ -30868,7 +30754,7 @@ class SubmitExtractDocAgentJobResponse(AbstractModel):
30868
30754
 
30869
30755
  def __init__(self):
30870
30756
  r"""
30871
- :param _JobId: 任务唯一ID。由服务端生成。
30757
+ :param _JobId: <p>任务唯一ID。由服务端生成。</p>
30872
30758
  :type JobId: str
30873
30759
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
30874
30760
  :type RequestId: str
@@ -30878,7 +30764,7 @@ class SubmitExtractDocAgentJobResponse(AbstractModel):
30878
30764
 
30879
30765
  @property
30880
30766
  def JobId(self):
30881
- r"""任务唯一ID。由服务端生成。
30767
+ r"""<p>任务唯一ID。由服务端生成。</p>
30882
30768
  :rtype: str
30883
30769
  """
30884
30770
  return self._JobId
@@ -32043,299 +31929,6 @@ class TaxPayment(AbstractModel):
32043
31929
 
32044
31930
 
32045
31931
 
32046
- class TaxiInvoiceOCRRequest(AbstractModel):
32047
- r"""TaxiInvoiceOCR请求参数结构体
32048
-
32049
- """
32050
-
32051
- def __init__(self):
32052
- r"""
32053
- :param _ImageBase64: 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
32054
- :type ImageBase64: str
32055
- :param _ImageUrl: 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
32056
- :type ImageUrl: str
32057
- :param _IsPdf: 是否开启PDF识别,默认值为true,开启后可同时支持图片和PDF的识别。
32058
- :type IsPdf: bool
32059
- :param _PdfPageNumber: 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
32060
- :type PdfPageNumber: int
32061
- """
32062
- self._ImageBase64 = None
32063
- self._ImageUrl = None
32064
- self._IsPdf = None
32065
- self._PdfPageNumber = None
32066
-
32067
- @property
32068
- def ImageBase64(self):
32069
- r"""图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
32070
- :rtype: str
32071
- """
32072
- return self._ImageBase64
32073
-
32074
- @ImageBase64.setter
32075
- def ImageBase64(self, ImageBase64):
32076
- self._ImageBase64 = ImageBase64
32077
-
32078
- @property
32079
- def ImageUrl(self):
32080
- r"""图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
32081
- :rtype: str
32082
- """
32083
- return self._ImageUrl
32084
-
32085
- @ImageUrl.setter
32086
- def ImageUrl(self, ImageUrl):
32087
- self._ImageUrl = ImageUrl
32088
-
32089
- @property
32090
- def IsPdf(self):
32091
- r"""是否开启PDF识别,默认值为true,开启后可同时支持图片和PDF的识别。
32092
- :rtype: bool
32093
- """
32094
- return self._IsPdf
32095
-
32096
- @IsPdf.setter
32097
- def IsPdf(self, IsPdf):
32098
- self._IsPdf = IsPdf
32099
-
32100
- @property
32101
- def PdfPageNumber(self):
32102
- r"""需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
32103
- :rtype: int
32104
- """
32105
- return self._PdfPageNumber
32106
-
32107
- @PdfPageNumber.setter
32108
- def PdfPageNumber(self, PdfPageNumber):
32109
- self._PdfPageNumber = PdfPageNumber
32110
-
32111
-
32112
- def _deserialize(self, params):
32113
- self._ImageBase64 = params.get("ImageBase64")
32114
- self._ImageUrl = params.get("ImageUrl")
32115
- self._IsPdf = params.get("IsPdf")
32116
- self._PdfPageNumber = params.get("PdfPageNumber")
32117
- memeber_set = set(params.keys())
32118
- for name, value in vars(self).items():
32119
- property_name = name[1:]
32120
- if property_name in memeber_set:
32121
- memeber_set.remove(property_name)
32122
- if len(memeber_set) > 0:
32123
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
32124
-
32125
-
32126
-
32127
- class TaxiInvoiceOCRResponse(AbstractModel):
32128
- r"""TaxiInvoiceOCR返回参数结构体
32129
-
32130
- """
32131
-
32132
- def __init__(self):
32133
- r"""
32134
- :param _InvoiceNum: 发票号码
32135
- :type InvoiceNum: str
32136
- :param _InvoiceCode: 发票代码
32137
- :type InvoiceCode: str
32138
- :param _Date: 日期
32139
- :type Date: str
32140
- :param _Fare: 金额
32141
- :type Fare: str
32142
- :param _GetOnTime: 上车时间
32143
- :type GetOnTime: str
32144
- :param _GetOffTime: 下车时间
32145
- :type GetOffTime: str
32146
- :param _Distance: 里程
32147
- :type Distance: str
32148
- :param _Location: 发票所在地
32149
- :type Location: str
32150
- :param _PlateNumber: 车牌号
32151
- :type PlateNumber: str
32152
- :param _InvoiceType: 发票消费类型
32153
- :type InvoiceType: str
32154
- :param _Province: 省
32155
- 注意:此字段可能返回 null,表示取不到有效值。
32156
- :type Province: str
32157
- :param _City: 市
32158
- 注意:此字段可能返回 null,表示取不到有效值。
32159
- :type City: str
32160
- :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
32161
- :type RequestId: str
32162
- """
32163
- self._InvoiceNum = None
32164
- self._InvoiceCode = None
32165
- self._Date = None
32166
- self._Fare = None
32167
- self._GetOnTime = None
32168
- self._GetOffTime = None
32169
- self._Distance = None
32170
- self._Location = None
32171
- self._PlateNumber = None
32172
- self._InvoiceType = None
32173
- self._Province = None
32174
- self._City = None
32175
- self._RequestId = None
32176
-
32177
- @property
32178
- def InvoiceNum(self):
32179
- r"""发票号码
32180
- :rtype: str
32181
- """
32182
- return self._InvoiceNum
32183
-
32184
- @InvoiceNum.setter
32185
- def InvoiceNum(self, InvoiceNum):
32186
- self._InvoiceNum = InvoiceNum
32187
-
32188
- @property
32189
- def InvoiceCode(self):
32190
- r"""发票代码
32191
- :rtype: str
32192
- """
32193
- return self._InvoiceCode
32194
-
32195
- @InvoiceCode.setter
32196
- def InvoiceCode(self, InvoiceCode):
32197
- self._InvoiceCode = InvoiceCode
32198
-
32199
- @property
32200
- def Date(self):
32201
- r"""日期
32202
- :rtype: str
32203
- """
32204
- return self._Date
32205
-
32206
- @Date.setter
32207
- def Date(self, Date):
32208
- self._Date = Date
32209
-
32210
- @property
32211
- def Fare(self):
32212
- r"""金额
32213
- :rtype: str
32214
- """
32215
- return self._Fare
32216
-
32217
- @Fare.setter
32218
- def Fare(self, Fare):
32219
- self._Fare = Fare
32220
-
32221
- @property
32222
- def GetOnTime(self):
32223
- r"""上车时间
32224
- :rtype: str
32225
- """
32226
- return self._GetOnTime
32227
-
32228
- @GetOnTime.setter
32229
- def GetOnTime(self, GetOnTime):
32230
- self._GetOnTime = GetOnTime
32231
-
32232
- @property
32233
- def GetOffTime(self):
32234
- r"""下车时间
32235
- :rtype: str
32236
- """
32237
- return self._GetOffTime
32238
-
32239
- @GetOffTime.setter
32240
- def GetOffTime(self, GetOffTime):
32241
- self._GetOffTime = GetOffTime
32242
-
32243
- @property
32244
- def Distance(self):
32245
- r"""里程
32246
- :rtype: str
32247
- """
32248
- return self._Distance
32249
-
32250
- @Distance.setter
32251
- def Distance(self, Distance):
32252
- self._Distance = Distance
32253
-
32254
- @property
32255
- def Location(self):
32256
- r"""发票所在地
32257
- :rtype: str
32258
- """
32259
- return self._Location
32260
-
32261
- @Location.setter
32262
- def Location(self, Location):
32263
- self._Location = Location
32264
-
32265
- @property
32266
- def PlateNumber(self):
32267
- r"""车牌号
32268
- :rtype: str
32269
- """
32270
- return self._PlateNumber
32271
-
32272
- @PlateNumber.setter
32273
- def PlateNumber(self, PlateNumber):
32274
- self._PlateNumber = PlateNumber
32275
-
32276
- @property
32277
- def InvoiceType(self):
32278
- r"""发票消费类型
32279
- :rtype: str
32280
- """
32281
- return self._InvoiceType
32282
-
32283
- @InvoiceType.setter
32284
- def InvoiceType(self, InvoiceType):
32285
- self._InvoiceType = InvoiceType
32286
-
32287
- @property
32288
- def Province(self):
32289
- r"""省
32290
- 注意:此字段可能返回 null,表示取不到有效值。
32291
- :rtype: str
32292
- """
32293
- return self._Province
32294
-
32295
- @Province.setter
32296
- def Province(self, Province):
32297
- self._Province = Province
32298
-
32299
- @property
32300
- def City(self):
32301
- r"""市
32302
- 注意:此字段可能返回 null,表示取不到有效值。
32303
- :rtype: str
32304
- """
32305
- return self._City
32306
-
32307
- @City.setter
32308
- def City(self, City):
32309
- self._City = City
32310
-
32311
- @property
32312
- def RequestId(self):
32313
- r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
32314
- :rtype: str
32315
- """
32316
- return self._RequestId
32317
-
32318
- @RequestId.setter
32319
- def RequestId(self, RequestId):
32320
- self._RequestId = RequestId
32321
-
32322
-
32323
- def _deserialize(self, params):
32324
- self._InvoiceNum = params.get("InvoiceNum")
32325
- self._InvoiceCode = params.get("InvoiceCode")
32326
- self._Date = params.get("Date")
32327
- self._Fare = params.get("Fare")
32328
- self._GetOnTime = params.get("GetOnTime")
32329
- self._GetOffTime = params.get("GetOffTime")
32330
- self._Distance = params.get("Distance")
32331
- self._Location = params.get("Location")
32332
- self._PlateNumber = params.get("PlateNumber")
32333
- self._InvoiceType = params.get("InvoiceType")
32334
- self._Province = params.get("Province")
32335
- self._City = params.get("City")
32336
- self._RequestId = params.get("RequestId")
32337
-
32338
-
32339
31932
  class TaxiTicket(AbstractModel):
32340
31933
  r"""出租车发票
32341
31934
 
@@ -1907,31 +1907,6 @@ class OcrClient(AbstractClient):
1907
1907
  raise TencentCloudSDKException(type(e).__name__, str(e))
1908
1908
 
1909
1909
 
1910
- def RecognizeOnlineTaxiItineraryOCR(self, request):
1911
- r"""本接口支持网约车行程单关键字段的识别,包括行程起止日期、上车时间、起点、终点、里程、金额等字段。
1912
-
1913
- 默认接口请求频率限制:20次/秒。
1914
-
1915
- :param request: Request instance for RecognizeOnlineTaxiItineraryOCR.
1916
- :type request: :class:`tencentcloud.ocr.v20181119.models.RecognizeOnlineTaxiItineraryOCRRequest`
1917
- :rtype: :class:`tencentcloud.ocr.v20181119.models.RecognizeOnlineTaxiItineraryOCRResponse`
1918
-
1919
- """
1920
- try:
1921
- params = request._serialize()
1922
- headers = request.headers
1923
- body = self.call("RecognizeOnlineTaxiItineraryOCR", params, headers=headers)
1924
- response = json.loads(body)
1925
- model = models.RecognizeOnlineTaxiItineraryOCRResponse()
1926
- model._deserialize(response["Response"])
1927
- return model
1928
- except Exception as e:
1929
- if isinstance(e, TencentCloudSDKException):
1930
- raise
1931
- else:
1932
- raise TencentCloudSDKException(type(e).__name__, str(e))
1933
-
1934
-
1935
1910
  def RecognizeStoreName(self, request):
1936
1911
  r"""本接口用于识别门头照文字识别结果以及对应分类标签信息
1937
1912
  默认接口请求频率限制:1次/秒
@@ -2311,31 +2286,6 @@ class OcrClient(AbstractClient):
2311
2286
  raise TencentCloudSDKException(type(e).__name__, str(e))
2312
2287
 
2313
2288
 
2314
- def TaxiInvoiceOCR(self, request):
2315
- r"""本接口支持出租车发票关键字段的识别,包括发票号码、发票代码、金额、日期、上下车时间、里程、车牌号、发票类型及所属地区等字段。
2316
-
2317
- 默认接口请求频率限制:5次/秒。
2318
-
2319
- :param request: Request instance for TaxiInvoiceOCR.
2320
- :type request: :class:`tencentcloud.ocr.v20181119.models.TaxiInvoiceOCRRequest`
2321
- :rtype: :class:`tencentcloud.ocr.v20181119.models.TaxiInvoiceOCRResponse`
2322
-
2323
- """
2324
- try:
2325
- params = request._serialize()
2326
- headers = request.headers
2327
- body = self.call("TaxiInvoiceOCR", params, headers=headers)
2328
- response = json.loads(body)
2329
- model = models.TaxiInvoiceOCRResponse()
2330
- model._deserialize(response["Response"])
2331
- return model
2332
- except Exception as e:
2333
- if isinstance(e, TencentCloudSDKException):
2334
- raise
2335
- else:
2336
- raise TencentCloudSDKException(type(e).__name__, str(e))
2337
-
2338
-
2339
2289
  def TextDetect(self, request):
2340
2290
  r"""本接口通过检测图片中的文字信息特征,快速判断图片中有无文字并返回判断结果,帮助用户过滤无文字的图片。
2341
2291
 
@@ -1626,26 +1626,6 @@ class OcrClient(AbstractClient):
1626
1626
 
1627
1627
  return await self.call_and_deserialize(**kwargs)
1628
1628
 
1629
- async def RecognizeOnlineTaxiItineraryOCR(
1630
- self,
1631
- request: models.RecognizeOnlineTaxiItineraryOCRRequest,
1632
- opts: Dict = None,
1633
- ) -> models.RecognizeOnlineTaxiItineraryOCRResponse:
1634
- """
1635
- 本接口支持网约车行程单关键字段的识别,包括行程起止日期、上车时间、起点、终点、里程、金额等字段。
1636
-
1637
- 默认接口请求频率限制:20次/秒。
1638
- """
1639
-
1640
- kwargs = {}
1641
- kwargs["action"] = "RecognizeOnlineTaxiItineraryOCR"
1642
- kwargs["params"] = request._serialize()
1643
- kwargs["resp_cls"] = models.RecognizeOnlineTaxiItineraryOCRResponse
1644
- kwargs["headers"] = request.headers
1645
- kwargs["opts"] = opts or {}
1646
-
1647
- return await self.call_and_deserialize(**kwargs)
1648
-
1649
1629
  async def RecognizeStoreName(
1650
1630
  self,
1651
1631
  request: models.RecognizeStoreNameRequest,
@@ -1950,26 +1930,6 @@ class OcrClient(AbstractClient):
1950
1930
 
1951
1931
  return await self.call_and_deserialize(**kwargs)
1952
1932
 
1953
- async def TaxiInvoiceOCR(
1954
- self,
1955
- request: models.TaxiInvoiceOCRRequest,
1956
- opts: Dict = None,
1957
- ) -> models.TaxiInvoiceOCRResponse:
1958
- """
1959
- 本接口支持出租车发票关键字段的识别,包括发票号码、发票代码、金额、日期、上下车时间、里程、车牌号、发票类型及所属地区等字段。
1960
-
1961
- 默认接口请求频率限制:5次/秒。
1962
- """
1963
-
1964
- kwargs = {}
1965
- kwargs["action"] = "TaxiInvoiceOCR"
1966
- kwargs["params"] = request._serialize()
1967
- kwargs["resp_cls"] = models.TaxiInvoiceOCRResponse
1968
- kwargs["headers"] = request.headers
1969
- kwargs["opts"] = opts or {}
1970
-
1971
- return await self.call_and_deserialize(**kwargs)
1972
-
1973
1933
  async def TextDetect(
1974
1934
  self,
1975
1935
  request: models.TextDetectRequest,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-ocr
3
- Version: 3.1.93
3
+ Version: 3.1.108
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.93
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.108
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.108
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.93