tencentcloud-sdk-python-ocr 3.0.1394__py2.py3-none-any.whl → 3.0.1396__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


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

tencentcloud/__init__.py CHANGED
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1394'
17
+ __version__ = '3.0.1396'
@@ -9691,13 +9691,9 @@ class GeneralAccurateOCRRequest(AbstractModel):
9691
9691
 
9692
9692
  def __init__(self):
9693
9693
  r"""
9694
- :param _ImageBase64: 图片的 Base64 值。
9695
- 要求图片经Base64编码后不超过 7M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP格式。
9696
- 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
9694
+ :param _ImageBase64: 图片/PDF的 Base64 值。要求图片经Base64编码后不超过 10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
9697
9695
  :type ImageBase64: str
9698
- :param _ImageUrl: 图片的 Url 地址。
9699
- 要求图片经Base64编码后不超过 7M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP格式。图片下载时间不超过 3 秒。
9700
- 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
9696
+ :param _ImageUrl: 图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
9701
9697
  :type ImageUrl: str
9702
9698
  :param _IsWords: 是否返回单字信息,默认关
9703
9699
  :type IsWords: bool
@@ -9720,9 +9716,7 @@ class GeneralAccurateOCRRequest(AbstractModel):
9720
9716
 
9721
9717
  @property
9722
9718
  def ImageBase64(self):
9723
- """图片的 Base64 值。
9724
- 要求图片经Base64编码后不超过 7M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP格式。
9725
- 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
9719
+ """图片/PDF的 Base64 值。要求图片经Base64编码后不超过 10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
9726
9720
  :rtype: str
9727
9721
  """
9728
9722
  return self._ImageBase64
@@ -9733,9 +9727,7 @@ class GeneralAccurateOCRRequest(AbstractModel):
9733
9727
 
9734
9728
  @property
9735
9729
  def ImageUrl(self):
9736
- """图片的 Url 地址。
9737
- 要求图片经Base64编码后不超过 7M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP格式。图片下载时间不超过 3 秒。
9738
- 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
9730
+ """图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
9739
9731
  :rtype: str
9740
9732
  """
9741
9733
  return self._ImageUrl
@@ -14035,7 +14027,7 @@ FailedOperation.UnKnowError:表示识别失败;
14035
14027
  :type Angle: float
14036
14028
  :param _SingleInvoiceInfos: 识别到的内容。
14037
14029
  :type SingleInvoiceInfos: :class:`tencentcloud.ocr.v20181119.models.SingleInvoiceItem`
14038
- :param _Page: 发票处于识别图片或PDF文件中的页教,默认从1开始。
14030
+ :param _Page: 发票处于识别图片或PDF文件中的页码,默认从1开始。
14039
14031
  :type Page: int
14040
14032
  :param _SubType: 发票详细类型,详见票据识别(高级版)接口文档说明中 SubType 返回值说明
14041
14033
  :type SubType: str
@@ -14049,6 +14041,8 @@ FailedOperation.UnKnowError:表示识别失败;
14049
14041
  :type ItemPolygon: list of ItemPolygonInfo
14050
14042
  :param _QRCode: 二维码数据。
14051
14043
  :type QRCode: str
14044
+ :param _InvoiceSealInfo: 印章信息
14045
+ :type InvoiceSealInfo: :class:`tencentcloud.ocr.v20181119.models.InvoiceSealInfo`
14052
14046
  """
14053
14047
  self._Code = None
14054
14048
  self._Type = None
@@ -14062,6 +14056,7 @@ FailedOperation.UnKnowError:表示识别失败;
14062
14056
  self._SubTypeDescription = None
14063
14057
  self._ItemPolygon = None
14064
14058
  self._QRCode = None
14059
+ self._InvoiceSealInfo = None
14065
14060
 
14066
14061
  @property
14067
14062
  def Code(self):
@@ -14141,7 +14136,7 @@ FailedOperation.UnKnowError:表示识别失败;
14141
14136
 
14142
14137
  @property
14143
14138
  def Page(self):
14144
- """发票处于识别图片或PDF文件中的页教,默认从1开始。
14139
+ """发票处于识别图片或PDF文件中的页码,默认从1开始。
14145
14140
  :rtype: int
