tencentcloud-sdk-python-ocr 3.0.1394__tar.gz → 3.0.1397__tar.gz

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

Potentially problematic release.


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

Files changed (16) hide show
  1. {tencentcloud-sdk-python-ocr-3.0.1394 → tencentcloud-sdk-python-ocr-3.0.1397}/PKG-INFO +1 -1
  2. {tencentcloud-sdk-python-ocr-3.0.1394 → tencentcloud-sdk-python-ocr-3.0.1397}/setup.py +1 -1
  3. {tencentcloud-sdk-python-ocr-3.0.1394 → tencentcloud-sdk-python-ocr-3.0.1397}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud-sdk-python-ocr-3.0.1394 → tencentcloud-sdk-python-ocr-3.0.1397}/tencentcloud/ocr/v20181119/models.py +135 -18
  5. {tencentcloud-sdk-python-ocr-3.0.1394 → tencentcloud-sdk-python-ocr-3.0.1397}/tencentcloud/ocr/v20181119/ocr_client.py +1 -4
  6. {tencentcloud-sdk-python-ocr-3.0.1394 → tencentcloud-sdk-python-ocr-3.0.1397}/tencentcloud_sdk_python_ocr.egg-info/PKG-INFO +1 -1
  7. tencentcloud-sdk-python-ocr-3.0.1397/tencentcloud_sdk_python_ocr.egg-info/requires.txt +1 -0
  8. tencentcloud-sdk-python-ocr-3.0.1394/tencentcloud_sdk_python_ocr.egg-info/requires.txt +0 -1
  9. {tencentcloud-sdk-python-ocr-3.0.1394 → tencentcloud-sdk-python-ocr-3.0.1397}/README.rst +0 -0
  10. {tencentcloud-sdk-python-ocr-3.0.1394 → tencentcloud-sdk-python-ocr-3.0.1397}/setup.cfg +0 -0
  11. {tencentcloud-sdk-python-ocr-3.0.1394 → tencentcloud-sdk-python-ocr-3.0.1397}/tencentcloud/ocr/__init__.py +0 -0
  12. {tencentcloud-sdk-python-ocr-3.0.1394 → tencentcloud-sdk-python-ocr-3.0.1397}/tencentcloud/ocr/v20181119/__init__.py +0 -0
  13. {tencentcloud-sdk-python-ocr-3.0.1394 → tencentcloud-sdk-python-ocr-3.0.1397}/tencentcloud/ocr/v20181119/errorcodes.py +0 -0
  14. {tencentcloud-sdk-python-ocr-3.0.1394 → tencentcloud-sdk-python-ocr-3.0.1397}/tencentcloud_sdk_python_ocr.egg-info/SOURCES.txt +0 -0
  15. {tencentcloud-sdk-python-ocr-3.0.1394 → tencentcloud-sdk-python-ocr-3.0.1397}/tencentcloud_sdk_python_ocr.egg-info/dependency_links.txt +0 -0
  16. {tencentcloud-sdk-python-ocr-3.0.1394 → tencentcloud-sdk-python-ocr-3.0.1397}/tencentcloud_sdk_python_ocr.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: tencentcloud-sdk-python-ocr
3
- Version: 3.0.1394
3
+ Version: 3.0.1397
4
4
  Summary: Tencent Cloud Ocr SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
8
8
 
