tencentcloud-sdk-ocr 1.0.328 → 1.0.331
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.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20181119/client.rb +72 -0
- data/lib/v20181119/models.rb +386 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e1a6e9b714f9d591e2062130e758bcd835b2e19
|
4
|
+
data.tar.gz: 1806e009c6adff8b1abcd0c37ee4205780473849
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18cf9d8240cdf5e3f25ae7e045084cbc93d55153bf88edb4a89562ad067ff2acc0eb16bd6acc4b292acfc6cfbb59d58f26afe77a17b3cbdceb806258313ff72f
|
7
|
+
data.tar.gz: b7f6c77f51774f73f7e787543b955c6b13ada30da3eb38f5593406f991d46a56b93c90643ac02718d623dc04344b02c4c9ee75316a48d2efc454d9ea95c4c54f
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.331
|
data/lib/v20181119/client.rb
CHANGED
@@ -1352,6 +1352,30 @@ module TencentCloud
|
|
1352
1352
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1353
1353
|
end
|
1354
1354
|
|
1355
|
+
# 印尼身份证识别
|
1356
|
+
|
1357
|
+
# @param request: Request instance for RecognizeIndonesiaIDCardOCR.
|
1358
|
+
# @type request: :class:`Tencentcloud::ocr::V20181119::RecognizeIndonesiaIDCardOCRRequest`
|
1359
|
+
# @rtype: :class:`Tencentcloud::ocr::V20181119::RecognizeIndonesiaIDCardOCRResponse`
|
1360
|
+
def RecognizeIndonesiaIDCardOCR(request)
|
1361
|
+
body = send_request('RecognizeIndonesiaIDCardOCR', request.serialize)
|
1362
|
+
response = JSON.parse(body)
|
1363
|
+
if response['Response'].key?('Error') == false
|
1364
|
+
model = RecognizeIndonesiaIDCardOCRResponse.new
|
1365
|
+
model.deserialize(response['Response'])
|
1366
|
+
model
|
1367
|
+
else
|
1368
|
+
code = response['Response']['Error']['Code']
|
1369
|
+
message = response['Response']['Error']['Message']
|
1370
|
+
reqid = response['Response']['RequestId']
|
1371
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1372
|
+
end
|
1373
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1374
|
+
raise e
|
1375
|
+
rescue StandardError => e
|
1376
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1377
|
+
end
|
1378
|
+
|
1355
1379
|
# 本接口支持网约车行程单关键字段的识别,包括行程起止日期、上车时间、起点、终点、里程、金额等字段。
|
1356
1380
|
|
1357
1381
|
# @param request: Request instance for RecognizeOnlineTaxiItineraryOCR.
|
@@ -1376,6 +1400,54 @@ module TencentCloud
|
|
1376
1400
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1377
1401
|
end
|
1378
1402
|
|
1403
|
+
# 菲律宾驾驶证识别
|
1404
|
+
|
1405
|
+
# @param request: Request instance for RecognizePhilippinesDrivingLicenseOCR.
|
1406
|
+
# @type request: :class:`Tencentcloud::ocr::V20181119::RecognizePhilippinesDrivingLicenseOCRRequest`
|
1407
|
+
# @rtype: :class:`Tencentcloud::ocr::V20181119::RecognizePhilippinesDrivingLicenseOCRResponse`
|
1408
|
+
def RecognizePhilippinesDrivingLicenseOCR(request)
|
1409
|
+
body = send_request('RecognizePhilippinesDrivingLicenseOCR', request.serialize)
|
1410
|
+
response = JSON.parse(body)
|
1411
|
+
if response['Response'].key?('Error') == false
|
1412
|
+
model = RecognizePhilippinesDrivingLicenseOCRResponse.new
|
1413
|
+
model.deserialize(response['Response'])
|
1414
|
+
model
|
1415
|
+
else
|
1416
|
+
code = response['Response']['Error']['Code']
|
1417
|
+
message = response['Response']['Error']['Message']
|
1418
|
+
reqid = response['Response']['RequestId']
|
1419
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1420
|
+
end
|
1421
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1422
|
+
raise e
|
1423
|
+
rescue StandardError => e
|
1424
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1425
|
+
end
|
1426
|
+
|
1427
|
+
# 菲律宾VoteID识别
|
1428
|
+
|
1429
|
+
# @param request: Request instance for RecognizePhilippinesVoteIDOCR.
|
1430
|
+
# @type request: :class:`Tencentcloud::ocr::V20181119::RecognizePhilippinesVoteIDOCRRequest`
|
1431
|
+
# @rtype: :class:`Tencentcloud::ocr::V20181119::RecognizePhilippinesVoteIDOCRResponse`
|
1432
|
+
def RecognizePhilippinesVoteIDOCR(request)
|
1433
|
+
body = send_request('RecognizePhilippinesVoteIDOCR', request.serialize)
|
1434
|
+
response = JSON.parse(body)
|
1435
|
+
if response['Response'].key?('Error') == false
|
1436
|
+
model = RecognizePhilippinesVoteIDOCRResponse.new
|
1437
|
+
model.deserialize(response['Response'])
|
1438
|
+
model
|
1439
|
+
else
|
1440
|
+
code = response['Response']['Error']['Code']
|
1441
|
+
message = response['Response']['Error']['Message']
|
1442
|
+
reqid = response['Response']['RequestId']
|
1443
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1444
|
+
end
|
1445
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1446
|
+
raise e
|
1447
|
+
rescue StandardError => e
|
1448
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1449
|
+
end
|
1450
|
+
|
1379
1451
|
# 本接口支持中英文图片/ PDF内常规表格、无线表格、多表格的检测和识别,支持日文有线表格识别,返回每个单元格的文字内容,支持旋转的表格图片识别,且支持将识别结果保存为 Excel 格式。
|
1380
1452
|
|
1381
1453
|
# @param request: Request instance for RecognizeTableOCR.
|
data/lib/v20181119/models.rb
CHANGED
@@ -4373,6 +4373,124 @@ module TencentCloud
|
|
4373
4373
|
end
|
4374
4374
|
end
|
4375
4375
|
|
4376
|
+
# RecognizeIndonesiaIDCardOCR请求参数结构体
|
4377
|
+
class RecognizeIndonesiaIDCardOCRRequest < TencentCloud::Common::AbstractModel
|
4378
|
+
# @param ImageBase64: 图片的 Base64 值。
|
4379
|
+
# 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
4380
|
+
# 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
4381
|
+
# 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
4382
|
+
# @type ImageBase64: String
|
4383
|
+
# @param ImageUrl: 图片的 Url 地址。
|
4384
|
+
# 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
4385
|
+
# 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
|
4386
|
+
# 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
4387
|
+
# 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
4388
|
+
# @type ImageUrl: String
|
4389
|
+
# @param ReturnHeadImage: 是否返回人像照片。
|
4390
|
+
# @type ReturnHeadImage: Boolean
|
4391
|
+
# @param Scene: 场景参数,默认值为V1
|
4392
|
+
# 可选值:
|
4393
|
+
# V1
|
4394
|
+
# V2
|
4395
|
+
# @type Scene: String
|
4396
|
+
|
4397
|
+
attr_accessor :ImageBase64, :ImageUrl, :ReturnHeadImage, :Scene
|
4398
|
+
|
4399
|
+
def initialize(imagebase64=nil, imageurl=nil, returnheadimage=nil, scene=nil)
|
4400
|
+
@ImageBase64 = imagebase64
|
4401
|
+
@ImageUrl = imageurl
|
4402
|
+
@ReturnHeadImage = returnheadimage
|
4403
|
+
@Scene = scene
|
4404
|
+
end
|
4405
|
+
|
4406
|
+
def deserialize(params)
|
4407
|
+
@ImageBase64 = params['ImageBase64']
|
4408
|
+
@ImageUrl = params['ImageUrl']
|
4409
|
+
@ReturnHeadImage = params['ReturnHeadImage']
|
4410
|
+
@Scene = params['Scene']
|
4411
|
+
end
|
4412
|
+
end
|
4413
|
+
|
4414
|
+
# RecognizeIndonesiaIDCardOCR返回参数结构体
|
4415
|
+
class RecognizeIndonesiaIDCardOCRResponse < TencentCloud::Common::AbstractModel
|
4416
|
+
# @param NIK: 证件号码
|
4417
|
+
# @type NIK: String
|
4418
|
+
# @param Nama: 姓名
|
4419
|
+
# @type Nama: String
|
4420
|
+
# @param TempatTglLahir: 出生地/出生时间
|
4421
|
+
# @type TempatTglLahir: String
|
4422
|
+
# @param JenisKelamin: 性别
|
4423
|
+
# @type JenisKelamin: String
|
4424
|
+
# @param GolDarah: 血型
|
4425
|
+
# @type GolDarah: String
|
4426
|
+
# @param Alamat: 地址
|
4427
|
+
# @type Alamat: String
|
4428
|
+
# @param RTRW: 街道
|
4429
|
+
# @type RTRW: String
|
4430
|
+
# @param KelDesa: 村
|
4431
|
+
# @type KelDesa: String
|
4432
|
+
# @param Kecamatan: 地区
|
4433
|
+
# @type Kecamatan: String
|
4434
|
+
# @param Agama: 宗教信仰
|
4435
|
+
# @type Agama: String
|
4436
|
+
# @param StatusPerkawinan: 婚姻状况
|
4437
|
+
# @type StatusPerkawinan: String
|
4438
|
+
# @param Perkerjaan: 职业
|
4439
|
+
# @type Perkerjaan: String
|
4440
|
+
# @param KewargaNegaraan: 国籍
|
4441
|
+
# @type KewargaNegaraan: String
|
4442
|
+
# @param BerlakuHingga: 身份证有效期限
|
4443
|
+
# @type BerlakuHingga: String
|
4444
|
+
# @param IssuedDate: 发证日期
|
4445
|
+
# @type IssuedDate: String
|
4446
|
+
# @param Photo: 人像截图
|
4447
|
+
# @type Photo: String
|
4448
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
4449
|
+
# @type RequestId: String
|
4450
|
+
|
4451
|
+
attr_accessor :NIK, :Nama, :TempatTglLahir, :JenisKelamin, :GolDarah, :Alamat, :RTRW, :KelDesa, :Kecamatan, :Agama, :StatusPerkawinan, :Perkerjaan, :KewargaNegaraan, :BerlakuHingga, :IssuedDate, :Photo, :RequestId
|
4452
|
+
|
4453
|
+
def initialize(nik=nil, nama=nil, tempattgllahir=nil, jeniskelamin=nil, goldarah=nil, alamat=nil, rtrw=nil, keldesa=nil, kecamatan=nil, agama=nil, statusperkawinan=nil, perkerjaan=nil, kewarganegaraan=nil, berlakuhingga=nil, issueddate=nil, photo=nil, requestid=nil)
|
4454
|
+
@NIK = nik
|
4455
|
+
@Nama = nama
|
4456
|
+
@TempatTglLahir = tempattgllahir
|
4457
|
+
@JenisKelamin = jeniskelamin
|
4458
|
+
@GolDarah = goldarah
|
4459
|
+
@Alamat = alamat
|
4460
|
+
@RTRW = rtrw
|
4461
|
+
@KelDesa = keldesa
|
4462
|
+
@Kecamatan = kecamatan
|
4463
|
+
@Agama = agama
|
4464
|
+
@StatusPerkawinan = statusperkawinan
|
4465
|
+
@Perkerjaan = perkerjaan
|
4466
|
+
@KewargaNegaraan = kewarganegaraan
|
4467
|
+
@BerlakuHingga = berlakuhingga
|
4468
|
+
@IssuedDate = issueddate
|
4469
|
+
@Photo = photo
|
4470
|
+
@RequestId = requestid
|
4471
|
+
end
|
4472
|
+
|
4473
|
+
def deserialize(params)
|
4474
|
+
@NIK = params['NIK']
|
4475
|
+
@Nama = params['Nama']
|
4476
|
+
@TempatTglLahir = params['TempatTglLahir']
|
4477
|
+
@JenisKelamin = params['JenisKelamin']
|
4478
|
+
@GolDarah = params['GolDarah']
|
4479
|
+
@Alamat = params['Alamat']
|
4480
|
+
@RTRW = params['RTRW']
|
4481
|
+
@KelDesa = params['KelDesa']
|
4482
|
+
@Kecamatan = params['Kecamatan']
|
4483
|
+
@Agama = params['Agama']
|
4484
|
+
@StatusPerkawinan = params['StatusPerkawinan']
|
4485
|
+
@Perkerjaan = params['Perkerjaan']
|
4486
|
+
@KewargaNegaraan = params['KewargaNegaraan']
|
4487
|
+
@BerlakuHingga = params['BerlakuHingga']
|
4488
|
+
@IssuedDate = params['IssuedDate']
|
4489
|
+
@Photo = params['Photo']
|
4490
|
+
@RequestId = params['RequestId']
|
4491
|
+
end
|
4492
|
+
end
|
4493
|
+
|
4376
4494
|
# RecognizeOnlineTaxiItineraryOCR请求参数结构体
|
4377
4495
|
class RecognizeOnlineTaxiItineraryOCRRequest < TencentCloud::Common::AbstractModel
|
4378
4496
|
# @param ImageBase64: 图片的 Base64 值。
|
@@ -4435,6 +4553,247 @@ module TencentCloud
|
|
4435
4553
|
end
|
4436
4554
|
end
|
4437
4555
|
|
4556
|
+
# RecognizePhilippinesDrivingLicenseOCR请求参数结构体
|
4557
|
+
class RecognizePhilippinesDrivingLicenseOCRRequest < TencentCloud::Common::AbstractModel
|
4558
|
+
# @param ReturnHeadImage: 是否返回人像照片。
|
4559
|
+
# @type ReturnHeadImage: Boolean
|
4560
|
+
# @param ImageBase64: 图片的 Base64 值。
|
4561
|
+
# 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
4562
|
+
# 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
4563
|
+
# 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
4564
|
+
# @type ImageBase64: String
|
4565
|
+
# @param ImageUrl: 图片的 Url 地址。
|
4566
|
+
# 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
4567
|
+
# 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
|
4568
|
+
# 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
4569
|
+
# 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
4570
|
+
# @type ImageUrl: String
|
4571
|
+
|
4572
|
+
attr_accessor :ReturnHeadImage, :ImageBase64, :ImageUrl
|
4573
|
+
|
4574
|
+
def initialize(returnheadimage=nil, imagebase64=nil, imageurl=nil)
|
4575
|
+
@ReturnHeadImage = returnheadimage
|
4576
|
+
@ImageBase64 = imagebase64
|
4577
|
+
@ImageUrl = imageurl
|
4578
|
+
end
|
4579
|
+
|
4580
|
+
def deserialize(params)
|
4581
|
+
@ReturnHeadImage = params['ReturnHeadImage']
|
4582
|
+
@ImageBase64 = params['ImageBase64']
|
4583
|
+
@ImageUrl = params['ImageUrl']
|
4584
|
+
end
|
4585
|
+
end
|
4586
|
+
|
4587
|
+
# RecognizePhilippinesDrivingLicenseOCR返回参数结构体
|
4588
|
+
class RecognizePhilippinesDrivingLicenseOCRResponse < TencentCloud::Common::AbstractModel
|
4589
|
+
# @param HeadPortrait: 人像照片Base64后的结果
|
4590
|
+
# @type HeadPortrait: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
4591
|
+
# @param Name: 姓名
|
4592
|
+
# @type Name: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
4593
|
+
# @param LastName: 姓氏
|
4594
|
+
# @type LastName: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
4595
|
+
# @param FirstName: 首姓名
|
4596
|
+
# @type FirstName: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
4597
|
+
# @param MiddleName: 中间姓名
|
4598
|
+
# @type MiddleName: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
4599
|
+
# @param Nationality: 国籍
|
4600
|
+
# @type Nationality: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
4601
|
+
# @param Sex: 性别
|
4602
|
+
# @type Sex: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
4603
|
+
# @param Address: 地址
|
4604
|
+
# @type Address: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
4605
|
+
# @param LicenseNo: 证号
|
4606
|
+
# @type LicenseNo: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
4607
|
+
# @param ExpiresDate: 有效期
|
4608
|
+
# @type ExpiresDate: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
4609
|
+
# @param AgencyCode: 机构代码
|
4610
|
+
# @type AgencyCode: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
4611
|
+
# @param Birthday: 出生日期
|
4612
|
+
# @type Birthday: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
4613
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
4614
|
+
# @type RequestId: String
|
4615
|
+
|
4616
|
+
attr_accessor :HeadPortrait, :Name, :LastName, :FirstName, :MiddleName, :Nationality, :Sex, :Address, :LicenseNo, :ExpiresDate, :AgencyCode, :Birthday, :RequestId
|
4617
|
+
|
4618
|
+
def initialize(headportrait=nil, name=nil, lastname=nil, firstname=nil, middlename=nil, nationality=nil, sex=nil, address=nil, licenseno=nil, expiresdate=nil, agencycode=nil, birthday=nil, requestid=nil)
|
4619
|
+
@HeadPortrait = headportrait
|
4620
|
+
@Name = name
|
4621
|
+
@LastName = lastname
|
4622
|
+
@FirstName = firstname
|
4623
|
+
@MiddleName = middlename
|
4624
|
+
@Nationality = nationality
|
4625
|
+
@Sex = sex
|
4626
|
+
@Address = address
|
4627
|
+
@LicenseNo = licenseno
|
4628
|
+
@ExpiresDate = expiresdate
|
4629
|
+
@AgencyCode = agencycode
|
4630
|
+
@Birthday = birthday
|
4631
|
+
@RequestId = requestid
|
4632
|
+
end
|
4633
|
+
|
4634
|
+
def deserialize(params)
|
4635
|
+
unless params['HeadPortrait'].nil?
|
4636
|
+
@HeadPortrait = TextDetectionResult.new
|
4637
|
+
@HeadPortrait.deserialize(params['HeadPortrait'])
|
4638
|
+
end
|
4639
|
+
unless params['Name'].nil?
|
4640
|
+
@Name = TextDetectionResult.new
|
4641
|
+
@Name.deserialize(params['Name'])
|
4642
|
+
end
|
4643
|
+
unless params['LastName'].nil?
|
4644
|
+
@LastName = TextDetectionResult.new
|
4645
|
+
@LastName.deserialize(params['LastName'])
|
4646
|
+
end
|
4647
|
+
unless params['FirstName'].nil?
|
4648
|
+
@FirstName = TextDetectionResult.new
|
4649
|
+
@FirstName.deserialize(params['FirstName'])
|
4650
|
+
end
|
4651
|
+
unless params['MiddleName'].nil?
|
4652
|
+
@MiddleName = TextDetectionResult.new
|
4653
|
+
@MiddleName.deserialize(params['MiddleName'])
|
4654
|
+
end
|
4655
|
+
unless params['Nationality'].nil?
|
4656
|
+
@Nationality = TextDetectionResult.new
|
4657
|
+
@Nationality.deserialize(params['Nationality'])
|
4658
|
+
end
|
4659
|
+
unless params['Sex'].nil?
|
4660
|
+
@Sex = TextDetectionResult.new
|
4661
|
+
@Sex.deserialize(params['Sex'])
|
4662
|
+
end
|
4663
|
+
unless params['Address'].nil?
|
4664
|
+
@Address = TextDetectionResult.new
|
4665
|
+
@Address.deserialize(params['Address'])
|
4666
|
+
end
|
4667
|
+
unless params['LicenseNo'].nil?
|
4668
|
+
@LicenseNo = TextDetectionResult.new
|
4669
|
+
@LicenseNo.deserialize(params['LicenseNo'])
|
4670
|
+
end
|
4671
|
+
unless params['ExpiresDate'].nil?
|
4672
|
+
@ExpiresDate = TextDetectionResult.new
|
4673
|
+
@ExpiresDate.deserialize(params['ExpiresDate'])
|
4674
|
+
end
|
4675
|
+
unless params['AgencyCode'].nil?
|
4676
|
+
@AgencyCode = TextDetectionResult.new
|
4677
|
+
@AgencyCode.deserialize(params['AgencyCode'])
|
4678
|
+
end
|
4679
|
+
unless params['Birthday'].nil?
|
4680
|
+
@Birthday = TextDetectionResult.new
|
4681
|
+
@Birthday.deserialize(params['Birthday'])
|
4682
|
+
end
|
4683
|
+
@RequestId = params['RequestId']
|
4684
|
+
end
|
4685
|
+
end
|
4686
|
+
|
4687
|
+
# RecognizePhilippinesVoteIDOCR请求参数结构体
|
4688
|
+
class RecognizePhilippinesVoteIDOCRRequest < TencentCloud::Common::AbstractModel
|
4689
|
+
# @param ReturnHeadImage: 是否返回人像照片。
|
4690
|
+
# @type ReturnHeadImage: Boolean
|
4691
|
+
# @param ImageBase64: 图片的 Base64 值。
|
4692
|
+
# 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
4693
|
+
# 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
4694
|
+
# 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
4695
|
+
# @type ImageBase64: String
|
4696
|
+
# @param ImageUrl: 图片的 Url 地址。
|
4697
|
+
# 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
4698
|
+
# 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
|
4699
|
+
# 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
4700
|
+
# 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
4701
|
+
# @type ImageUrl: String
|
4702
|
+
|
4703
|
+
attr_accessor :ReturnHeadImage, :ImageBase64, :ImageUrl
|
4704
|
+
|
4705
|
+
def initialize(returnheadimage=nil, imagebase64=nil, imageurl=nil)
|
4706
|
+
@ReturnHeadImage = returnheadimage
|
4707
|
+
@ImageBase64 = imagebase64
|
4708
|
+
@ImageUrl = imageurl
|
4709
|
+
end
|
4710
|
+
|
4711
|
+
def deserialize(params)
|
4712
|
+
@ReturnHeadImage = params['ReturnHeadImage']
|
4713
|
+
@ImageBase64 = params['ImageBase64']
|
4714
|
+
@ImageUrl = params['ImageUrl']
|
4715
|
+
end
|
4716
|
+
end
|
4717
|
+
|
4718
|
+
# RecognizePhilippinesVoteIDOCR返回参数结构体
|
4719
|
+
class RecognizePhilippinesVoteIDOCRResponse < TencentCloud::Common::AbstractModel
|
4720
|
+
# @param HeadPortrait: 人像照片Base64后的结果
|
4721
|
+
# @type HeadPortrait: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
4722
|
+
# @param VIN: 菲律宾VoteID的VIN
|
4723
|
+
# @type VIN: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
4724
|
+
# @param FirstName: 姓名
|
4725
|
+
# @type FirstName: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
4726
|
+
# @param LastName: 姓氏
|
4727
|
+
# @type LastName: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
4728
|
+
# @param Birthday: 出生日期
|
4729
|
+
# @type Birthday: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
4730
|
+
# @param CivilStatus: 婚姻状况
|
4731
|
+
# @type CivilStatus: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
4732
|
+
# @param Citizenship: 国籍
|
4733
|
+
# @type Citizenship: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
4734
|
+
# @param Address: 地址
|
4735
|
+
# @type Address: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
4736
|
+
# @param PrecinctNo: 地区
|
4737
|
+
# @type PrecinctNo: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
4738
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
4739
|
+
# @type RequestId: String
|
4740
|
+
|
4741
|
+
attr_accessor :HeadPortrait, :VIN, :FirstName, :LastName, :Birthday, :CivilStatus, :Citizenship, :Address, :PrecinctNo, :RequestId
|
4742
|
+
|
4743
|
+
def initialize(headportrait=nil, vin=nil, firstname=nil, lastname=nil, birthday=nil, civilstatus=nil, citizenship=nil, address=nil, precinctno=nil, requestid=nil)
|
4744
|
+
@HeadPortrait = headportrait
|
4745
|
+
@VIN = vin
|
4746
|
+
@FirstName = firstname
|
4747
|
+
@LastName = lastname
|
4748
|
+
@Birthday = birthday
|
4749
|
+
@CivilStatus = civilstatus
|
4750
|
+
@Citizenship = citizenship
|
4751
|
+
@Address = address
|
4752
|
+
@PrecinctNo = precinctno
|
4753
|
+
@RequestId = requestid
|
4754
|
+
end
|
4755
|
+
|
4756
|
+
def deserialize(params)
|
4757
|
+
unless params['HeadPortrait'].nil?
|
4758
|
+
@HeadPortrait = TextDetectionResult.new
|
4759
|
+
@HeadPortrait.deserialize(params['HeadPortrait'])
|
4760
|
+
end
|
4761
|
+
unless params['VIN'].nil?
|
4762
|
+
@VIN = TextDetectionResult.new
|
4763
|
+
@VIN.deserialize(params['VIN'])
|
4764
|
+
end
|
4765
|
+
unless params['FirstName'].nil?
|
4766
|
+
@FirstName = TextDetectionResult.new
|
4767
|
+
@FirstName.deserialize(params['FirstName'])
|
4768
|
+
end
|
4769
|
+
unless params['LastName'].nil?
|
4770
|
+
@LastName = TextDetectionResult.new
|
4771
|
+
@LastName.deserialize(params['LastName'])
|
4772
|
+
end
|
4773
|
+
unless params['Birthday'].nil?
|
4774
|
+
@Birthday = TextDetectionResult.new
|
4775
|
+
@Birthday.deserialize(params['Birthday'])
|
4776
|
+
end
|
4777
|
+
unless params['CivilStatus'].nil?
|
4778
|
+
@CivilStatus = TextDetectionResult.new
|
4779
|
+
@CivilStatus.deserialize(params['CivilStatus'])
|
4780
|
+
end
|
4781
|
+
unless params['Citizenship'].nil?
|
4782
|
+
@Citizenship = TextDetectionResult.new
|
4783
|
+
@Citizenship.deserialize(params['Citizenship'])
|
4784
|
+
end
|
4785
|
+
unless params['Address'].nil?
|
4786
|
+
@Address = TextDetectionResult.new
|
4787
|
+
@Address.deserialize(params['Address'])
|
4788
|
+
end
|
4789
|
+
unless params['PrecinctNo'].nil?
|
4790
|
+
@PrecinctNo = TextDetectionResult.new
|
4791
|
+
@PrecinctNo.deserialize(params['PrecinctNo'])
|
4792
|
+
end
|
4793
|
+
@RequestId = params['RequestId']
|
4794
|
+
end
|
4795
|
+
end
|
4796
|
+
|
4438
4797
|
# RecognizeTableOCR请求参数结构体
|
4439
4798
|
class RecognizeTableOCRRequest < TencentCloud::Common::AbstractModel
|
4440
4799
|
# @param ImageBase64: 图片/PDF的 Base64 值。
|
@@ -5741,6 +6100,33 @@ module TencentCloud
|
|
5741
6100
|
end
|
5742
6101
|
end
|
5743
6102
|
|
6103
|
+
# 识别结果
|
6104
|
+
class TextDetectionResult < TencentCloud::Common::AbstractModel
|
6105
|
+
# @param Value: 识别出的文本行内容
|
6106
|
+
# @type Value: String
|
6107
|
+
# @param Polygon: 坐标,以四个顶点坐标表示
|
6108
|
+
# @type Polygon: Array
|
6109
|
+
|
6110
|
+
attr_accessor :Value, :Polygon
|
6111
|
+
|
6112
|
+
def initialize(value=nil, polygon=nil)
|
6113
|
+
@Value = value
|
6114
|
+
@Polygon = polygon
|
6115
|
+
end
|
6116
|
+
|
6117
|
+
def deserialize(params)
|
6118
|
+
@Value = params['Value']
|
6119
|
+
unless params['Polygon'].nil?
|
6120
|
+
@Polygon = []
|
6121
|
+
params['Polygon'].each do |i|
|
6122
|
+
coord_tmp = Coord.new
|
6123
|
+
coord_tmp.deserialize(i)
|
6124
|
+
@Polygon << coord_tmp
|
6125
|
+
end
|
6126
|
+
end
|
6127
|
+
end
|
6128
|
+
end
|
6129
|
+
|
5744
6130
|
# 数学试题识别结果
|
5745
6131
|
class TextEduPaper < TencentCloud::Common::AbstractModel
|
5746
6132
|
# @param Item: 识别出的字段名称(关键字)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-ocr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.331
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-06-
|
11
|
+
date: 2022-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|