14146
14141
  """
14147
14142
  return self._Page
@@ -14216,6 +14211,17 @@ FailedOperation.UnKnowError:表示识别失败;
14216
14211
  def QRCode(self, QRCode):
14217
14212
  self._QRCode = QRCode
14218
14213
 
14214
+ @property
14215
+ def InvoiceSealInfo(self):
14216
+ """印章信息
14217
+ :rtype: :class:`tencentcloud.ocr.v20181119.models.InvoiceSealInfo`
14218
+ """
14219
+ return self._InvoiceSealInfo
14220
+
14221
+ @InvoiceSealInfo.setter
14222
+ def InvoiceSealInfo(self, InvoiceSealInfo):
14223
+ self._InvoiceSealInfo = InvoiceSealInfo
14224
+
14219
14225
 
14220
14226
  def _deserialize(self, params):
14221
14227
  self._Code = params.get("Code")
@@ -14239,6 +14245,90 @@ FailedOperation.UnKnowError:表示识别失败;
14239
14245
  obj._deserialize(item)
14240
14246
  self._ItemPolygon.append(obj)
14241
14247
  self._QRCode = params.get("QRCode")
14248
+ if params.get("InvoiceSealInfo") is not None:
14249
+ self._InvoiceSealInfo = InvoiceSealInfo()
14250
+ self._InvoiceSealInfo._deserialize(params.get("InvoiceSealInfo"))
14251
+ memeber_set = set(params.keys())
14252
+ for name, value in vars(self).items():
14253
+ property_name = name[1:]
14254
+ if property_name in memeber_set:
14255
+ memeber_set.remove(property_name)
14256
+ if len(memeber_set) > 0:
14257
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
14258
+
14259
+
14260
+
14261
+ class InvoiceSealInfo(AbstractModel):
14262
+ """印章信息
14263
+
14264
+ """
14265
+
14266
+ def __init__(self):
14267
+ r"""
14268
+ :param _CompanySealMark: 是否有公司印章(0:没有,1:有)
14269
+ :type CompanySealMark: str
14270
+ :param _SupervisionSealMark: 是否有监制印章(0:没有,1:有)
14271
+ :type SupervisionSealMark: str
14272
+ :param _CompanySealMarkInfo: 公司印章信息
14273
+ :type CompanySealMarkInfo: list of str
14274
+ :param _SupervisionSealMarkInfo: 监制印章信息
14275
+ :type SupervisionSealMarkInfo: list of str
14276
+ """
14277
+ self._CompanySealMark = None
14278
+ self._SupervisionSealMark = None
14279
+ self._CompanySealMarkInfo = None
14280
+ self._SupervisionSealMarkInfo = None
14281
+
14282
+ @property
14283
+ def CompanySealMark(self):
14284
+ """是否有公司印章(0:没有,1:有)
14285
+ :rtype: str
14286
+ """
14287
+ return self._CompanySealMark
14288
+
14289
+ @CompanySealMark.setter
14290
+ def CompanySealMark(self, CompanySealMark):
14291
+ self._CompanySealMark = CompanySealMark
14292
+
14293
+ @property
14294
+ def SupervisionSealMark(self):
14295
+ """是否有监制印章(0:没有,1:有)
14296
+ :rtype: str
14297
+ """
14298
+ return self._SupervisionSealMark
14299
+
14300
+ @SupervisionSealMark.setter
14301
+ def SupervisionSealMark(self, SupervisionSealMark):
14302
+ self._SupervisionSealMark = SupervisionSealMark
14303
+
14304
+ @property
14305
+ def CompanySealMarkInfo(self):
14306
+ """公司印章信息
14307
+ :rtype: list of str
14308
+ """
14309
+ return self._CompanySealMarkInfo
14310
+
14311
+ @CompanySealMarkInfo.setter
14312
+ def CompanySealMarkInfo(self, CompanySealMarkInfo):
14313
+ self._CompanySealMarkInfo = CompanySealMarkInfo
14314
+
14315
+ @property
14316
+ def SupervisionSealMarkInfo(self):
14317
+ """监制印章信息
14318
+ :rtype: list of str
14319
+ """
14320
+ return self._SupervisionSealMarkInfo
14321
+
14322
+ @SupervisionSealMarkInfo.setter
14323
+ def SupervisionSealMarkInfo(self, SupervisionSealMarkInfo):
14324
+ self._SupervisionSealMarkInfo = SupervisionSealMarkInfo
14325
+
14326
+
14327
+ def _deserialize(self, params):
14328
+ self._CompanySealMark = params.get("CompanySealMark")
14329
+ self._SupervisionSealMark = params.get("SupervisionSealMark")
14330
+ self._CompanySealMarkInfo = params.get("CompanySealMarkInfo")
14331
+ self._SupervisionSealMarkInfo = params.get("SupervisionSealMarkInfo")
14242
14332
  memeber_set = set(params.keys())
14243
14333
  for name, value in vars(self).items():
14244
14334
  property_name = name[1:]
@@ -16140,7 +16230,9 @@ class MainlandPermitOCRRequest(AbstractModel):
16140
16230
  :param _RetProfile: 是否返回头像。默认不返回。
16141
16231
  :type RetProfile: bool
16142
16232
  :param _CardSide: 图片正反面
16143
- FRONT:正面、BACK:反面,默认为FRONT
16233
+ FRONT:正面
16234
+ BACK:反面
16235
+ 默认为FRONT
16144
16236
  :type CardSide: str
16145
16237
  """
