tencentcloud-sdk-ocr 1.0.326 → 1.0.329

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: be4a2530917b26cf08dc70f90bcf26732392f976
4
- data.tar.gz: 5b8eae5f4460fe52c69a10c84580d9b85f15fe4f
3
+ metadata.gz: 4f6b15924c8cf0bd2088a0e686f2fa95b5bca268
4
+ data.tar.gz: 96b84ee429ef8ac783d75101ef6b238c4ce47bf6
5
5
  SHA512:
6
- metadata.gz: 2f8b6e9abb3e17001e151a8ed87256e6802f520778ace57765f28155934336952a0e3ba71e56f82b4f8c6e552e040b41d7eb6bfad9714da6f785317d1f14a6c6
7
- data.tar.gz: ed2683418448071643bf5024853dafa5ca4a518cd60386b6496843fb4beae2c580ed932760a3fcd867f7a18b9784f7efa855531f36c3d8a7cbd0bfe8736056cd
6
+ metadata.gz: e3ea5f2b725a5cebd2b855bcfe223898318c05199727c102174dbef0e46f008058fc94ebc7d1ded1801b6f155cbf31fc0f870073cb10b1ad27312685d00de1cd
7
+ data.tar.gz: 61545e1c855b676a2dc4a0f5341e888533bb5f91fd520e9685e19c11c85a4516104d5e2f8e9aa9d14549c67b8ab550749a592fe0a165fc40bfc6288314b3a3e3
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.326
1
+ 1.0.329
@@ -1109,7 +1109,7 @@ module TencentCloud
1109
1109
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1110
1110
  end
1111
1111
 
1112
- # 本接口支持多张、多类型票据的混合识别,系统自动实现分割、分类和识别,同时支持自选需要识别的票据类型。目前已支持增值税发票、增值税发票(卷票)、定额发票、通用机打发票、购车发票、火车票、出租车发票、机票行程单、汽车票、轮船票、过路过桥费发票共11种票据。
1112
+ # 本接口支持 单张、多张、多类型 票据的混合识别,同时支持自选需要识别的票据类型,已支持票种包括:增值税发票(专票、普票、卷票)、全电发票、非税发票、定额发票、通用机打发票、购车发票、火车票、出租车发票、机票行程单、汽车票、轮船票、过路过桥费发票共14种标准报销发票,并支持其他类发票的识别。
1113
1113
 
1114
1114
  # @param request: Request instance for MixedInvoiceOCR.
1115
1115
  # @type request: :class:`Tencentcloud::ocr::V20181119::MixedInvoiceOCRRequest`
@@ -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.
@@ -3323,20 +3323,28 @@ module TencentCloud
3323
3323
  # 11:增值税发票(卷票 )
3324
3324
  # 12:购车发票
3325
3325
  # 13:过路过桥费发票
3326
+ # 15:非税发票
3327
+ # 16:全电发票
3326
3328
  # @type Types: Array
3329
+ # @param ReturnOther: 是否识别其他类型发票,默认为Yes
3330
+ # Yes:识别其他类型发票
3331
+ # No:不识别其他类型发票
3332
+ # @type ReturnOther: String
3327
3333
 
3328
- attr_accessor :ImageBase64, :ImageUrl, :Types
3334
+ attr_accessor :ImageBase64, :ImageUrl, :Types, :ReturnOther
3329
3335
 
3330
- def initialize(imagebase64=nil, imageurl=nil, types=nil)
3336
+ def initialize(imagebase64=nil, imageurl=nil, types=nil, returnother=nil)
3331
3337
  @ImageBase64 = imagebase64
3332
3338
  @ImageUrl = imageurl
3333
3339
  @Types = types
3340
+ @ReturnOther = returnother
3334
3341
  end
3335
3342
 
3336
3343
  def deserialize(params)
3337
3344
  @ImageBase64 = params['ImageBase64']
3338
3345
  @ImageUrl = params['ImageUrl']
3339
3346
  @Types = params['Types']
3347
+ @ReturnOther = params['ReturnOther']
3340
3348
  end
3341
3349
  end
3342
3350
 
@@ -4365,6 +4373,124 @@ module TencentCloud
4365
4373
  end
4366
4374
  end
4367
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
+
4368
4494
  # RecognizeOnlineTaxiItineraryOCR请求参数结构体
4369
4495
  class RecognizeOnlineTaxiItineraryOCRRequest < TencentCloud::Common::AbstractModel
4370
4496
  # @param ImageBase64: 图片的 Base64 值。
@@ -4427,6 +4553,247 @@ module TencentCloud
4427
4553
  end
4428
4554
  end
4429
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
+
4430
4797
  # RecognizeTableOCR请求参数结构体
4431
4798
  class RecognizeTableOCRRequest < TencentCloud::Common::AbstractModel
4432
4799
  # @param ImageBase64: 图片/PDF的 Base64 值。
@@ -5733,6 +6100,33 @@ module TencentCloud
5733
6100
  end
5734
6101
  end
5735
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
+
5736
6130
  # 数学试题识别结果
5737
6131
  class TextEduPaper < TencentCloud::Common::AbstractModel
5738
6132
  # @param Item: 识别出的字段名称(关键字)
@@ -6454,6 +6848,7 @@ module TencentCloud
6454
6848
  # 11:卷式发票
6455
6849
  # 14:通行费发票
6456
6850
  # 15:二手车发票
6851
+ # 32:深圳区块链发票(仅支持新版接口)
6457
6852
  # @type Type: String
6458
6853
  # @param CheckCode: 检验码
6459
6854
  # @type CheckCode: String
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.326
4
+ version: 1.0.329
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-02 00:00:00.000000000 Z
11
+ date: 2022-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common