tencentcloud-sdk-nodejs-ocr 4.0.356 → 4.0.357

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.
@@ -509,6 +509,12 @@ class Client extends TencentCloudCommon.AbstractClient {
509
509
  async SealOCR(req, cb) {
510
510
  return this.request("SealOCR", req, cb);
511
511
  }
512
+ /**
513
+ * 菲律宾VoteID识别
514
+ */
515
+ async RecognizePhilippinesVoteIDOCR(req, cb) {
516
+ return this.request("RecognizePhilippinesVoteIDOCR", req, cb);
517
+ }
512
518
  /**
513
519
  * 本接口支持火车票全字段的识别,包括编号、票价、姓名、座位号、出发时间、出发站、到达站、车次、席别、发票类型及序列号等。
514
520
 
@@ -677,6 +683,12 @@ class Client extends TencentCloudCommon.AbstractClient {
677
683
  async FinanBillOCR(req, cb) {
678
684
  return this.request("FinanBillOCR", req, cb);
679
685
  }
686
+ /**
687
+ * 菲律宾驾驶证识别
688
+ */
689
+ async RecognizePhilippinesDrivingLicenseOCR(req, cb) {
690
+ return this.request("RecognizePhilippinesDrivingLicenseOCR", req, cb);
691
+ }
680
692
  /**
681
693
  * 本接口支持OFD格式的增值税电子普通发票和增值税电子专用发票的识别,返回发票代码、发票号码、开票日期、验证码、机器编号、密码区,购买方和销售方信息,包括名称、纳税人识别号、地址电话、开户行及账号,以及价税合计、开票人、收款人、复核人、税额、不含税金额等字段信息。
682
694
  */
@@ -689,6 +701,12 @@ class Client extends TencentCloudCommon.AbstractClient {
689
701
  async MixedInvoiceOCR(req, cb) {
690
702
  return this.request("MixedInvoiceOCR", req, cb);
691
703
  }
704
+ /**
705
+ * 印尼身份证识别
706
+ */
707
+ async RecognizeIndonesiaIDCardOCR(req, cb) {
708
+ return this.request("RecognizeIndonesiaIDCardOCR", req, cb);
709
+ }
692
710
  /**
693
711
  * 本接口支持北京、上海、广东、江苏、吉林、黑龙江省市健康码的识别,包括持码人姓名、持码人身份证号、健康码更新时间、健康码颜色、核酸检测结果、核酸检测间隔时长、核酸检测时间,七个字段的识别结果输出。不同省市健康码显示的字段信息有所不同,上述字段的识别结果可能为空,以图片上具体展示的信息为准。
694
712
  */
@@ -333,6 +333,30 @@ export interface FlightInvoiceOCRRequest {
333
333
  */
334
334
  ImageUrl?: string;
335
335
  }
336
+ /**
337
+ * RecognizePhilippinesDrivingLicenseOCR请求参数结构体
338
+ */
339
+ export interface RecognizePhilippinesDrivingLicenseOCRRequest {
340
+ /**
341
+ * 是否返回人像照片。
342
+ */
343
+ ReturnHeadImage: boolean;
344
+ /**
345
+ * 图片的 Base64 值。
346
+ 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
347
+ 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
348
+ 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
349
+ */
350
+ ImageBase64?: string;
351
+ /**
352
+ * 图片的 Url 地址。
353
+ 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
354
+ 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
355
+ 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
356
+ 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
357
+ */
358
+ ImageUrl?: string;
359
+ }
336
360
  /**
337
361
  * MLIDPassportOCR请求参数结构体
338
362
  */
@@ -948,6 +972,30 @@ export interface EnterpriseLicenseOCRResponse {
948
972
  */
949
973
  RequestId?: string;
950
974
  }
975
+ /**
976
+ * RecognizePhilippinesVoteIDOCR请求参数结构体
977
+ */
978
+ export interface RecognizePhilippinesVoteIDOCRRequest {
979
+ /**
980
+ * 是否返回人像照片。
981
+ */
982
+ ReturnHeadImage: boolean;
983
+ /**
984
+ * 图片的 Base64 值。
985
+ 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
986
+ 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
987
+ 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
988
+ */
989
+ ImageBase64?: string;
990
+ /**
991
+ * 图片的 Url 地址。
992
+ 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
993
+ 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
994
+ 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
995
+ 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
996
+ */
997
+ ImageUrl?: string;
998
+ }
951
999
  /**
952
1000
  * 通用机打发票信息
953
1001
  */
@@ -1718,6 +1766,21 @@ export interface MixedInvoiceDetectResponse {
1718
1766
  */
1719
1767
  RequestId?: string;
1720
1768
  }
1769
+ /**
1770
+ * RideHailingDriverLicenseOCR请求参数结构体
1771
+ */
1772
+ export interface RideHailingDriverLicenseOCRRequest {
1773
+ /**
1774
+ * 图片的 Base64 值。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
1775
+ 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
1776
+ */
1777
+ ImageBase64?: string;
1778
+ /**
1779
+ * 图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。图片下载时间不超过 3 秒。
1780
+ 建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
1781
+ */
1782
+ ImageUrl?: string;
1783
+ }
1721
1784
  /**
1722
1785
  * 发票人员信息
1723
1786
  */
@@ -1950,6 +2013,63 @@ export interface CellContent {
1950
2013
  */
1951
2014
  WordSize: number;
1952
2015
  }
2016
+ /**
2017
+ * RecognizePhilippinesDrivingLicenseOCR返回参数结构体
2018
+ */
2019
+ export interface RecognizePhilippinesDrivingLicenseOCRResponse {
2020
+ /**
2021
+ * 人像照片Base64后的结果
2022
+ */
2023
+ HeadPortrait: TextDetectionResult;
2024
+ /**
2025
+ * 姓名
2026
+ */
2027
+ Name: TextDetectionResult;
2028
+ /**
2029
+ * 姓氏
2030
+ */
2031
+ LastName: TextDetectionResult;
2032
+ /**
2033
+ * 首姓名
2034
+ */
2035
+ FirstName: TextDetectionResult;
2036
+ /**
2037
+ * 中间姓名
2038
+ */
2039
+ MiddleName: TextDetectionResult;
2040
+ /**
2041
+ * 国籍
2042
+ */
2043
+ Nationality: TextDetectionResult;
2044
+ /**
2045
+ * 性别
2046
+ */
2047
+ Sex: TextDetectionResult;
2048
+ /**
2049
+ * 地址
2050
+ */
2051
+ Address: TextDetectionResult;
2052
+ /**
2053
+ * 证号
2054
+ */
2055
+ LicenseNo: TextDetectionResult;
2056
+ /**
2057
+ * 有效期
2058
+ */
2059
+ ExpiresDate: TextDetectionResult;
2060
+ /**
2061
+ * 机构代码
2062
+ */
2063
+ AgencyCode: TextDetectionResult;
2064
+ /**
2065
+ * 出生日期
2066
+ */
2067
+ Birthday: TextDetectionResult;
2068
+ /**
2069
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2070
+ */
2071
+ RequestId?: string;
2072
+ }
1953
2073
  /**
1954
2074
  * MixedInvoiceOCR返回参数结构体
1955
2075
  */
@@ -3171,6 +3291,79 @@ export interface TextVehicleBack {
3171
3291
  */
3172
3292
  TotalQuasiMass: string;
3173
3293
  }
3294
+ /**
3295
+ * RecognizeIndonesiaIDCardOCR返回参数结构体
3296
+ */
3297
+ export interface RecognizeIndonesiaIDCardOCRResponse {
3298
+ /**
3299
+ * 证件号码
3300
+ */
3301
+ NIK: string;
3302
+ /**
3303
+ * 姓名
3304
+ */
3305
+ Nama: string;
3306
+ /**
3307
+ * 出生地/出生时间
3308
+ */
3309
+ TempatTglLahir: string;
3310
+ /**
3311
+ * 性别
3312
+ */
3313
+ JenisKelamin: string;
3314
+ /**
3315
+ * 血型
3316
+ */
3317
+ GolDarah: string;
3318
+ /**
3319
+ * 地址
3320
+ */
3321
+ Alamat: string;
3322
+ /**
3323
+ * 街道
3324
+ */
3325
+ RTRW: string;
3326
+ /**
3327
+ * 村
3328
+ */
3329
+ KelDesa: string;
3330
+ /**
3331
+ * 地区
3332
+ */
3333
+ Kecamatan: string;
3334
+ /**
3335
+ * 宗教信仰
3336
+ */
3337
+ Agama: string;
3338
+ /**
3339
+ * 婚姻状况
3340
+ */
3341
+ StatusPerkawinan: string;
3342
+ /**
3343
+ * 职业
3344
+ */
3345
+ Perkerjaan: string;
3346
+ /**
3347
+ * 国籍
3348
+ */
3349
+ KewargaNegaraan: string;
3350
+ /**
3351
+ * 身份证有效期限
3352
+ */
3353
+ BerlakuHingga: string;
3354
+ /**
3355
+ * 发证日期
3356
+ */
3357
+ IssuedDate: string;
3358
+ /**
3359
+ * 人像截图
3360
+ */
3361
+ Photo: string;
3362
+ /**
3363
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3364
+ */
3365
+ RequestId?: string;
3366
+ }
3174
3367
  /**
3175
3368
  * GeneralEfficientOCR请求参数结构体
3176
3369
  */
@@ -3354,6 +3547,37 @@ export interface VerifyEnterpriseFourFactorsRequest {
3354
3547
  */
3355
3548
  EnterpriseMark: string;
3356
3549
  }
3550
+ /**
3551
+ * RecognizeIndonesiaIDCardOCR请求参数结构体
3552
+ */
3553
+ export interface RecognizeIndonesiaIDCardOCRRequest {
3554
+ /**
3555
+ * 图片的 Base64 值。
3556
+ 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
3557
+ 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
3558
+ 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
3559
+ */
3560
+ ImageBase64?: string;
3561
+ /**
3562
+ * 图片的 Url 地址。
3563
+ 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
3564
+ 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
3565
+ 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
3566
+ 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
3567
+ */
3568
+ ImageUrl?: string;
3569
+ /**
3570
+ * 是否返回人像照片。
3571
+ */
3572
+ ReturnHeadImage?: boolean;
3573
+ /**
3574
+ * 场景参数,默认值为V1
3575
+ 可选值:
3576
+ V1
3577
+ V2
3578
+ */
3579
+ Scene?: string;
3580
+ }
3357
3581
  /**
3358
3582
  * 轮船票字段信息
3359
3583
  */
@@ -3438,6 +3662,19 @@ export interface FlightInvoiceOCRResponse {
3438
3662
  */
3439
3663
  RequestId?: string;
3440
3664
  }
3665
+ /**
3666
+ * 识别结果
3667
+ */
3668
+ export interface TextDetectionResult {
3669
+ /**
3670
+ * 识别出的文本行内容
3671
+ */
3672
+ Value: string;
3673
+ /**
3674
+ * 坐标,以四个顶点坐标表示
3675
+ */
3676
+ Polygon: Array<Coord>;
3677
+ }
3441
3678
  /**
3442
3679
  * InstitutionOCR请求参数结构体
3443
3680
  */
@@ -4094,19 +4331,49 @@ export interface RecognizeHealthCodeOCRResponse {
4094
4331
  RequestId?: string;
4095
4332
  }
4096
4333
  /**
4097
- * RideHailingDriverLicenseOCR请求参数结构体
4334
+ * RecognizePhilippinesVoteIDOCR返回参数结构体
4098
4335
  */
4099
- export interface RideHailingDriverLicenseOCRRequest {
4336
+ export interface RecognizePhilippinesVoteIDOCRResponse {
4100
4337
  /**
4101
- * 图片的 Base64 值。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
4102
- 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
4103
- */
4104
- ImageBase64?: string;
4338
+ * 人像照片Base64后的结果
4339
+ */
4340
+ HeadPortrait: TextDetectionResult;
4105
4341
  /**
4106
- * 图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。图片下载时间不超过 3 秒。
4107
- 建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
4108
- */
4109
- ImageUrl?: string;
4342
+ * 菲律宾VoteID的VIN
4343
+ */
4344
+ VIN: TextDetectionResult;
4345
+ /**
4346
+ * 姓名
4347
+ */
4348
+ FirstName: TextDetectionResult;
4349
+ /**
4350
+ * 姓氏
4351
+ */
4352
+ LastName: TextDetectionResult;
4353
+ /**
4354
+ * 出生日期
4355
+ */
4356
+ Birthday: TextDetectionResult;
4357
+ /**
4358
+ * 婚姻状况
4359
+ */
4360
+ CivilStatus: TextDetectionResult;
4361
+ /**
4362
+ * 国籍
4363
+ */
4364
+ Citizenship: TextDetectionResult;
4365
+ /**
4366
+ * 地址
4367
+ */
4368
+ Address: TextDetectionResult;
4369
+ /**
4370
+ * 地区
4371
+ */
4372
+ PrecinctNo: TextDetectionResult;
4373
+ /**
4374
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4375
+ */
4376
+ RequestId?: string;
4110
4377
  }
4111
4378
  /**
4112
4379
  * QueryBarCode请求参数结构体