16146
16238
  self._ImageBase64 = None
@@ -16191,7 +16283,9 @@ FRONT:正面、BACK:反面,默认为FRONT
16191
16283
  @property
16192
16284
  def CardSide(self):
16193
16285
  """图片正反面
16194
- FRONT:正面、BACK:反面,默认为FRONT
16286
+ FRONT:正面
16287
+ BACK:反面
16288
+ 默认为FRONT
16195
16289
  :rtype: str
16196
16290
  """
16197
16291
  return self._CardSide
@@ -16241,7 +16335,7 @@ class MainlandPermitOCRResponse(AbstractModel):
16241
16335
  :type IssueAddress: str
16242
16336
  :param _IssueNumber: 签发次数
16243
16337
  :type IssueNumber: str
16244
- :param _Type: 证件类别, 如:台湾居民来往大陆通行证、港澳居民来往内地通行证。
16338
+ :param _Type: 证件类别, 如:台湾居民来往大陆通行证、港澳居民来往内地通行证、往来港澳通行证。
16245
16339
  :type Type: str
16246
16340
  :param _Profile: RetProfile为True时返回头像字段, Base64编码
16247
16341
  :type Profile: str
@@ -16368,7 +16462,7 @@ class MainlandPermitOCRResponse(AbstractModel):
16368
16462
 
16369
16463
  @property
16370
16464
  def Type(self):
16371
- """证件类别, 如:台湾居民来往大陆通行证、港澳居民来往内地通行证。
16465
+ """证件类别, 如:台湾居民来往大陆通行证、港澳居民来往内地通行证、往来港澳通行证。
16372
16466
  :rtype: str
16373
16467
  """
16374
16468
  return self._Type
@@ -23884,6 +23978,8 @@ class RecognizeGeneralInvoiceRequest(AbstractModel):
23884
23978
  :type EnableItemPolygon: bool
23885
23979
  :param _EnableQRCode: 是否开启二维码识别。
23886
23980
  :type EnableQRCode: bool
23981
+ :param _EnableSeal: 是否开启印章识别,默认为false
23982
+ :type EnableSeal: bool
23887
23983
  """
23888
23984
  self._ImageBase64 = None
23889
23985
  self._ImageUrl = None
@@ -23895,6 +23991,7 @@ class RecognizeGeneralInvoiceRequest(AbstractModel):
23895
23991
  self._EnableCutImage = None
23896
23992
  self._EnableItemPolygon = None
23897
23993
  self._EnableQRCode = None
23994
+ self._EnableSeal = None
23898
23995
 
23899
23996
  @property
23900
23997
  def ImageBase64(self):
@@ -24030,6 +24127,17 @@ class RecognizeGeneralInvoiceRequest(AbstractModel):
24030
24127
  def EnableQRCode(self, EnableQRCode):
24031
24128
  self._EnableQRCode = EnableQRCode
24032
24129
 
24130
+ @property
24131
+ def EnableSeal(self):
24132
+ """是否开启印章识别,默认为false
24133
+ :rtype: bool
24134
+ """
24135
+ return self._EnableSeal
24136
+
24137
+ @EnableSeal.setter
24138
+ def EnableSeal(self, EnableSeal):
24139
+ self._EnableSeal = EnableSeal
24140
+
24033
24141
 
24034
24142
  def _deserialize(self, params):
24035
24143
  self._ImageBase64 = params.get("ImageBase64")
@@ -24042,6 +24150,7 @@ class RecognizeGeneralInvoiceRequest(AbstractModel):
24042
24150
  self._EnableCutImage = params.get("EnableCutImage")
24043
24151
  self._EnableItemPolygon = params.get("EnableItemPolygon")
24044
24152
  self._EnableQRCode = params.get("EnableQRCode")
24153
+ self._EnableSeal = params.get("EnableSeal")
24045
24154
  memeber_set = set(params.keys())
24046
24155
  for name, value in vars(self).items():
24047
24156
  property_name = name[1:]
