tencentcloud-sdk-python-ocr 3.1.97__py2.py3-none-any.whl → 3.1.111__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.
- tencentcloud/__init__.py +1 -1
- tencentcloud/ocr/v20181119/errorcodes.py +0 -3
- tencentcloud/ocr/v20181119/models.py +6 -704
- tencentcloud/ocr/v20181119/ocr_client.py +0 -75
- tencentcloud/ocr/v20181119/ocr_client_async.py +0 -60
- {tencentcloud_sdk_python_ocr-3.1.97.dist-info → tencentcloud_sdk_python_ocr-3.1.111.dist-info}/METADATA +2 -2
- tencentcloud_sdk_python_ocr-3.1.111.dist-info/RECORD +11 -0
- tencentcloud_sdk_python_ocr-3.1.97.dist-info/RECORD +0 -11
- {tencentcloud_sdk_python_ocr-3.1.97.dist-info → tencentcloud_sdk_python_ocr-3.1.111.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_ocr-3.1.97.dist-info → tencentcloud_sdk_python_ocr-3.1.111.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
|
@@ -119,9 +119,6 @@ FAILEDOPERATION_NOSTORELABEL = 'FailedOperation.NoStoreLabel'
|
|
|
119
119
|
# 上传的图片非行驶证
|
|
120
120
|
FAILEDOPERATION_NOVEHICLELICENSEERROR = 'FailedOperation.NoVehicleLicenseError'
|
|
121
121
|
|
|
122
|
-
# 非指定证件
|
|
123
|
-
FAILEDOPERATION_NOTAPPOINTCARD = 'FailedOperation.NotAppointCard'
|
|
124
|
-
|
|
125
122
|
# OCR识别失败。
|
|
126
123
|
FAILEDOPERATION_OCRFAILED = 'FailedOperation.OcrFailed'
|
|
127
124
|
|
|
@@ -13226,282 +13226,6 @@ class HandwritingEssayOCRResponse(AbstractModel):
|
|
|
13226
13226
|
self._RequestId = params.get("RequestId")
|
|
13227
13227
|
|
|
13228
13228
|
|
|
13229
|
-
class HmtResidentPermitOCRRequest(AbstractModel):
|
|
13230
|
-
r"""HmtResidentPermitOCR请求参数结构体
|
|
13231
|
-
|
|
13232
|
-
"""
|
|
13233
|
-
|
|
13234
|
-
def __init__(self):
|
|
13235
|
-
r"""
|
|
13236
|
-
:param _ImageBase64: <p>图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。</p>
|
|
13237
|
-
:type ImageBase64: str
|
|
13238
|
-
:param _ImageUrl: <p>图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。</p>
|
|
13239
|
-
:type ImageUrl: str
|
|
13240
|
-
:param _CardSide: <p>FRONT:有照片的一面(人像面),<br>BACK:无照片的一面(国徽面),<br>该参数如果不填或填错,将为您自动判断正反面。</p>
|
|
13241
|
-
:type CardSide: str
|
|
13242
|
-
:param _CropPortrait: <p>是否返回头像和位置坐标</p>
|
|
13243
|
-
:type CropPortrait: bool
|
|
13244
|
-
"""
|
|
13245
|
-
self._ImageBase64 = None
|
|
13246
|
-
self._ImageUrl = None
|
|
13247
|
-
self._CardSide = None
|
|
13248
|
-
self._CropPortrait = None
|
|
13249
|
-
|
|
13250
|
-
@property
|
|
13251
|
-
def ImageBase64(self):
|
|
13252
|
-
r"""<p>图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。</p>
|
|
13253
|
-
:rtype: str
|
|
13254
|
-
"""
|
|
13255
|
-
return self._ImageBase64
|
|
13256
|
-
|
|
13257
|
-
@ImageBase64.setter
|
|
13258
|
-
def ImageBase64(self, ImageBase64):
|
|
13259
|
-
self._ImageBase64 = ImageBase64
|
|
13260
|
-
|
|
13261
|
-
@property
|
|
13262
|
-
def ImageUrl(self):
|
|
13263
|
-
r"""<p>图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。</p>
|
|
13264
|
-
:rtype: str
|
|
13265
|
-
"""
|
|
13266
|
-
return self._ImageUrl
|
|
13267
|
-
|
|
13268
|
-
@ImageUrl.setter
|
|
13269
|
-
def ImageUrl(self, ImageUrl):
|
|
13270
|
-
self._ImageUrl = ImageUrl
|
|
13271
|
-
|
|
13272
|
-
@property
|
|
13273
|
-
def CardSide(self):
|
|
13274
|
-
r"""<p>FRONT:有照片的一面(人像面),<br>BACK:无照片的一面(国徽面),<br>该参数如果不填或填错,将为您自动判断正反面。</p>
|
|
13275
|
-
:rtype: str
|
|
13276
|
-
"""
|
|
13277
|
-
return self._CardSide
|
|
13278
|
-
|
|
13279
|
-
@CardSide.setter
|
|
13280
|
-
def CardSide(self, CardSide):
|
|
13281
|
-
self._CardSide = CardSide
|
|
13282
|
-
|
|
13283
|
-
@property
|
|
13284
|
-
def CropPortrait(self):
|
|
13285
|
-
r"""<p>是否返回头像和位置坐标</p>
|
|
13286
|
-
:rtype: bool
|
|
13287
|
-
"""
|
|
13288
|
-
return self._CropPortrait
|
|
13289
|
-
|
|
13290
|
-
@CropPortrait.setter
|
|
13291
|
-
def CropPortrait(self, CropPortrait):
|
|
13292
|
-
self._CropPortrait = CropPortrait
|
|
13293
|
-
|
|
13294
|
-
|
|
13295
|
-
def _deserialize(self, params):
|
|
13296
|
-
self._ImageBase64 = params.get("ImageBase64")
|
|
13297
|
-
self._ImageUrl = params.get("ImageUrl")
|
|
13298
|
-
self._CardSide = params.get("CardSide")
|
|
13299
|
-
self._CropPortrait = params.get("CropPortrait")
|
|
13300
|
-
memeber_set = set(params.keys())
|
|
13301
|
-
for name, value in vars(self).items():
|
|
13302
|
-
property_name = name[1:]
|
|
13303
|
-
if property_name in memeber_set:
|
|
13304
|
-
memeber_set.remove(property_name)
|
|
13305
|
-
if len(memeber_set) > 0:
|
|
13306
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
13307
|
-
|
|
13308
|
-
|
|
13309
|
-
|
|
13310
|
-
class HmtResidentPermitOCRResponse(AbstractModel):
|
|
13311
|
-
r"""HmtResidentPermitOCR返回参数结构体
|
|
13312
|
-
|
|
13313
|
-
"""
|
|
13314
|
-
|
|
13315
|
-
def __init__(self):
|
|
13316
|
-
r"""
|
|
13317
|
-
:param _Name: <p>证件姓名</p>
|
|
13318
|
-
:type Name: str
|
|
13319
|
-
:param _Sex: <p>性别</p>
|
|
13320
|
-
:type Sex: str
|
|
13321
|
-
:param _Birth: <p>出生日期</p>
|
|
13322
|
-
:type Birth: str
|
|
13323
|
-
:param _Address: <p>地址</p>
|
|
13324
|
-
:type Address: str
|
|
13325
|
-
:param _IdCardNo: <p>身份证号</p>
|
|
13326
|
-
:type IdCardNo: str
|
|
13327
|
-
:param _CardType: <p>0-正面<br>1-反面</p>
|
|
13328
|
-
:type CardType: int
|
|
13329
|
-
:param _ValidDate: <p>证件有效期限</p>
|
|
13330
|
-
:type ValidDate: str
|
|
13331
|
-
:param _Authority: <p>签发机关</p>
|
|
13332
|
-
:type Authority: str
|
|
13333
|
-
:param _VisaNum: <p>签发次数</p>
|
|
13334
|
-
:type VisaNum: str
|
|
13335
|
-
:param _PassNo: <p>通行证号码</p>
|
|
13336
|
-
:type PassNo: str
|
|
13337
|
-
:param _PortraitImageInfo: <p>头像和坐标信息</p>
|
|
13338
|
-
:type PortraitImageInfo: :class:`tencentcloud.ocr.v20181119.models.PortraitImageInfo`
|
|
13339
|
-
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
13340
|
-
:type RequestId: str
|
|
13341
|
-
"""
|
|
13342
|
-
self._Name = None
|
|
13343
|
-
self._Sex = None
|
|
13344
|
-
self._Birth = None
|
|
13345
|
-
self._Address = None
|
|
13346
|
-
self._IdCardNo = None
|
|
13347
|
-
self._CardType = None
|
|
13348
|
-
self._ValidDate = None
|
|
13349
|
-
self._Authority = None
|
|
13350
|
-
self._VisaNum = None
|
|
13351
|
-
self._PassNo = None
|
|
13352
|
-
self._PortraitImageInfo = None
|
|
13353
|
-
self._RequestId = None
|
|
13354
|
-
|
|
13355
|
-
@property
|
|
13356
|
-
def Name(self):
|
|
13357
|
-
r"""<p>证件姓名</p>
|
|
13358
|
-
:rtype: str
|
|
13359
|
-
"""
|
|
13360
|
-
return self._Name
|
|
13361
|
-
|
|
13362
|
-
@Name.setter
|
|
13363
|
-
def Name(self, Name):
|
|
13364
|
-
self._Name = Name
|
|
13365
|
-
|
|
13366
|
-
@property
|
|
13367
|
-
def Sex(self):
|
|
13368
|
-
r"""<p>性别</p>
|
|
13369
|
-
:rtype: str
|
|
13370
|
-
"""
|
|
13371
|
-
return self._Sex
|
|
13372
|
-
|
|
13373
|
-
@Sex.setter
|
|
13374
|
-
def Sex(self, Sex):
|
|
13375
|
-
self._Sex = Sex
|
|
13376
|
-
|
|
13377
|
-
@property
|
|
13378
|
-
def Birth(self):
|
|
13379
|
-
r"""<p>出生日期</p>
|
|
13380
|
-
:rtype: str
|
|
13381
|
-
"""
|
|
13382
|
-
return self._Birth
|
|
13383
|
-
|
|
13384
|
-
@Birth.setter
|
|
13385
|
-
def Birth(self, Birth):
|
|
13386
|
-
self._Birth = Birth
|
|
13387
|
-
|
|
13388
|
-
@property
|
|
13389
|
-
def Address(self):
|
|
13390
|
-
r"""<p>地址</p>
|
|
13391
|
-
:rtype: str
|
|
13392
|
-
"""
|
|
13393
|
-
return self._Address
|
|
13394
|
-
|
|
13395
|
-
@Address.setter
|
|
13396
|
-
def Address(self, Address):
|
|
13397
|
-
self._Address = Address
|
|
13398
|
-
|
|
13399
|
-
@property
|
|
13400
|
-
def IdCardNo(self):
|
|
13401
|
-
r"""<p>身份证号</p>
|
|
13402
|
-
:rtype: str
|
|
13403
|
-
"""
|
|
13404
|
-
return self._IdCardNo
|
|
13405
|
-
|
|
13406
|
-
@IdCardNo.setter
|
|
13407
|
-
def IdCardNo(self, IdCardNo):
|
|
13408
|
-
self._IdCardNo = IdCardNo
|
|
13409
|
-
|
|
13410
|
-
@property
|
|
13411
|
-
def CardType(self):
|
|
13412
|
-
r"""<p>0-正面<br>1-反面</p>
|
|
13413
|
-
:rtype: int
|
|
13414
|
-
"""
|
|
13415
|
-
return self._CardType
|
|
13416
|
-
|
|
13417
|
-
@CardType.setter
|
|
13418
|
-
def CardType(self, CardType):
|
|
13419
|
-
self._CardType = CardType
|
|
13420
|
-
|
|
13421
|
-
@property
|
|
13422
|
-
def ValidDate(self):
|
|
13423
|
-
r"""<p>证件有效期限</p>
|
|
13424
|
-
:rtype: str
|
|
13425
|
-
"""
|
|
13426
|
-
return self._ValidDate
|
|
13427
|
-
|
|
13428
|
-
@ValidDate.setter
|
|
13429
|
-
def ValidDate(self, ValidDate):
|
|
13430
|
-
self._ValidDate = ValidDate
|
|
13431
|
-
|
|
13432
|
-
@property
|
|
13433
|
-
def Authority(self):
|
|
13434
|
-
r"""<p>签发机关</p>
|
|
13435
|
-
:rtype: str
|
|
13436
|
-
"""
|
|
13437
|
-
return self._Authority
|
|
13438
|
-
|
|
13439
|
-
@Authority.setter
|
|
13440
|
-
def Authority(self, Authority):
|
|
13441
|
-
self._Authority = Authority
|
|
13442
|
-
|
|
13443
|
-
@property
|
|
13444
|
-
def VisaNum(self):
|
|
13445
|
-
r"""<p>签发次数</p>
|
|
13446
|
-
:rtype: str
|
|
13447
|
-
"""
|
|
13448
|
-
return self._VisaNum
|
|
13449
|
-
|
|
13450
|
-
@VisaNum.setter
|
|
13451
|
-
def VisaNum(self, VisaNum):
|
|
13452
|
-
self._VisaNum = VisaNum
|
|
13453
|
-
|
|
13454
|
-
@property
|
|
13455
|
-
def PassNo(self):
|
|
13456
|
-
r"""<p>通行证号码</p>
|
|
13457
|
-
:rtype: str
|
|
13458
|
-
"""
|
|
13459
|
-
return self._PassNo
|
|
13460
|
-
|
|
13461
|
-
@PassNo.setter
|
|
13462
|
-
def PassNo(self, PassNo):
|
|
13463
|
-
self._PassNo = PassNo
|
|
13464
|
-
|
|
13465
|
-
@property
|
|
13466
|
-
def PortraitImageInfo(self):
|
|
13467
|
-
r"""<p>头像和坐标信息</p>
|
|
13468
|
-
:rtype: :class:`tencentcloud.ocr.v20181119.models.PortraitImageInfo`
|
|
13469
|
-
"""
|
|
13470
|
-
return self._PortraitImageInfo
|
|
13471
|
-
|
|
13472
|
-
@PortraitImageInfo.setter
|
|
13473
|
-
def PortraitImageInfo(self, PortraitImageInfo):
|
|
13474
|
-
self._PortraitImageInfo = PortraitImageInfo
|
|
13475
|
-
|
|
13476
|
-
@property
|
|
13477
|
-
def RequestId(self):
|
|
13478
|
-
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
13479
|
-
:rtype: str
|
|
13480
|
-
"""
|
|
13481
|
-
return self._RequestId
|
|
13482
|
-
|
|
13483
|
-
@RequestId.setter
|
|
13484
|
-
def RequestId(self, RequestId):
|
|
13485
|
-
self._RequestId = RequestId
|
|
13486
|
-
|
|
13487
|
-
|
|
13488
|
-
def _deserialize(self, params):
|
|
13489
|
-
self._Name = params.get("Name")
|
|
13490
|
-
self._Sex = params.get("Sex")
|
|
13491
|
-
self._Birth = params.get("Birth")
|
|
13492
|
-
self._Address = params.get("Address")
|
|
13493
|
-
self._IdCardNo = params.get("IdCardNo")
|
|
13494
|
-
self._CardType = params.get("CardType")
|
|
13495
|
-
self._ValidDate = params.get("ValidDate")
|
|
13496
|
-
self._Authority = params.get("Authority")
|
|
13497
|
-
self._VisaNum = params.get("VisaNum")
|
|
13498
|
-
self._PassNo = params.get("PassNo")
|
|
13499
|
-
if params.get("PortraitImageInfo") is not None:
|
|
13500
|
-
self._PortraitImageInfo = PortraitImageInfo()
|
|
13501
|
-
self._PortraitImageInfo._deserialize(params.get("PortraitImageInfo"))
|
|
13502
|
-
self._RequestId = params.get("RequestId")
|
|
13503
|
-
|
|
13504
|
-
|
|
13505
13229
|
class IDCardConfig(AbstractModel):
|
|
13506
13230
|
r"""身份证配置信息
|
|
13507
13231
|
|
|
@@ -25710,30 +25434,24 @@ class RecognizeMedicalInvoiceOCRResponse(AbstractModel):
|
|
|
25710
25434
|
self._RequestId = params.get("RequestId")
|
|
25711
25435
|
|
|
25712
25436
|
|
|
25713
|
-
class
|
|
25714
|
-
r"""
|
|
25437
|
+
class RecognizeStoreNameRequest(AbstractModel):
|
|
25438
|
+
r"""RecognizeStoreName请求参数结构体
|
|
25715
25439
|
|
|
25716
25440
|
"""
|
|
25717
25441
|
|
|
25718
25442
|
def __init__(self):
|
|
25719
25443
|
r"""
|
|
25720
|
-
:param _ImageBase64: 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3
|
|
25444
|
+
:param _ImageBase64: 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
25721
25445
|
:type ImageBase64: str
|
|
25722
|
-
:param _ImageUrl: 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3
|
|
25446
|
+
:param _ImageUrl: 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
25723
25447
|
: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
25448
|
"""
|
|
25729
25449
|
self._ImageBase64 = None
|
|
25730
25450
|
self._ImageUrl = None
|
|
25731
|
-
self._IsPdf = None
|
|
25732
|
-
self._PdfPageNumber = None
|
|
25733
25451
|
|
|
25734
25452
|
@property
|
|
25735
25453
|
def ImageBase64(self):
|
|
25736
|
-
r"""图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3
|
|
25454
|
+
r"""图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
25737
25455
|
:rtype: str
|
|
25738
25456
|
"""
|
|
25739
25457
|
return self._ImageBase64
|
|
@@ -25744,130 +25462,7 @@ class RecognizeOnlineTaxiItineraryOCRRequest(AbstractModel):
|
|
|
25744
25462
|
|
|
25745
25463
|
@property
|
|
25746
25464
|
def ImageUrl(self):
|
|
25747
|
-
r"""图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3
|
|
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
|
-
class RecognizeStoreNameRequest(AbstractModel):
|
|
25843
|
-
r"""RecognizeStoreName请求参数结构体
|
|
25844
|
-
|
|
25845
|
-
"""
|
|
25846
|
-
|
|
25847
|
-
def __init__(self):
|
|
25848
|
-
r"""
|
|
25849
|
-
:param _ImageBase64: 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
25850
|
-
:type ImageBase64: str
|
|
25851
|
-
:param _ImageUrl: 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
25852
|
-
:type ImageUrl: str
|
|
25853
|
-
"""
|
|
25854
|
-
self._ImageBase64 = None
|
|
25855
|
-
self._ImageUrl = None
|
|
25856
|
-
|
|
25857
|
-
@property
|
|
25858
|
-
def ImageBase64(self):
|
|
25859
|
-
r"""图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
25860
|
-
:rtype: str
|
|
25861
|
-
"""
|
|
25862
|
-
return self._ImageBase64
|
|
25863
|
-
|
|
25864
|
-
@ImageBase64.setter
|
|
25865
|
-
def ImageBase64(self, ImageBase64):
|
|
25866
|
-
self._ImageBase64 = ImageBase64
|
|
25867
|
-
|
|
25868
|
-
@property
|
|
25869
|
-
def ImageUrl(self):
|
|
25870
|
-
r"""图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
25465
|
+
r"""图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
25871
25466
|
:rtype: str
|
|
25872
25467
|
"""
|
|
25873
25468
|
return self._ImageUrl
|
|
@@ -32058,299 +31653,6 @@ class TaxPayment(AbstractModel):
|
|
|
32058
31653
|
|
|
32059
31654
|
|
|
32060
31655
|
|
|
32061
|
-
class TaxiInvoiceOCRRequest(AbstractModel):
|
|
32062
|
-
r"""TaxiInvoiceOCR请求参数结构体
|
|
32063
|
-
|
|
32064
|
-
"""
|
|
32065
|
-
|
|
32066
|
-
def __init__(self):
|
|
32067
|
-
r"""
|
|
32068
|
-
:param _ImageBase64: 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
32069
|
-
:type ImageBase64: str
|
|
32070
|
-
:param _ImageUrl: 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
32071
|
-
:type ImageUrl: str
|
|
32072
|
-
:param _IsPdf: 是否开启PDF识别,默认值为true,开启后可同时支持图片和PDF的识别。
|
|
32073
|
-
:type IsPdf: bool
|
|
32074
|
-
:param _PdfPageNumber: 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
|
|
32075
|
-
:type PdfPageNumber: int
|
|
32076
|
-
"""
|
|
32077
|
-
self._ImageBase64 = None
|
|
32078
|
-
self._ImageUrl = None
|
|
32079
|
-
self._IsPdf = None
|
|
32080
|
-
self._PdfPageNumber = None
|
|
32081
|
-
|
|
32082
|
-
@property
|
|
32083
|
-
def ImageBase64(self):
|
|
32084
|
-
r"""图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
32085
|
-
:rtype: str
|
|
32086
|
-
"""
|
|
32087
|
-
return self._ImageBase64
|
|
32088
|
-
|
|
32089
|
-
@ImageBase64.setter
|
|
32090
|
-
def ImageBase64(self, ImageBase64):
|
|
32091
|
-
self._ImageBase64 = ImageBase64
|
|
32092
|
-
|
|
32093
|
-
@property
|
|
32094
|
-
def ImageUrl(self):
|
|
32095
|
-
r"""图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
32096
|
-
:rtype: str
|
|
32097
|
-
"""
|
|
32098
|
-
return self._ImageUrl
|
|
32099
|
-
|
|
32100
|
-
@ImageUrl.setter
|
|
32101
|
-
def ImageUrl(self, ImageUrl):
|
|
32102
|
-
self._ImageUrl = ImageUrl
|
|
32103
|
-
|
|
32104
|
-
@property
|
|
32105
|
-
def IsPdf(self):
|
|
32106
|
-
r"""是否开启PDF识别,默认值为true,开启后可同时支持图片和PDF的识别。
|
|
32107
|
-
:rtype: bool
|
|
32108
|
-
"""
|
|
32109
|
-
return self._IsPdf
|
|
32110
|
-
|
|
32111
|
-
@IsPdf.setter
|
|
32112
|
-
def IsPdf(self, IsPdf):
|
|
32113
|
-
self._IsPdf = IsPdf
|
|
32114
|
-
|
|
32115
|
-
@property
|
|
32116
|
-
def PdfPageNumber(self):
|
|
32117
|
-
r"""需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
|
|
32118
|
-
:rtype: int
|
|
32119
|
-
"""
|
|
32120
|
-
return self._PdfPageNumber
|
|
32121
|
-
|
|
32122
|
-
@PdfPageNumber.setter
|
|
32123
|
-
def PdfPageNumber(self, PdfPageNumber):
|
|
32124
|
-
self._PdfPageNumber = PdfPageNumber
|
|
32125
|
-
|
|
32126
|
-
|
|
32127
|
-
def _deserialize(self, params):
|
|
32128
|
-
self._ImageBase64 = params.get("ImageBase64")
|
|
32129
|
-
self._ImageUrl = params.get("ImageUrl")
|
|
32130
|
-
self._IsPdf = params.get("IsPdf")
|
|
32131
|
-
self._PdfPageNumber = params.get("PdfPageNumber")
|
|
32132
|
-
memeber_set = set(params.keys())
|
|
32133
|
-
for name, value in vars(self).items():
|
|
32134
|
-
property_name = name[1:]
|
|
32135
|
-
if property_name in memeber_set:
|
|
32136
|
-
memeber_set.remove(property_name)
|
|
32137
|
-
if len(memeber_set) > 0:
|
|
32138
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
32139
|
-
|
|
32140
|
-
|
|
32141
|
-
|
|
32142
|
-
class TaxiInvoiceOCRResponse(AbstractModel):
|
|
32143
|
-
r"""TaxiInvoiceOCR返回参数结构体
|
|
32144
|
-
|
|
32145
|
-
"""
|
|
32146
|
-
|
|
32147
|
-
def __init__(self):
|
|
32148
|
-
r"""
|
|
32149
|
-
:param _InvoiceNum: 发票号码
|
|
32150
|
-
:type InvoiceNum: str
|
|
32151
|
-
:param _InvoiceCode: 发票代码
|
|
32152
|
-
:type InvoiceCode: str
|
|
32153
|
-
:param _Date: 日期
|
|
32154
|
-
:type Date: str
|
|
32155
|
-
:param _Fare: 金额
|
|
32156
|
-
:type Fare: str
|
|
32157
|
-
:param _GetOnTime: 上车时间
|
|
32158
|
-
:type GetOnTime: str
|
|
32159
|
-
:param _GetOffTime: 下车时间
|
|
32160
|
-
:type GetOffTime: str
|
|
32161
|
-
:param _Distance: 里程
|
|
32162
|
-
:type Distance: str
|
|
32163
|
-
:param _Location: 发票所在地
|
|
32164
|
-
:type Location: str
|
|
32165
|
-
:param _PlateNumber: 车牌号
|
|
32166
|
-
:type PlateNumber: str
|
|
32167
|
-
:param _InvoiceType: 发票消费类型
|
|
32168
|
-
:type InvoiceType: str
|
|
32169
|
-
:param _Province: 省
|
|
32170
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
32171
|
-
:type Province: str
|
|
32172
|
-
:param _City: 市
|
|
32173
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
32174
|
-
:type City: str
|
|
32175
|
-
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
32176
|
-
:type RequestId: str
|
|
32177
|
-
"""
|
|
32178
|
-
self._InvoiceNum = None
|
|
32179
|
-
self._InvoiceCode = None
|
|
32180
|
-
self._Date = None
|
|
32181
|
-
self._Fare = None
|
|
32182
|
-
self._GetOnTime = None
|
|
32183
|
-
self._GetOffTime = None
|
|
32184
|
-
self._Distance = None
|
|
32185
|
-
self._Location = None
|
|
32186
|
-
self._PlateNumber = None
|
|
32187
|
-
self._InvoiceType = None
|
|
32188
|
-
self._Province = None
|
|
32189
|
-
self._City = None
|
|
32190
|
-
self._RequestId = None
|
|
32191
|
-
|
|
32192
|
-
@property
|
|
32193
|
-
def InvoiceNum(self):
|
|
32194
|
-
r"""发票号码
|
|
32195
|
-
:rtype: str
|
|
32196
|
-
"""
|
|
32197
|
-
return self._InvoiceNum
|
|
32198
|
-
|
|
32199
|
-
@InvoiceNum.setter
|
|
32200
|
-
def InvoiceNum(self, InvoiceNum):
|
|
32201
|
-
self._InvoiceNum = InvoiceNum
|
|
32202
|
-
|
|
32203
|
-
@property
|
|
32204
|
-
def InvoiceCode(self):
|
|
32205
|
-
r"""发票代码
|
|
32206
|
-
:rtype: str
|
|
32207
|
-
"""
|
|
32208
|
-
return self._InvoiceCode
|
|
32209
|
-
|
|
32210
|
-
@InvoiceCode.setter
|
|
32211
|
-
def InvoiceCode(self, InvoiceCode):
|
|
32212
|
-
self._InvoiceCode = InvoiceCode
|
|
32213
|
-
|
|
32214
|
-
@property
|
|
32215
|
-
def Date(self):
|
|
32216
|
-
r"""日期
|
|
32217
|
-
:rtype: str
|
|
32218
|
-
"""
|
|
32219
|
-
return self._Date
|
|
32220
|
-
|
|
32221
|
-
@Date.setter
|
|
32222
|
-
def Date(self, Date):
|
|
32223
|
-
self._Date = Date
|
|
32224
|
-
|
|
32225
|
-
@property
|
|
32226
|
-
def Fare(self):
|
|
32227
|
-
r"""金额
|
|
32228
|
-
:rtype: str
|
|
32229
|
-
"""
|
|
32230
|
-
return self._Fare
|
|
32231
|
-
|
|
32232
|
-
@Fare.setter
|
|
32233
|
-
def Fare(self, Fare):
|
|
32234
|
-
self._Fare = Fare
|
|
32235
|
-
|
|
32236
|
-
@property
|
|
32237
|
-
def GetOnTime(self):
|
|
32238
|
-
r"""上车时间
|
|
32239
|
-
:rtype: str
|
|
32240
|
-
"""
|
|
32241
|
-
return self._GetOnTime
|
|
32242
|
-
|
|
32243
|
-
@GetOnTime.setter
|
|
32244
|
-
def GetOnTime(self, GetOnTime):
|
|
32245
|
-
self._GetOnTime = GetOnTime
|
|
32246
|
-
|
|
32247
|
-
@property
|
|
32248
|
-
def GetOffTime(self):
|
|
32249
|
-
r"""下车时间
|
|
32250
|
-
:rtype: str
|
|
32251
|
-
"""
|
|
32252
|
-
return self._GetOffTime
|
|
32253
|
-
|
|
32254
|
-
@GetOffTime.setter
|
|
32255
|
-
def GetOffTime(self, GetOffTime):
|
|
32256
|
-
self._GetOffTime = GetOffTime
|
|
32257
|
-
|
|
32258
|
-
@property
|
|
32259
|
-
def Distance(self):
|
|
32260
|
-
r"""里程
|
|
32261
|
-
:rtype: str
|
|
32262
|
-
"""
|
|
32263
|
-
return self._Distance
|
|
32264
|
-
|
|
32265
|
-
@Distance.setter
|
|
32266
|
-
def Distance(self, Distance):
|
|
32267
|
-
self._Distance = Distance
|
|
32268
|
-
|
|
32269
|
-
@property
|
|
32270
|
-
def Location(self):
|
|
32271
|
-
r"""发票所在地
|
|
32272
|
-
:rtype: str
|
|
32273
|
-
"""
|
|
32274
|
-
return self._Location
|
|
32275
|
-
|
|
32276
|
-
@Location.setter
|
|
32277
|
-
def Location(self, Location):
|
|
32278
|
-
self._Location = Location
|
|
32279
|
-
|
|
32280
|
-
@property
|
|
32281
|
-
def PlateNumber(self):
|
|
32282
|
-
r"""车牌号
|
|
32283
|
-
:rtype: str
|
|
32284
|
-
"""
|
|
32285
|
-
return self._PlateNumber
|
|
32286
|
-
|
|
32287
|
-
@PlateNumber.setter
|
|
32288
|
-
def PlateNumber(self, PlateNumber):
|
|
32289
|
-
self._PlateNumber = PlateNumber
|
|
32290
|
-
|
|
32291
|
-
@property
|
|
32292
|
-
def InvoiceType(self):
|
|
32293
|
-
r"""发票消费类型
|
|
32294
|
-
:rtype: str
|
|
32295
|
-
"""
|
|
32296
|
-
return self._InvoiceType
|
|
32297
|
-
|
|
32298
|
-
@InvoiceType.setter
|
|
32299
|
-
def InvoiceType(self, InvoiceType):
|
|
32300
|
-
self._InvoiceType = InvoiceType
|
|
32301
|
-
|
|
32302
|
-
@property
|
|
32303
|
-
def Province(self):
|
|
32304
|
-
r"""省
|
|
32305
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
32306
|
-
:rtype: str
|
|
32307
|
-
"""
|
|
32308
|
-
return self._Province
|
|
32309
|
-
|
|
32310
|
-
@Province.setter
|
|
32311
|
-
def Province(self, Province):
|
|
32312
|
-
self._Province = Province
|
|
32313
|
-
|
|
32314
|
-
@property
|
|
32315
|
-
def City(self):
|
|
32316
|
-
r"""市
|
|
32317
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
32318
|
-
:rtype: str
|
|
32319
|
-
"""
|
|
32320
|
-
return self._City
|
|
32321
|
-
|
|
32322
|
-
@City.setter
|
|
32323
|
-
def City(self, City):
|
|
32324
|
-
self._City = City
|
|
32325
|
-
|
|
32326
|
-
@property
|
|
32327
|
-
def RequestId(self):
|
|
32328
|
-
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
32329
|
-
:rtype: str
|
|
32330
|
-
"""
|
|
32331
|
-
return self._RequestId
|
|
32332
|
-
|
|
32333
|
-
@RequestId.setter
|
|
32334
|
-
def RequestId(self, RequestId):
|
|
32335
|
-
self._RequestId = RequestId
|
|
32336
|
-
|
|
32337
|
-
|
|
32338
|
-
def _deserialize(self, params):
|
|
32339
|
-
self._InvoiceNum = params.get("InvoiceNum")
|
|
32340
|
-
self._InvoiceCode = params.get("InvoiceCode")
|
|
32341
|
-
self._Date = params.get("Date")
|
|
32342
|
-
self._Fare = params.get("Fare")
|
|
32343
|
-
self._GetOnTime = params.get("GetOnTime")
|
|
32344
|
-
self._GetOffTime = params.get("GetOffTime")
|
|
32345
|
-
self._Distance = params.get("Distance")
|
|
32346
|
-
self._Location = params.get("Location")
|
|
32347
|
-
self._PlateNumber = params.get("PlateNumber")
|
|
32348
|
-
self._InvoiceType = params.get("InvoiceType")
|
|
32349
|
-
self._Province = params.get("Province")
|
|
32350
|
-
self._City = params.get("City")
|
|
32351
|
-
self._RequestId = params.get("RequestId")
|
|
32352
|
-
|
|
32353
|
-
|
|
32354
31656
|
class TaxiTicket(AbstractModel):
|
|
32355
31657
|
r"""出租车发票
|
|
32356
31658
|
|
|
@@ -999,31 +999,6 @@ class OcrClient(AbstractClient):
|
|
|
999
999
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1000
1000
|
|
|
1001
1001
|
|
|
1002
|
-
def HmtResidentPermitOCR(self, request):
|
|
1003
|
-
r"""港澳台居住证OCR支持港澳台居住证正反面全字段内容检测识别功能,包括姓名、性别、出生日期、地址、身份证号、签发机关、有效期限、签发次数、通行证号码关键字段识别。可以应用于港澳台居住证信息识别场景,例如银行开户、用户注册等。
|
|
1004
|
-
|
|
1005
|
-
默认接口请求频率限制:20次/秒。
|
|
1006
|
-
|
|
1007
|
-
:param request: Request instance for HmtResidentPermitOCR.
|
|
1008
|
-
:type request: :class:`tencentcloud.ocr.v20181119.models.HmtResidentPermitOCRRequest`
|
|
1009
|
-
:rtype: :class:`tencentcloud.ocr.v20181119.models.HmtResidentPermitOCRResponse`
|
|
1010
|
-
|
|
1011
|
-
"""
|
|
1012
|
-
try:
|
|
1013
|
-
params = request._serialize()
|
|
1014
|
-
headers = request.headers
|
|
1015
|
-
body = self.call("HmtResidentPermitOCR", params, headers=headers)
|
|
1016
|
-
response = json.loads(body)
|
|
1017
|
-
model = models.HmtResidentPermitOCRResponse()
|
|
1018
|
-
model._deserialize(response["Response"])
|
|
1019
|
-
return model
|
|
1020
|
-
except Exception as e:
|
|
1021
|
-
if isinstance(e, TencentCloudSDKException):
|
|
1022
|
-
raise
|
|
1023
|
-
else:
|
|
1024
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
1002
|
def IDCardOCR(self, request):
|
|
1028
1003
|
r"""本接口支持中国大陆居民二代身份证正反面所有字段的识别,包括姓名、性别、民族、出生日期、住址、公民身份证号、签发机关、有效期限,识别准确度达到99%以上。
|
|
1029
1004
|
|
|
@@ -1907,31 +1882,6 @@ class OcrClient(AbstractClient):
|
|
|
1907
1882
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1908
1883
|
|
|
1909
1884
|
|
|
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
1885
|
def RecognizeStoreName(self, request):
|
|
1936
1886
|
r"""本接口用于识别门头照文字识别结果以及对应分类标签信息
|
|
1937
1887
|
默认接口请求频率限制:1次/秒
|
|
@@ -2311,31 +2261,6 @@ class OcrClient(AbstractClient):
|
|
|
2311
2261
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2312
2262
|
|
|
2313
2263
|
|
|
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
2264
|
def TextDetect(self, request):
|
|
2340
2265
|
r"""本接口通过检测图片中的文字信息特征,快速判断图片中有无文字并返回判断结果,帮助用户过滤无文字的图片。
|
|
2341
2266
|
|
|
@@ -838,26 +838,6 @@ class OcrClient(AbstractClient):
|
|
|
838
838
|
|
|
839
839
|
return await self.call_and_deserialize(**kwargs)
|
|
840
840
|
|
|
841
|
-
async def HmtResidentPermitOCR(
|
|
842
|
-
self,
|
|
843
|
-
request: models.HmtResidentPermitOCRRequest,
|
|
844
|
-
opts: Dict = None,
|
|
845
|
-
) -> models.HmtResidentPermitOCRResponse:
|
|
846
|
-
"""
|
|
847
|
-
港澳台居住证OCR支持港澳台居住证正反面全字段内容检测识别功能,包括姓名、性别、出生日期、地址、身份证号、签发机关、有效期限、签发次数、通行证号码关键字段识别。可以应用于港澳台居住证信息识别场景,例如银行开户、用户注册等。
|
|
848
|
-
|
|
849
|
-
默认接口请求频率限制:20次/秒。
|
|
850
|
-
"""
|
|
851
|
-
|
|
852
|
-
kwargs = {}
|
|
853
|
-
kwargs["action"] = "HmtResidentPermitOCR"
|
|
854
|
-
kwargs["params"] = request._serialize()
|
|
855
|
-
kwargs["resp_cls"] = models.HmtResidentPermitOCRResponse
|
|
856
|
-
kwargs["headers"] = request.headers
|
|
857
|
-
kwargs["opts"] = opts or {}
|
|
858
|
-
|
|
859
|
-
return await self.call_and_deserialize(**kwargs)
|
|
860
|
-
|
|
861
841
|
async def IDCardOCR(
|
|
862
842
|
self,
|
|
863
843
|
request: models.IDCardOCRRequest,
|
|
@@ -1626,26 +1606,6 @@ class OcrClient(AbstractClient):
|
|
|
1626
1606
|
|
|
1627
1607
|
return await self.call_and_deserialize(**kwargs)
|
|
1628
1608
|
|
|
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
1609
|
async def RecognizeStoreName(
|
|
1650
1610
|
self,
|
|
1651
1611
|
request: models.RecognizeStoreNameRequest,
|
|
@@ -1950,26 +1910,6 @@ class OcrClient(AbstractClient):
|
|
|
1950
1910
|
|
|
1951
1911
|
return await self.call_and_deserialize(**kwargs)
|
|
1952
1912
|
|
|
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
1913
|
async def TextDetect(
|
|
1974
1914
|
self,
|
|
1975
1915
|
request: models.TextDetectRequest,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-ocr
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.111
|
|
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.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common <4.0.0,>=3.1.111
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
tencentcloud/__init__.py,sha256=8Mi6mlHb_JvvaaKyY-qEulG_wIozFGgC1GeviGRAz70,630
|
|
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=JIZv0T7mSsIMfQKdQjHDSsF8oW-b9rJTZovBM5qM9xU,7187
|
|
5
|
+
tencentcloud/ocr/v20181119/models.py,sha256=mX7O43gBg5tKOtGMCgjlghx-3CanNypbtODYFJedA8I,1383004
|
|
6
|
+
tencentcloud/ocr/v20181119/ocr_client.py,sha256=xEW5nrPuxaL9egKZ27ygbU2NAhPPs7n-rqrsva0P0oA,118985
|
|
7
|
+
tencentcloud/ocr/v20181119/ocr_client_async.py,sha256=gGoyNah1hoKeEl5-Hxb8mb7Qbh7dsk0F8o9JUm1U_IY,94693
|
|
8
|
+
tencentcloud_sdk_python_ocr-3.1.111.dist-info/METADATA,sha256=qi94N_GGkwZmzypA4QPq0NoyZMMyH-9nWLV2GksRhxQ,1497
|
|
9
|
+
tencentcloud_sdk_python_ocr-3.1.111.dist-info/WHEEL,sha256=a5ogxI61vGGBHYbAAwISCXsfU7mxKr76gTpCEmSNOI8,109
|
|
10
|
+
tencentcloud_sdk_python_ocr-3.1.111.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
11
|
+
tencentcloud_sdk_python_ocr-3.1.111.dist-info/RECORD,,
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
tencentcloud/__init__.py,sha256=8sEMwyH8YxNlbBaPJjgIfhRq1n4Wko30VHbq7n4fHgg,629
|
|
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=tEfs2ziF9fJ0EHVGEECkyVBT5OfMy98yBpkI6-Yyiss,7272
|
|
5
|
-
tencentcloud/ocr/v20181119/models.py,sha256=yGSEi4g3R3GFeXin8G8S5BIZSY_pC8vc4O-b5nIiBu8,1407097
|
|
6
|
-
tencentcloud/ocr/v20181119/ocr_client.py,sha256=okdO9wudb6nnl5vtp4spyHbqS22Igfl4V8ZXr3N5I1Y,122446
|
|
7
|
-
tencentcloud/ocr/v20181119/ocr_client_async.py,sha256=Zf1iCDmF-rNyrGRAaVvbVZZIZgp5G5UzJbfV6VtQv-M,97243
|
|
8
|
-
tencentcloud_sdk_python_ocr-3.1.97.dist-info/METADATA,sha256=rQ_to1D6Bjf-8H4NYeVC7qQgusqb69EmPMOlupr39IM,1495
|
|
9
|
-
tencentcloud_sdk_python_ocr-3.1.97.dist-info/WHEEL,sha256=a5ogxI61vGGBHYbAAwISCXsfU7mxKr76gTpCEmSNOI8,109
|
|
10
|
-
tencentcloud_sdk_python_ocr-3.1.97.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
11
|
-
tencentcloud_sdk_python_ocr-3.1.97.dist-info/RECORD,,
|
{tencentcloud_sdk_python_ocr-3.1.97.dist-info → tencentcloud_sdk_python_ocr-3.1.111.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|