9
9
  setup(
10
10
  name='tencentcloud-sdk-python-ocr',
11
- install_requires=["tencentcloud-sdk-python-common==3.0.1394"],
11
+ install_requires=["tencentcloud-sdk-python-common==3.0.1397"],
12
12
  version=tencentcloud.__version__,
13
13
  description='Tencent Cloud Ocr SDK for Python',
14
14
  long_description=open('README.rst').read(),
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1394'
17
+ __version__ = '3.0.1397'
@@ -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
@@ -12669,6 +12661,8 @@ Config = {"CropIdCard":true,"CropPortrait":true}
12669
12661
 
12670
12662
  @property
12671
12663
  def EnableDateVerify(self):
12664
+ warnings.warn("parameter `EnableDateVerify` is deprecated", DeprecationWarning)
12665
+
12672
12666
  """用于控制是否开启日期校验,默认值为true,打开会进行日期校验。
12673
12667
  :rtype: bool
12674
12668
  """
@@ -12676,6 +12670,8 @@ Config = {"CropIdCard":true,"CropPortrait":true}
12676
12670
 
12677
12671
  @EnableDateVerify.setter
12678
12672
  def EnableDateVerify(self, EnableDateVerify):
12673
+ warnings.warn("parameter `EnableDateVerify` is deprecated", DeprecationWarning)
12674
+
12679
12675
  self._EnableDateVerify = EnableDateVerify
12680
12676
 
12681
12677
 
@@ -14035,7 +14031,7 @@ FailedOperation.UnKnowError:表示识别失败;
14035
14031
  :type Angle: float
14036
14032
  :param _SingleInvoiceInfos: 识别到的内容。
14037
14033
  :type SingleInvoiceInfos: :class:`tencentcloud.ocr.v20181119.models.SingleInvoiceItem`
14038
- :param _Page: 发票处于识别图片或PDF文件中的页教,默认从1开始。
14034
+ :param _Page: 发票处于识别图片或PDF文件中的页码,默认从1开始。
14039
14035
  :type Page: int
14040
14036
  :param _SubType: 发票详细类型,详见票据识别(高级版)接口文档说明中 SubType 返回值说明
14041
14037
  :type SubType: str
@@ -14049,6 +14045,8 @@ FailedOperation.UnKnowError:表示识别失败;
14049
14045
  :type ItemPolygon: list of ItemPolygonInfo
14050
14046
  :param _QRCode: 二维码数据。
14051
14047
  :type QRCode: str
14048
+ :param _InvoiceSealInfo: 印章信息
14049
+ :type InvoiceSealInfo: :class:`tencentcloud.ocr.v20181119.models.InvoiceSealInfo`
14052
14050
  """
14053
14051
  self._Code = None
14054
14052
  self._Type = None
@@ -14062,6 +14060,7 @@ FailedOperation.UnKnowError:表示识别失败;
14062
14060
  self._SubTypeDescription = None
14063
14061
  self._ItemPolygon = None
14064
14062
  self._QRCode = None
14063
+ self._InvoiceSealInfo = None
14065
14064
 
14066
14065
  @property
14067
14066
  def Code(self):
@@ -14141,7 +14140,7 @@ FailedOperation.UnKnowError:表示识别失败;
14141
14140
 
14142
14141
  @property
14143
14142
  def Page(self):
14144
- """发票处于识别图片或PDF文件中的页教,默认从1开始。
14143
+ """发票处于识别图片或PDF文件中的页码,默认从1开始。
14145
14144
  :rtype: int
14146
14145
  """
14147
14146
  return self._Page
@@ -14216,6 +14215,17 @@ FailedOperation.UnKnowError:表示识别失败;
14216
14215
  def QRCode(self, QRCode):
14217
14216
  self._QRCode = QRCode
14218
14217
 
14218
+ @property
14219
+ def InvoiceSealInfo(self):
14220
+ """印章信息
14221
+ :rtype: :class:`tencentcloud.ocr.v20181119.models.InvoiceSealInfo`
14222
+ """
14223
+ return self._InvoiceSealInfo
14224
+
14225
+ @InvoiceSealInfo.setter
14226
+ def InvoiceSealInfo(self, InvoiceSealInfo):
14227
+ self._InvoiceSealInfo = InvoiceSealInfo
14228
+
14219
14229
 
14220
14230
  def _deserialize(self, params):
14221
14231
  self._Code = params.get("Code")
@@ -14239,6 +14249,90 @@ FailedOperation.UnKnowError:表示识别失败;
14239
14249
  obj._deserialize(item)
14240
14250
  self._ItemPolygon.append(obj)
14241
14251
  self._QRCode = params.get("QRCode")
14252
+ if params.get("InvoiceSealInfo") is not None:
14253
+ self._InvoiceSealInfo = InvoiceSealInfo()
14254
+ self._InvoiceSealInfo._deserialize(params.get("InvoiceSealInfo"))
14255
+ memeber_set = set(params.keys())
14256
+ for name, value in vars(self).items():
14257
+ property_name = name[1:]
14258
+ if property_name in memeber_set:
14259
+ memeber_set.remove(property_name)
14260
+ if len(memeber_set) > 0:
14261
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
14262
+
14263
+
14264
+
14265
+ class InvoiceSealInfo(AbstractModel):
14266
+ """印章信息
14267
+
14268
+ """
14269
+
14270
+ def __init__(self):
14271
+ r"""
14272
+ :param _CompanySealMark: 是否有公司印章(0:没有,1:有)
14273
+ :type CompanySealMark: str
14274
+ :param _SupervisionSealMark: 是否有监制印章(0:没有,1:有)
14275
+ :type SupervisionSealMark: str
14276
+ :param _CompanySealMarkInfo: 公司印章信息
14277
+ :type CompanySealMarkInfo: list of str
14278
+ :param _SupervisionSealMarkInfo: 监制印章信息
14279
+ :type SupervisionSealMarkInfo: list of str
14280
+ """
14281
+ self._CompanySealMark = None
14282
+ self._SupervisionSealMark = None
14283
+ self._CompanySealMarkInfo = None
14284
+ self._SupervisionSealMarkInfo = None
14285
+
14286
+ @property
14287
+ def CompanySealMark(self):
14288
+ """是否有公司印章(0:没有,1:有)
14289
+ :rtype: str
14290
+ """
14291
+ return self._CompanySealMark
14292
+
14293
+ @CompanySealMark.setter
14294
+ def CompanySealMark(self, CompanySealMark):
14295
+ self._CompanySealMark = CompanySealMark
14296
+
14297
+ @property
14298
+ def SupervisionSealMark(self):
14299
+ """是否有监制印章(0:没有,1:有)
14300
+ :rtype: str
14301
+ """
14302
+ return self._SupervisionSealMark
14303
+
14304
+ @SupervisionSealMark.setter
14305
+ def SupervisionSealMark(self, SupervisionSealMark):
14306
+ self._SupervisionSealMark = SupervisionSealMark
14307
+
14308
+ @property
14309
+ def CompanySealMarkInfo(self):
14310
+ """公司印章信息
14311
+ :rtype: list of str
14312
+ """
14313
+ return self._CompanySealMarkInfo
14314
+
14315
+ @CompanySealMarkInfo.setter
14316
+ def CompanySealMarkInfo(self, CompanySealMarkInfo):
14317
+ self._CompanySealMarkInfo = CompanySealMarkInfo
14318
+
14319
+ @property
14320
+ def SupervisionSealMarkInfo(self):
14321
+ """监制印章信息
14322
+ :rtype: list of str
14323
+ """
14324
+ return self._SupervisionSealMarkInfo
14325
+
14326
+ @SupervisionSealMarkInfo.setter
14327
+ def SupervisionSealMarkInfo(self, SupervisionSealMarkInfo):
14328
+ self._SupervisionSealMarkInfo = SupervisionSealMarkInfo
14329
+
14330
+
14331
+ def _deserialize(self, params):
14332
+ self._CompanySealMark = params.get("CompanySealMark")
14333
+ self._SupervisionSealMark = params.get("SupervisionSealMark")
14334
+ self._CompanySealMarkInfo = params.get("CompanySealMarkInfo")
14335
+ self._SupervisionSealMarkInfo = params.get("SupervisionSealMarkInfo")
14242
14336
  memeber_set = set(params.keys())
14243
14337
  for name, value in vars(self).items():
14244
14338
  property_name = name[1:]
@@ -16140,7 +16234,9 @@ class MainlandPermitOCRRequest(AbstractModel):
16140
16234
  :param _RetProfile: 是否返回头像。默认不返回。
16141
16235
  :type RetProfile: bool
16142
16236
  :param _CardSide: 图片正反面
16143
- FRONT:正面、BACK:反面,默认为FRONT
16237
+ FRONT:正面
16238
+ BACK:反面
16239
+ 默认为FRONT
16144
16240
  :type CardSide: str
16145
16241
  """
16146
16242
  self._ImageBase64 = None
@@ -16191,7 +16287,9 @@ FRONT:正面、BACK:反面,默认为FRONT
16191
16287
  @property
16192
16288
  def CardSide(self):
16193
16289
  """图片正反面
16194
- FRONT:正面、BACK:反面,默认为FRONT
16290
+ FRONT:正面
16291
+ BACK:反面
16292
+ 默认为FRONT
16195
16293
  :rtype: str
16196
16294
  """
16197
16295
  return self._CardSide
@@ -16241,7 +16339,7 @@ class MainlandPermitOCRResponse(AbstractModel):
16241
16339
  :type IssueAddress: str
16242
16340
  :param _IssueNumber: 签发次数
16243
16341
  :type IssueNumber: str
16244
- :param _Type: 证件类别, 如:台湾居民来往大陆通行证、港澳居民来往内地通行证。
16342
+ :param _Type: 证件类别, 如:台湾居民来往大陆通行证、港澳居民来往内地通行证、往来港澳通行证。
16245
16343
  :type Type: str
16246
16344
  :param _Profile: RetProfile为True时返回头像字段, Base64编码
16247
16345
  :type Profile: str
@@ -16368,7 +16466,7 @@ class MainlandPermitOCRResponse(AbstractModel):
16368
16466
 
16369
16467
  @property
16370
16468
  def Type(self):
16371
- """证件类别, 如:台湾居民来往大陆通行证、港澳居民来往内地通行证。
16469
+ """证件类别, 如:台湾居民来往大陆通行证、港澳居民来往内地通行证、往来港澳通行证。
16372
16470
  :rtype: str
16373
16471
  """
16374
16472
  return self._Type
@@ -23884,6 +23982,8 @@ class RecognizeGeneralInvoiceRequest(AbstractModel):
23884
23982
  :type EnableItemPolygon: bool
23885
23983
  :param _EnableQRCode: 是否开启二维码识别。
23886
23984
  :type EnableQRCode: bool
23985
+ :param _EnableSeal: 是否开启印章识别,默认为false
23986
+ :type EnableSeal: bool
23887
23987
  """
23888
23988
  self._ImageBase64 = None
23889
23989
  self._ImageUrl = None
@@ -23895,6 +23995,7 @@ class RecognizeGeneralInvoiceRequest(AbstractModel):
23895
23995
  self._EnableCutImage = None
23896
23996
  self._EnableItemPolygon = None
23897
23997
  self._EnableQRCode = None
23998
+ self._EnableSeal = None
23898
23999
 
23899
24000
  @property
23900
24001
  def ImageBase64(self):
@@ -24030,6 +24131,17 @@ class RecognizeGeneralInvoiceRequest(AbstractModel):
24030
24131
  def EnableQRCode(self, EnableQRCode):
24031
24132
  self._EnableQRCode = EnableQRCode
24032
24133
 
24134
+ @property
24135
+ def EnableSeal(self):
24136
+ """是否开启印章识别,默认为false
24137
+ :rtype: bool
24138
+ """
24139
+ return self._EnableSeal
24140
+
24141
+ @EnableSeal.setter
24142
+ def EnableSeal(self, EnableSeal):
24143
+ self._EnableSeal = EnableSeal
24144
+
24033
24145
 
24034
24146
  def _deserialize(self, params):
24035
24147
  self._ImageBase64 = params.get("ImageBase64")
@@ -24042,6 +24154,7 @@ class RecognizeGeneralInvoiceRequest(AbstractModel):
24042
24154
  self._EnableCutImage = params.get("EnableCutImage")
24043
24155
  self._EnableItemPolygon = params.get("EnableItemPolygon")
24044
24156
  self._EnableQRCode = params.get("EnableQRCode")
24157
+ self._EnableSeal = params.get("EnableSeal")
24045
24158
  memeber_set = set(params.keys())
24046
24159
  for name, value in vars(self).items():
24047
24160
  property_name = name[1:]
@@ -29881,6 +29994,8 @@ DispatchWeightNote -- 磅单发货单识别模板
29881
29994
  ReceiptWeightNote -- 磅单收货单识别模板
29882
29995
  ArticalRecognize -- 手写作文模版
29883
29996
  Table -- 表格模版
29997
+ SteelLabel -- 实物标签识别模板
29998
+ CarInsurance -- 车辆保险单识别模板
29884
29999
  :type ConfigId: str
29885
30000
  :param _EnableCoord: 是否开启全文字段坐标值的识别
29886
30001
  :type EnableCoord: bool
@@ -29987,6 +30102,8 @@ DispatchWeightNote -- 磅单发货单识别模板
29987
30102
  ReceiptWeightNote -- 磅单收货单识别模板
29988
30103
  ArticalRecognize -- 手写作文模版
29989
30104
  Table -- 表格模版
30105
+ SteelLabel -- 实物标签识别模板
30106
+ CarInsurance -- 车辆保险单识别模板
29990
30107
  :rtype: str
29991
30108
  """
29992
30109
  return self._ConfigId
@@ -958,9 +958,6 @@ class OcrClient(AbstractClient):
958
958
  </tr>
959
959
  <tr>
960
960
  <td rowspan="9">告警功能</td>
961
- <td>身份证有效日期不合法,即有效日期不符合5年、10年、20年、长期期限
962
-
963
- </td>
964
961
  </tr>
965
962
  <tr>
966
963
  <td>身份证边框不完整告警</td>
@@ -1184,7 +1181,7 @@ class OcrClient(AbstractClient):
1184
1181
 
1185
1182
 
1186
1183
  def MainlandPermitOCR(self, request):
1187
- """智能识别并结构化港澳台居民来往内地通行证正面全部字段,包含中文姓名、英文姓名、性别、出生日期、签发机关、有效期限、证件号、签发地点、签发次数、证件类别。
1184
+ """智能识别并结构化港澳台通行证及来往内地通行证正面全部字段,包含中文姓名、英文姓名、性别、出生日期、签发机关、有效期限、证件号、签发地点、签发次数、证件类别。
1188
1185
 
1189
1186
  默认接口请求频率限制:20次/秒。
1190
1187
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: tencentcloud-sdk-python-ocr
3
- Version: 3.0.1394
3
+ Version: 3.0.1397
4
4
  Summary: Tencent Cloud Ocr SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common==3.0.1397
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common==3.0.1394