@@ -29881,6 +29990,8 @@ DispatchWeightNote -- 磅单发货单识别模板
29881
29990
  ReceiptWeightNote -- 磅单收货单识别模板
29882
29991
  ArticalRecognize -- 手写作文模版
29883
29992
  Table -- 表格模版
29993
+ SteelLabel -- 实物标签识别模板
29994
+ CarInsurance -- 车辆保险单识别模板
29884
29995
  :type ConfigId: str
29885
29996
  :param _EnableCoord: 是否开启全文字段坐标值的识别
29886
29997
  :type EnableCoord: bool
@@ -29987,6 +30098,8 @@ DispatchWeightNote -- 磅单发货单识别模板
29987
30098
  ReceiptWeightNote -- 磅单收货单识别模板
29988
30099
  ArticalRecognize -- 手写作文模版
29989
30100
  Table -- 表格模版
30101
+ SteelLabel -- 实物标签识别模板
30102
+ CarInsurance -- 车辆保险单识别模板
29990
30103
  :rtype: str
29991
30104
  """
29992
30105
  return self._ConfigId
@@ -1184,7 +1184,7 @@ class OcrClient(AbstractClient):
1184
1184
 
1185
1185
 
1186
1186
  def MainlandPermitOCR(self, request):
1187
- """智能识别并结构化港澳台居民来往内地通行证正面全部字段,包含中文姓名、英文姓名、性别、出生日期、签发机关、有效期限、证件号、签发地点、签发次数、证件类别。
1187
+ """智能识别并结构化港澳台通行证及来往内地通行证正面全部字段,包含中文姓名、英文姓名、性别、出生日期、签发机关、有效期限、证件号、签发地点、签发次数、证件类别。
1188
1188
 
1189
1189
  默认接口请求频率限制:20次/秒。
1190
1190
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-ocr
3
- Version: 3.0.1394
3
+ Version: 3.0.1396
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 (==3.0.1394)
18
+ Requires-Dist: tencentcloud-sdk-python-common (==3.0.1396)
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1,10 @@
1
+ tencentcloud/__init__.py,sha256=aQq7OeUiWZ2krYinw5AnSR1-wI877fcbDjhgDMKz-DA,631
2
+ tencentcloud/ocr/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ tencentcloud/ocr/v20181119/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ tencentcloud/ocr/v20181119/errorcodes.py,sha256=L12AZxzshizeJibob00zcd-pBSaeP5XE7OlNM1Firlk,7012
5
+ tencentcloud/ocr/v20181119/models.py,sha256=AHKIDAhsq4d-Uk6eWkMkkick-BbQlMJ2VtrcAufMmow,1341430
6
+ tencentcloud/ocr/v20181119/ocr_client.py,sha256=Pas4-fw0ctpJnMBWOVUQ_4jYSIsE-2fUk-ss-_ULP3Q,119695
7
+ tencentcloud_sdk_python_ocr-3.0.1396.dist-info/METADATA,sha256=xKCWjkuCKSeixlesx8am9OreHPpEoRnNGWU8Zb1QBcg,1496
8
+ tencentcloud_sdk_python_ocr-3.0.1396.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
9
+ tencentcloud_sdk_python_ocr-3.0.1396.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
10
+ tencentcloud_sdk_python_ocr-3.0.1396.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- tencentcloud/__init__.py,sha256=5zO2lLZe1BHAXaibBkb5tZiMM5HPiQZRFL83ZVZxrU8,631
2
- tencentcloud/ocr/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- tencentcloud/ocr/v20181119/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- tencentcloud/ocr/v20181119/errorcodes.py,sha256=L12AZxzshizeJibob00zcd-pBSaeP5XE7OlNM1Firlk,7012
5
- tencentcloud/ocr/v20181119/models.py,sha256=pEbKM2IDzok_vD3mQwKKAwrRsrB2fkGQjbA1yvUoS-g,1337409
6
- tencentcloud/ocr/v20181119/ocr_client.py,sha256=7ClqJ2PGwoXJgqOFlHTeh7J9YeBdaDh0JGESZKy3CG8,119689
7
- tencentcloud_sdk_python_ocr-3.0.1394.dist-info/METADATA,sha256=hC4WhyfkXCihubntQfWCWsdGM7G6ot70o_tyD6R06zE,1496
8
- tencentcloud_sdk_python_ocr-3.0.1394.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
9
- tencentcloud_sdk_python_ocr-3.0.1394.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
10
- tencentcloud_sdk_python_ocr-3.0.1394.dist-info/RECORD,,