tencentcloud-sdk-ocr 3.0.1158 → 3.0.1161

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: 86fd2543c4c3013d887f87d9812645e178b8f403
4
- data.tar.gz: 02dbdf2741ac12538120cd25f441db7db95cf570
3
+ metadata.gz: e4b33dd9507bdf7fc89689e3e0fa066e8a362e61
4
+ data.tar.gz: c18be105faaa1abb9330f97a42ee18c0ee156b54
5
5
  SHA512:
6
- metadata.gz: 9142af20094c9d8828b4690e0b7ab5ffa535269b534bf7fe19eb0509146bf55dcdbc355d49f95faec9d10e988ff2a48e582f87535433b75927f8de4ebc349aa9
7
- data.tar.gz: aba186389d6f666a7fa79bf635b6f2f061d816a18e044d5457c19d9a041a9b6af22c5d2a5983f3ca1b386a01a8cfc0cf135acac0254167eead0460ce2684bc6f
6
+ metadata.gz: 39e637eb8f84295edec40b108068683b293f9fc771f0d6225c967046ded85ccea87cbd3fcba0deef1e0ea2a481cb22c563179c09af3acd20fbbfa789558f9392
7
+ data.tar.gz: 16481df56c029ee2de77e619cbcedc4d9558109ef0b77ae0077583d227ad9dc381d3f817ad98a7f3900f6edeea199d30943d6e9e45b5a6df299cd80dd58b5572
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1158
1
+ 3.0.1161
@@ -1187,35 +1187,6 @@ module TencentCloud
1187
1187
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1188
1188
  end
1189
1189
 
1190
- # 不再维护,功能已切到其它接口
1191
-
1192
- # <b>因技术原因,本接口将不再迭代升级。文档抽取(基础版)可支持此类证书的识别抽取,效果、功能更强并将持续迭代优化,建议使用<a href="https://cloud.tencent.com/document/product/866/119452">文档抽取(基础版)</a>。</b>
1193
- # 本接口支持事业单位法人证书关键字段识别,包括注册号、有效期、住所、名称、法定代表人等。
1194
-
1195
- # 默认接口请求频率限制:5次/秒。
1196
-
1197
- # @param request: Request instance for InstitutionOCR.
1198
- # @type request: :class:`Tencentcloud::ocr::V20181119::InstitutionOCRRequest`
1199
- # @rtype: :class:`Tencentcloud::ocr::V20181119::InstitutionOCRResponse`
1200
- def InstitutionOCR(request)
1201
- body = send_request('InstitutionOCR', request.serialize)
1202
- response = JSON.parse(body)
1203
- if response['Response'].key?('Error') == false
1204
- model = InstitutionOCRResponse.new
1205
- model.deserialize(response['Response'])
1206
- model
1207
- else
1208
- code = response['Response']['Error']['Code']
1209
- message = response['Response']['Error']['Message']
1210
- reqid = response['Response']['RequestId']
1211
- raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1212
- end
1213
- rescue TencentCloud::Common::TencentCloudSDKException => e
1214
- raise e
1215
- rescue StandardError => e
1216
- raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1217
- end
1218
-
1219
1190
  # 本接口支持病案首页、费用清单、结算单、医疗发票四种保险理赔单据的文本识别和结构化输出。
1220
1191
 
1221
1192
  # 默认接口请求频率限制:1次/秒。
@@ -1424,35 +1395,6 @@ module TencentCloud
1424
1395
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1425
1396
  end
1426
1397
 
1427
- # 不再维护,功能已切到其它接口
1428
-
1429
- # <b>因技术原因,本接口将不再迭代升级。文档抽取(基础版)可支持此类证书的识别抽取,效果、功能更强并将持续迭代优化,建议使用<a href="https://cloud.tencent.com/document/product/866/119452">文档抽取(基础版)</a>。</b>
1430
- # 本接口支持组织机构代码证关键字段的识别,包括代码、有效期、地址、机构名称等。
1431
-
1432
- # 默认接口请求频率限制:5次/秒。
1433
-
1434
- # @param request: Request instance for OrgCodeCertOCR.
1435
- # @type request: :class:`Tencentcloud::ocr::V20181119::OrgCodeCertOCRRequest`
1436
- # @rtype: :class:`Tencentcloud::ocr::V20181119::OrgCodeCertOCRResponse`
1437
- def OrgCodeCertOCR(request)
1438
- body = send_request('OrgCodeCertOCR', request.serialize)
1439
- response = JSON.parse(body)
1440
- if response['Response'].key?('Error') == false
1441
- model = OrgCodeCertOCRResponse.new
1442
- model.deserialize(response['Response'])
1443
- model
1444
- else
1445
- code = response['Response']['Error']['Code']
1446
- message = response['Response']['Error']['Message']
1447
- reqid = response['Response']['RequestId']
1448
- raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1449
- end
1450
- rescue TencentCloud::Common::TencentCloudSDKException => e
1451
- raise e
1452
- rescue StandardError => e
1453
- raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1454
- end
1455
-
1456
1398
  # <b>此接口为护照识别(中国大陆地区护照)的旧版本服务,不再进行服务升级,建议您使用识别能力更强、服务性能更优的<a href="https://cloud.tencent.com/document/product/866/37657">护照识别(多国多地区护照)</a>。</b>
1457
1399
 
1458
1400
  # 本接口支持中国大陆地区护照个人资料页多个字段的检测与识别。已支持字段包括英文姓名、中文姓名、国家码、护照号、出生地、出生日期、国籍英文、性别英文、有效期、签发地点英文、签发日期、持证人签名、护照机读码(MRZ码)等。
@@ -1507,22 +1449,18 @@ module TencentCloud
1507
1449
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1508
1450
  end
1509
1451
 
1510
- # 不再维护,功能已切到其它接口
1511
-
1512
- # <b>因技术原因,本接口将不再迭代升级。文档抽取(基础版)可支持此类证书的识别抽取,效果、功能更强并将持续迭代优化,建议使用<a href="https://cloud.tencent.com/document/product/866/119452">文档抽取(基础版)</a>。</b>
1513
- # 本接口支持房产证关键字段的识别,包括房地产权利人、共有情况、登记时间、规划用途、房屋性质、房屋坐落等。
1514
- # 目前接口对合肥、成都、佛山三个城市的房产证版式识别较好。
1452
+ # 本接口支持条形码和二维码的识别(包括 DataMatrix 和 PDF417)。
1515
1453
 
1516
1454
  # 默认接口请求频率限制:5次/秒。
1517
1455
 
1518
- # @param request: Request instance for PropOwnerCertOCR.
1519
- # @type request: :class:`Tencentcloud::ocr::V20181119::PropOwnerCertOCRRequest`
1520
- # @rtype: :class:`Tencentcloud::ocr::V20181119::PropOwnerCertOCRResponse`
1521
- def PropOwnerCertOCR(request)
1522
- body = send_request('PropOwnerCertOCR', request.serialize)
1456
+ # @param request: Request instance for QrcodeOCR.
1457
+ # @type request: :class:`Tencentcloud::ocr::V20181119::QrcodeOCRRequest`
1458
+ # @rtype: :class:`Tencentcloud::ocr::V20181119::QrcodeOCRResponse`
1459
+ def QrcodeOCR(request)
1460
+ body = send_request('QrcodeOCR', request.serialize)
1523
1461
  response = JSON.parse(body)
1524
1462
  if response['Response'].key?('Error') == false
1525
- model = PropOwnerCertOCRResponse.new
1463
+ model = QrcodeOCRResponse.new
1526
1464
  model.deserialize(response['Response'])
1527
1465
  model
1528
1466
  else
@@ -1537,18 +1475,18 @@ module TencentCloud
1537
1475
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1538
1476
  end
1539
1477
 
1540
- # 本接口支持条形码和二维码的识别(包括 DataMatrix 和 PDF417)。
1478
+ # 题目识别是教育的基础OCR识别能力。可支持扫描、拍照场景的单题题目识别。接口支持印刷体文本、手写体文本及公式的OCR识别和坐标返回,此外,接口还可对题目中的配图位置进行检测并返回坐标位置。适用于智能批改等场景的题目内容识别作为检索输入。
1541
1479
 
1542
- # 默认接口请求频率限制:5次/秒。
1480
+ # 默认接口请求频率限制:2次/秒。
1543
1481
 
1544
- # @param request: Request instance for QrcodeOCR.
1545
- # @type request: :class:`Tencentcloud::ocr::V20181119::QrcodeOCRRequest`
1546
- # @rtype: :class:`Tencentcloud::ocr::V20181119::QrcodeOCRResponse`
1547
- def QrcodeOCR(request)
1548
- body = send_request('QrcodeOCR', request.serialize)
1482
+ # @param request: Request instance for QuestionOCR.
1483
+ # @type request: :class:`Tencentcloud::ocr::V20181119::QuestionOCRRequest`
1484
+ # @rtype: :class:`Tencentcloud::ocr::V20181119::QuestionOCRResponse`
1485
+ def QuestionOCR(request)
1486
+ body = send_request('QuestionOCR', request.serialize)
1549
1487
  response = JSON.parse(body)
1550
1488
  if response['Response'].key?('Error') == false
1551
- model = QrcodeOCRResponse.new
1489
+ model = QuestionOCRResponse.new
1552
1490
  model.deserialize(response['Response'])
1553
1491
  model
1554
1492
  else
@@ -1563,18 +1501,18 @@ module TencentCloud
1563
1501
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1564
1502
  end
1565
1503
 
1566
- # 题目识别是教育的基础OCR识别能力。可支持扫描、拍照场景的单题题目识别。接口支持印刷体文本、手写体文本及公式的OCR识别和坐标返回,此外,接口还可对题目中的配图位置进行检测并返回坐标位置。适用于智能批改等场景的题目内容识别作为检索输入。
1504
+ # 试卷切题(仅检测)可将整页练习册、试卷或教辅中的题目进行自动切题,返回试题边框和题目元素的坐标位置。
1567
1505
 
1568
1506
  # 默认接口请求频率限制:2次/秒。
1569
1507
 
1570
- # @param request: Request instance for QuestionOCR.
1571
- # @type request: :class:`Tencentcloud::ocr::V20181119::QuestionOCRRequest`
1572
- # @rtype: :class:`Tencentcloud::ocr::V20181119::QuestionOCRResponse`
1573
- def QuestionOCR(request)
1574
- body = send_request('QuestionOCR', request.serialize)
1508
+ # @param request: Request instance for QuestionSplitLayoutOCR.
1509
+ # @type request: :class:`Tencentcloud::ocr::V20181119::QuestionSplitLayoutOCRRequest`
1510
+ # @rtype: :class:`Tencentcloud::ocr::V20181119::QuestionSplitLayoutOCRResponse`
1511
+ def QuestionSplitLayoutOCR(request)
1512
+ body = send_request('QuestionSplitLayoutOCR', request.serialize)
1575
1513
  response = JSON.parse(body)
1576
1514
  if response['Response'].key?('Error') == false
1577
- model = QuestionOCRResponse.new
1515
+ model = QuestionSplitLayoutOCRResponse.new
1578
1516
  model.deserialize(response['Response'])
1579
1517
  model
1580
1518
  else
@@ -1742,33 +1680,6 @@ module TencentCloud
1742
1680
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1743
1681
  end
1744
1682
 
1745
- # 不再维护,功能已切到其它接口
1746
-
1747
- # <b>因技术原因,本接口将不再迭代升级。有效身份证件识别(鉴伪版)可支持此类证件的识别,并包含质量和PS告警,效果、功能更强并将持续迭代优化,建议使用<a href="https://cloud.tencent.com/document/product/866/112345">有效身份证件识别(鉴伪版)</a>。</b>
1748
- # 外国人永久居留身份证识别
1749
-
1750
- # @param request: Request instance for RecognizeForeignPermanentResidentIdCard.
1751
- # @type request: :class:`Tencentcloud::ocr::V20181119::RecognizeForeignPermanentResidentIdCardRequest`
1752
- # @rtype: :class:`Tencentcloud::ocr::V20181119::RecognizeForeignPermanentResidentIdCardResponse`
1753
- def RecognizeForeignPermanentResidentIdCard(request)
1754
- body = send_request('RecognizeForeignPermanentResidentIdCard', request.serialize)
1755
- response = JSON.parse(body)
1756
- if response['Response'].key?('Error') == false
1757
- model = RecognizeForeignPermanentResidentIdCardResponse.new
1758
- model.deserialize(response['Response'])
1759
- model
1760
- else
1761
- code = response['Response']['Error']['Code']
1762
- message = response['Response']['Error']['Message']
1763
- reqid = response['Response']['RequestId']
1764
- raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1765
- end
1766
- rescue TencentCloud::Common::TencentCloudSDKException => e
1767
- raise e
1768
- rescue StandardError => e
1769
- raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1770
- end
1771
-
1772
1683
  # 公式识别是教育的基础OCR识别能力,可支持理科(数学、物理、化学、生物)的印刷体和手写体的公式识别。
1773
1684
 
1774
1685
  # 默认接口请求频率限制:2次/秒。
@@ -2046,33 +1957,6 @@ module TencentCloud
2046
1957
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2047
1958
  end
2048
1959
 
2049
- # 不再维护,功能已切到其它接口
2050
-
2051
- # <b>因技术原因,本接口将不再迭代升级。通用卡证鉴伪可支持更多告警类型,效果、功能更强并将持续迭代优化,建议使用<a href="https://cloud.tencent.com/document/product/866/115916">通用卡证鉴伪</a>。</b>
2052
- # 本接口支持多种类型证件有效性检测告警,包括卡证复印件告警、卡证翻拍告警等功能。可以应用于各种证件信息有效性校验场景,例如银行开户、用户注册等场景。
2053
-
2054
- # @param request: Request instance for RecognizeGeneralTextImageWarn.
2055
- # @type request: :class:`Tencentcloud::ocr::V20181119::RecognizeGeneralTextImageWarnRequest`
2056
- # @rtype: :class:`Tencentcloud::ocr::V20181119::RecognizeGeneralTextImageWarnResponse`
2057
- def RecognizeGeneralTextImageWarn(request)
2058
- body = send_request('RecognizeGeneralTextImageWarn', request.serialize)
2059
- response = JSON.parse(body)
2060
- if response['Response'].key?('Error') == false
2061
- model = RecognizeGeneralTextImageWarnResponse.new
2062
- model.deserialize(response['Response'])
2063
- model
2064
- else
2065
- code = response['Response']['Error']['Code']
2066
- message = response['Response']['Error']['Message']
2067
- reqid = response['Response']['RequestId']
2068
- raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2069
- end
2070
- rescue TencentCloud::Common::TencentCloudSDKException => e
2071
- raise e
2072
- rescue StandardError => e
2073
- raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2074
- end
2075
-
2076
1960
  # 本接口支持北京、上海、广东、江苏、吉林、黑龙江、天津、辽宁、浙江、河南、四川、贵州、山东、安徽、福建、江西、湖北、湖南等省份健康码的识别,包括持码人姓名、持码人身份证号、健康码更新时间、健康码颜色、核酸检测结果、核酸检测间隔时长、核酸检测时间,疫苗接种信息,八个字段的识别结果输出。不同省市健康码显示的字段信息有所不同,上述字段的识别结果可能为空,以图片上具体展示的信息为准。
2077
1961
 
2078
1962
  # 默认接口请求频率限制:10次/秒。
@@ -3944,8 +3944,8 @@ module TencentCloud
3944
3944
 
3945
3945
  attr_accessor :TextDetections, :Angel, :Angle, :RequestId
3946
3946
  extend Gem::Deprecate
3947
- deprecate :Angel, :none, 2025, 10
3948
- deprecate :Angel=, :none, 2025, 10
3947
+ deprecate :Angel, :none, 2025, 11
3948
+ deprecate :Angel=, :none, 2025, 11
3949
3949
 
3950
3950
  def initialize(textdetections=nil, angel=nil, angle=nil, requestid=nil)
3951
3951
  @TextDetections = textdetections
@@ -4051,8 +4051,8 @@ module TencentCloud
4051
4051
 
4052
4052
  attr_accessor :TextDetections, :Language, :Angel, :PdfPageSize, :Angle, :RequestId
4053
4053
  extend Gem::Deprecate
4054
- deprecate :Angel, :none, 2025, 10
4055
- deprecate :Angel=, :none, 2025, 10
4054
+ deprecate :Angel, :none, 2025, 11
4055
+ deprecate :Angel=, :none, 2025, 11
4056
4056
 
4057
4057
  def initialize(textdetections=nil, language=nil, angel=nil, pdfpagesize=nil, angle=nil, requestid=nil)
4058
4058
  @TextDetections = textdetections
@@ -4148,8 +4148,8 @@ module TencentCloud
4148
4148
 
4149
4149
  attr_accessor :TextDetections, :Angel, :Angle, :RequestId
4150
4150
  extend Gem::Deprecate
4151
- deprecate :Angel, :none, 2025, 10
4152
- deprecate :Angel=, :none, 2025, 10
4151
+ deprecate :Angel, :none, 2025, 11
4152
+ deprecate :Angel=, :none, 2025, 11
4153
4153
 
4154
4154
  def initialize(textdetections=nil, angel=nil, angle=nil, requestid=nil)
4155
4155
  @TextDetections = textdetections
@@ -4295,8 +4295,8 @@ module TencentCloud
4295
4295
 
4296
4296
  attr_accessor :TextDetections, :Angel, :Angle, :RequestId
4297
4297
  extend Gem::Deprecate
4298
- deprecate :Angel, :none, 2025, 10
4299
- deprecate :Angel=, :none, 2025, 10
4298
+ deprecate :Angel, :none, 2025, 11
4299
+ deprecate :Angel=, :none, 2025, 11
4300
4300
 
4301
4301
  def initialize(textdetections=nil, angel=nil, angle=nil, requestid=nil)
4302
4302
  @TextDetections = textdetections
@@ -4364,39 +4364,6 @@ module TencentCloud
4364
4364
  end
4365
4365
  end
4366
4366
 
4367
- # 通用告警详情
4368
- class GeneralWarnInfo < TencentCloud::Common::AbstractModel
4369
- # @param IsWarn: 是否存在该告警
4370
- # @type IsWarn: Boolean
4371
- # @param Polygon: 告警位置四点坐标
4372
- # @type Polygon: Array
4373
- # @param SpecificMatter: 特殊判定,支持包括
4374
-
4375
- # Finger:由手指导致的不完整,仅在不完整告警中返回
4376
- # @type SpecificMatter: String
4377
-
4378
- attr_accessor :IsWarn, :Polygon, :SpecificMatter
4379
-
4380
- def initialize(iswarn=nil, polygon=nil, specificmatter=nil)
4381
- @IsWarn = iswarn
4382
- @Polygon = polygon
4383
- @SpecificMatter = specificmatter
4384
- end
4385
-
4386
- def deserialize(params)
4387
- @IsWarn = params['IsWarn']
4388
- unless params['Polygon'].nil?
4389
- @Polygon = []
4390
- params['Polygon'].each do |i|
4391
- polygon_tmp = Polygon.new
4392
- polygon_tmp.deserialize(i)
4393
- @Polygon << polygon_tmp
4394
- end
4395
- end
4396
- @SpecificMatter = params['SpecificMatter']
4397
- end
4398
- end
4399
-
4400
4367
  # GetOCRResult请求参数结构体
4401
4368
  class GetOCRResultRequest < TencentCloud::Common::AbstractModel
4402
4369
  # @param OCRToken: token值
@@ -4530,8 +4497,8 @@ module TencentCloud
4530
4497
 
4531
4498
  attr_accessor :ReturnHeadImage, :DetectFake, :ImageBase64, :ImageUrl
4532
4499
  extend Gem::Deprecate
4533
- deprecate :DetectFake, :none, 2025, 10
4534
- deprecate :DetectFake=, :none, 2025, 10
4500
+ deprecate :DetectFake, :none, 2025, 11
4501
+ deprecate :DetectFake=, :none, 2025, 11
4535
4502
 
4536
4503
  def initialize(returnheadimage=nil, detectfake=nil, imagebase64=nil, imageurl=nil)
4537
4504
  @ReturnHeadImage = returnheadimage
@@ -4603,10 +4570,10 @@ module TencentCloud
4603
4570
 
4604
4571
  attr_accessor :CnName, :EnName, :TelexCode, :Sex, :Birthday, :Permanent, :IdNum, :Symbol, :FirstIssueDate, :CurrentIssueDate, :FakeDetectResult, :HeadImage, :SmallHeadImage, :WarningCode, :WarnCardInfos, :WindowEmbeddedText, :RequestId
4605
4572
  extend Gem::Deprecate
4606
- deprecate :FakeDetectResult, :none, 2025, 10
4607
- deprecate :FakeDetectResult=, :none, 2025, 10
4608
- deprecate :WarningCode, :none, 2025, 10
4609
- deprecate :WarningCode=, :none, 2025, 10
4573
+ deprecate :FakeDetectResult, :none, 2025, 11
4574
+ deprecate :FakeDetectResult=, :none, 2025, 11
4575
+ deprecate :WarningCode, :none, 2025, 11
4576
+ deprecate :WarningCode=, :none, 2025, 11
4610
4577
 
4611
4578
  def initialize(cnname=nil, enname=nil, telexcode=nil, sex=nil, birthday=nil, permanent=nil, idnum=nil, symbol=nil, firstissuedate=nil, currentissuedate=nil, fakedetectresult=nil, headimage=nil, smallheadimage=nil, warningcode=nil, warncardinfos=nil, windowembeddedtext=nil, requestid=nil)
4612
4579
  @CnName = cnname
@@ -4716,16 +4683,9 @@ module TencentCloud
4716
4683
 
4717
4684
  # HmtResidentPermitOCR请求参数结构体
4718
4685
  class HmtResidentPermitOCRRequest < TencentCloud::Common::AbstractModel
4719
- # @param ImageBase64: 图片的 Base64 值。
4720
- # 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
4721
- # 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
4722
- # 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
4686
+ # @param ImageBase64: 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
4723
4687
  # @type ImageBase64: String
4724
- # @param ImageUrl: 图片的 Url 地址。
4725
- # 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
4726
- # 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
4727
- # 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
4728
- # 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
4688
+ # @param ImageUrl: 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
4729
4689
  # @type ImageUrl: String
4730
4690
  # @param CardSide: FRONT:有照片的一面(人像面),
4731
4691
  # BACK:无照片的一面(国徽面),
@@ -5073,8 +5033,8 @@ module TencentCloud
5073
5033
 
5074
5034
  attr_accessor :ImageBase64, :ImageUrl, :CardSide, :Config, :EnableRecognitionRectify, :EnableReflectDetail, :EnableDateVerify, :CardWarnType
5075
5035
  extend Gem::Deprecate
5076
- deprecate :EnableDateVerify, :none, 2025, 10
5077
- deprecate :EnableDateVerify=, :none, 2025, 10
5036
+ deprecate :EnableDateVerify, :none, 2025, 11
5037
+ deprecate :EnableDateVerify=, :none, 2025, 11
5078
5038
 
5079
5039
  def initialize(imagebase64=nil, imageurl=nil, cardside=nil, config=nil, enablerecognitionrectify=nil, enablereflectdetail=nil, enabledateverify=nil, cardwarntype=nil)
5080
5040
  @ImageBase64 = imagebase64
@@ -5330,62 +5290,6 @@ module TencentCloud
5330
5290
  end
5331
5291
  end
5332
5292
 
5333
- # InstitutionOCR请求参数结构体
5334
- class InstitutionOCRRequest < TencentCloud::Common::AbstractModel
5335
- # @param ImageBase64: 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
5336
- # @type ImageBase64: String
5337
- # @param ImageUrl: 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
5338
- # @type ImageUrl: String
5339
-
5340
- attr_accessor :ImageBase64, :ImageUrl
5341
-
5342
- def initialize(imagebase64=nil, imageurl=nil)
5343
- @ImageBase64 = imagebase64
5344
- @ImageUrl = imageurl
5345
- end
5346
-
5347
- def deserialize(params)
5348
- @ImageBase64 = params['ImageBase64']
5349
- @ImageUrl = params['ImageUrl']
5350
- end
5351
- end
5352
-
5353
- # InstitutionOCR返回参数结构体
5354
- class InstitutionOCRResponse < TencentCloud::Common::AbstractModel
5355
- # @param RegId: 注册号
5356
- # @type RegId: String
5357
- # @param ValidDate: 有效期
5358
- # @type ValidDate: String
5359
- # @param Location: 住所
5360
- # @type Location: String
5361
- # @param Name: 名称
5362
- # @type Name: String
5363
- # @param LegalPerson: 法定代表人
5364
- # @type LegalPerson: String
5365
- # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5366
- # @type RequestId: String
5367
-
5368
- attr_accessor :RegId, :ValidDate, :Location, :Name, :LegalPerson, :RequestId
5369
-
5370
- def initialize(regid=nil, validdate=nil, location=nil, name=nil, legalperson=nil, requestid=nil)
5371
- @RegId = regid
5372
- @ValidDate = validdate
5373
- @Location = location
5374
- @Name = name
5375
- @LegalPerson = legalperson
5376
- @RequestId = requestid
5377
- end
5378
-
5379
- def deserialize(params)
5380
- @RegId = params['RegId']
5381
- @ValidDate = params['ValidDate']
5382
- @Location = params['Location']
5383
- @Name = params['Name']
5384
- @LegalPerson = params['LegalPerson']
5385
- @RequestId = params['RequestId']
5386
- end
5387
- end
5388
-
5389
5293
  # 保险单据信息
5390
5294
  class InsuranceBillInfo < TencentCloud::Common::AbstractModel
5391
5295
  # @param Name: 识别出的字段名称(关键字),支持以下字段:
@@ -6048,10 +5952,10 @@ module TencentCloud
6048
5952
 
6049
5953
  attr_accessor :ID, :Name, :Address, :Sex, :Warn, :Image, :AdvancedInfo, :Type, :Birthday, :MyKadNumber, :WarnCardInfos, :RequestId
6050
5954
  extend Gem::Deprecate
6051
- deprecate :Warn, :none, 2025, 10
6052
- deprecate :Warn=, :none, 2025, 10
6053
- deprecate :AdvancedInfo, :none, 2025, 10
6054
- deprecate :AdvancedInfo=, :none, 2025, 10
5955
+ deprecate :Warn, :none, 2025, 11
5956
+ deprecate :Warn=, :none, 2025, 11
5957
+ deprecate :AdvancedInfo, :none, 2025, 11
5958
+ deprecate :AdvancedInfo=, :none, 2025, 11
6055
5959
 
6056
5960
  def initialize(id=nil, name=nil, address=nil, sex=nil, warn=nil, image=nil, advancedinfo=nil, type=nil, birthday=nil, mykadnumber=nil, warncardinfos=nil, requestid=nil)
6057
5961
  @ID = id
@@ -6160,10 +6064,10 @@ module TencentCloud
6160
6064
 
6161
6065
  attr_accessor :ID, :Name, :DateOfBirth, :Sex, :DateOfExpiration, :IssuingCountry, :Nationality, :Warn, :Image, :AdvancedInfo, :CodeSet, :CodeCrc, :Surname, :GivenName, :Type, :PassportRecognizeInfos, :WarnCardInfos, :CardCount, :RequestId
6162
6066
  extend Gem::Deprecate
6163
- deprecate :Warn, :none, 2025, 10
6164
- deprecate :Warn=, :none, 2025, 10
6165
- deprecate :AdvancedInfo, :none, 2025, 10
6166
- deprecate :AdvancedInfo=, :none, 2025, 10
6067
+ deprecate :Warn, :none, 2025, 11
6068
+ deprecate :Warn=, :none, 2025, 11
6069
+ deprecate :AdvancedInfo, :none, 2025, 11
6070
+ deprecate :AdvancedInfo=, :none, 2025, 11
6167
6071
 
6168
6072
  def initialize(id=nil, name=nil, dateofbirth=nil, sex=nil, dateofexpiration=nil, issuingcountry=nil, nationality=nil, warn=nil, image=nil, advancedinfo=nil, codeset=nil, codecrc=nil, surname=nil, givenname=nil, type=nil, passportrecognizeinfos=nil, warncardinfos=nil, cardcount=nil, requestid=nil)
6169
6073
  @ID = id
@@ -7191,7 +7095,7 @@ module TencentCloud
7191
7095
  class OnlineTaxiItinerary < TencentCloud::Common::AbstractModel
7192
7096
  # @param Title: 发票名称
7193
7097
  # @type Title: String
7194
- # @param Content: 识别出的字段名称(关键字)
7098
+ # @param Content: 识别出的字段名称
7195
7099
  # @type Content: Array
7196
7100
 
7197
7101
  attr_accessor :Title, :Content
@@ -7206,9 +7110,9 @@ module TencentCloud
7206
7110
  unless params['Content'].nil?
7207
7111
  @Content = []
7208
7112
  params['Content'].each do |i|
7209
- otherinvoiceitem_tmp = OtherInvoiceItem.new
7210
- otherinvoiceitem_tmp.deserialize(i)
7211
- @Content << otherinvoiceitem_tmp
7113
+ onlinetaxiitineraryinfo_tmp = OnlineTaxiItineraryInfo.new
7114
+ onlinetaxiitineraryinfo_tmp.deserialize(i)
7115
+ @Content << onlinetaxiitineraryinfo_tmp
7212
7116
  end
7213
7117
  end
7214
7118
  end
@@ -7239,58 +7143,6 @@ module TencentCloud
7239
7143
  end
7240
7144
  end
7241
7145
 
7242
- # OrgCodeCertOCR请求参数结构体
7243
- class OrgCodeCertOCRRequest < TencentCloud::Common::AbstractModel
7244
- # @param ImageBase64: 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
7245
- # @type ImageBase64: String
7246
- # @param ImageUrl: 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
7247
- # @type ImageUrl: String
7248
-
7249
- attr_accessor :ImageBase64, :ImageUrl
7250
-
7251
- def initialize(imagebase64=nil, imageurl=nil)
7252
- @ImageBase64 = imagebase64
7253
- @ImageUrl = imageurl
7254
- end
7255
-
7256
- def deserialize(params)
7257
- @ImageBase64 = params['ImageBase64']
7258
- @ImageUrl = params['ImageUrl']
7259
- end
7260
- end
7261
-
7262
- # OrgCodeCertOCR返回参数结构体
7263
- class OrgCodeCertOCRResponse < TencentCloud::Common::AbstractModel
7264
- # @param OrgCode: 代码
7265
- # @type OrgCode: String
7266
- # @param Name: 机构名称
7267
- # @type Name: String
7268
- # @param Address: 地址
7269
- # @type Address: String
7270
- # @param ValidDate: 有效期
7271
- # @type ValidDate: String
7272
- # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
7273
- # @type RequestId: String
7274
-
7275
- attr_accessor :OrgCode, :Name, :Address, :ValidDate, :RequestId
7276
-
7277
- def initialize(orgcode=nil, name=nil, address=nil, validdate=nil, requestid=nil)
7278
- @OrgCode = orgcode
7279
- @Name = name
7280
- @Address = address
7281
- @ValidDate = validdate
7282
- @RequestId = requestid
7283
- end
7284
-
7285
- def deserialize(params)
7286
- @OrgCode = params['OrgCode']
7287
- @Name = params['Name']
7288
- @Address = params['Address']
7289
- @ValidDate = params['ValidDate']
7290
- @RequestId = params['RequestId']
7291
- end
7292
- end
7293
-
7294
7146
  # 其他发票
7295
7147
  class OtherInvoice < TencentCloud::Common::AbstractModel
7296
7148
  # @param Title: 发票名称
@@ -7881,66 +7733,6 @@ module TencentCloud
7881
7733
  end
7882
7734
  end
7883
7735
 
7884
- # PropOwnerCertOCR请求参数结构体
7885
- class PropOwnerCertOCRRequest < TencentCloud::Common::AbstractModel
7886
- # @param ImageBase64: 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
7887
- # @type ImageBase64: String
7888
- # @param ImageUrl: 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
7889
- # @type ImageUrl: String
7890
-
7891
- attr_accessor :ImageBase64, :ImageUrl
7892
-
7893
- def initialize(imagebase64=nil, imageurl=nil)
7894
- @ImageBase64 = imagebase64
7895
- @ImageUrl = imageurl
7896
- end
7897
-
7898
- def deserialize(params)
7899
- @ImageBase64 = params['ImageBase64']
7900
- @ImageUrl = params['ImageUrl']
7901
- end
7902
- end
7903
-
7904
- # PropOwnerCertOCR返回参数结构体
7905
- class PropOwnerCertOCRResponse < TencentCloud::Common::AbstractModel
7906
- # @param Owner: 房地产权利人
7907
- # @type Owner: String
7908
- # @param Possession: 共有情况
7909
- # @type Possession: String
7910
- # @param RegisterTime: 登记时间
7911
- # @type RegisterTime: String
7912
- # @param Purpose: 规划用途
7913
- # @type Purpose: String
7914
- # @param Nature: 房屋性质
7915
- # @type Nature: String
7916
- # @param Location: 房地坐落
7917
- # @type Location: String
7918
- # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
7919
- # @type RequestId: String
7920
-
7921
- attr_accessor :Owner, :Possession, :RegisterTime, :Purpose, :Nature, :Location, :RequestId
7922
-
7923
- def initialize(owner=nil, possession=nil, registertime=nil, purpose=nil, nature=nil, location=nil, requestid=nil)
7924
- @Owner = owner
7925
- @Possession = possession
7926
- @RegisterTime = registertime
7927
- @Purpose = purpose
7928
- @Nature = nature
7929
- @Location = location
7930
- @RequestId = requestid
7931
- end
7932
-
7933
- def deserialize(params)
7934
- @Owner = params['Owner']
7935
- @Possession = params['Possession']
7936
- @RegisterTime = params['RegisterTime']
7937
- @Purpose = params['Purpose']
7938
- @Nature = params['Nature']
7939
- @Location = params['Location']
7940
- @RequestId = params['RequestId']
7941
- end
7942
- end
7943
-
7944
7736
  # 图片大小
7945
7737
  class QrcodeImgSize < TencentCloud::Common::AbstractModel
7946
7738
  # @param Wide: 宽
@@ -8270,6 +8062,69 @@ module TencentCloud
8270
8062
  end
8271
8063
  end
8272
8064
 
8065
+ # QuestionSplitLayoutOCR请求参数结构体
8066
+ class QuestionSplitLayoutOCRRequest < TencentCloud::Common::AbstractModel
8067
+ # @param ImageUrl: 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
8068
+ # @type ImageUrl: String
8069
+ # @param ImageBase64: 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
8070
+ # @type ImageBase64: String
8071
+ # @param IsPdf: 是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。
8072
+ # @type IsPdf: Boolean
8073
+ # @param PdfPageNumber: 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
8074
+ # @type PdfPageNumber: Integer
8075
+ # @param EnableImageCrop: 是否开启切边增强和弯曲矫正,默认为false不开启
8076
+ # @type EnableImageCrop: Boolean
8077
+ # @param UseNewModel: false: 使用当前默认模型 true: 使用新的多模态推理模型,速度更快推理效果更强,仅 `EnableOnlyDetectBorder` 为 `true` 时生效,公测中
8078
+ # @type UseNewModel: Boolean
8079
+
8080
+ attr_accessor :ImageUrl, :ImageBase64, :IsPdf, :PdfPageNumber, :EnableImageCrop, :UseNewModel
8081
+
8082
+ def initialize(imageurl=nil, imagebase64=nil, ispdf=nil, pdfpagenumber=nil, enableimagecrop=nil, usenewmodel=nil)
8083
+ @ImageUrl = imageurl
8084
+ @ImageBase64 = imagebase64
8085
+ @IsPdf = ispdf
8086
+ @PdfPageNumber = pdfpagenumber
8087
+ @EnableImageCrop = enableimagecrop
8088
+ @UseNewModel = usenewmodel
8089
+ end
8090
+
8091
+ def deserialize(params)
8092
+ @ImageUrl = params['ImageUrl']
8093
+ @ImageBase64 = params['ImageBase64']
8094
+ @IsPdf = params['IsPdf']
8095
+ @PdfPageNumber = params['PdfPageNumber']
8096
+ @EnableImageCrop = params['EnableImageCrop']
8097
+ @UseNewModel = params['UseNewModel']
8098
+ end
8099
+ end
8100
+
8101
+ # QuestionSplitLayoutOCR返回参数结构体
8102
+ class QuestionSplitLayoutOCRResponse < TencentCloud::Common::AbstractModel
8103
+ # @param QuestionInfo: 检测到的文本信息
8104
+ # @type QuestionInfo: Array
8105
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
8106
+ # @type RequestId: String
8107
+
8108
+ attr_accessor :QuestionInfo, :RequestId
8109
+
8110
+ def initialize(questioninfo=nil, requestid=nil)
8111
+ @QuestionInfo = questioninfo
8112
+ @RequestId = requestid
8113
+ end
8114
+
8115
+ def deserialize(params)
8116
+ unless params['QuestionInfo'].nil?
8117
+ @QuestionInfo = []
8118
+ params['QuestionInfo'].each do |i|
8119
+ questioninfo_tmp = QuestionInfo.new
8120
+ questioninfo_tmp.deserialize(i)
8121
+ @QuestionInfo << questioninfo_tmp
8122
+ end
8123
+ end
8124
+ @RequestId = params['RequestId']
8125
+ end
8126
+ end
8127
+
8273
8128
  # QuestionSplitOCR请求参数结构体
8274
8129
  class QuestionSplitOCRRequest < TencentCloud::Common::AbstractModel
8275
8130
  # @param ImageUrl: 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
@@ -8821,98 +8676,6 @@ module TencentCloud
8821
8676
  end
8822
8677
  end
8823
8678
 
8824
- # RecognizeForeignPermanentResidentIdCard请求参数结构体
8825
- class RecognizeForeignPermanentResidentIdCardRequest < TencentCloud::Common::AbstractModel
8826
- # @param ImageUrl: 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。示例值:https://ocr-demo-1254418846.cos.ap-guangzhou.myqcloud.com/docume
8827
- # @type ImageUrl: String
8828
- # @param ImageBase64: 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
8829
- # @type ImageBase64: String
8830
- # @param EnablePdf: 是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。
8831
- # @type EnablePdf: Boolean
8832
- # @param PdfPageNumber: 需要识别的PDF页面的对应页码,传入时仅支持PDF单页识别,当上传文件为PDF且EnablePdf参数值为true时有效,默认值为1。
8833
- # 示例值:1
8834
- # @type PdfPageNumber: Integer
8835
- # @param CropPortrait: 是否返回头像和位置坐标
8836
- # @type CropPortrait: Boolean
8837
-
8838
- attr_accessor :ImageUrl, :ImageBase64, :EnablePdf, :PdfPageNumber, :CropPortrait
8839
-
8840
- def initialize(imageurl=nil, imagebase64=nil, enablepdf=nil, pdfpagenumber=nil, cropportrait=nil)
8841
- @ImageUrl = imageurl
8842
- @ImageBase64 = imagebase64
8843
- @EnablePdf = enablepdf
8844
- @PdfPageNumber = pdfpagenumber
8845
- @CropPortrait = cropportrait
8846
- end
8847
-
8848
- def deserialize(params)
8849
- @ImageUrl = params['ImageUrl']
8850
- @ImageBase64 = params['ImageBase64']
8851
- @EnablePdf = params['EnablePdf']
8852
- @PdfPageNumber = params['PdfPageNumber']
8853
- @CropPortrait = params['CropPortrait']
8854
- end
8855
- end
8856
-
8857
- # RecognizeForeignPermanentResidentIdCard返回参数结构体
8858
- class RecognizeForeignPermanentResidentIdCardResponse < TencentCloud::Common::AbstractModel
8859
- # @param CnName: 中文姓名。
8860
- # @type CnName: String
8861
- # @param EnName: 英文名。
8862
- # @type EnName: String
8863
- # @param Sex: 性别。
8864
- # @type Sex: String
8865
- # @param DateOfBirth: 出生日期。规范格式为 XXXX年XX月XX日。
8866
- # @type DateOfBirth: String
8867
- # @param Nationality: 国籍。
8868
- # @type Nationality: String
8869
- # @param PeriodOfValidity: 有效期限。
8870
- # @type PeriodOfValidity: String
8871
- # @param No: 证件号码。
8872
- # @type No: String
8873
- # @param PreviousNumber: 曾持证件号码。
8874
- # @type PreviousNumber: String
8875
- # @param IssuedAuthority: 签发机关。
8876
- # @type IssuedAuthority: String
8877
- # @param PortraitImageInfo: 头像和坐标信息。
8878
- # @type PortraitImageInfo: :class:`Tencentcloud::Ocr.v20181119.models.PortraitImageInfo`
8879
- # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
8880
- # @type RequestId: String
8881
-
8882
- attr_accessor :CnName, :EnName, :Sex, :DateOfBirth, :Nationality, :PeriodOfValidity, :No, :PreviousNumber, :IssuedAuthority, :PortraitImageInfo, :RequestId
8883
-
8884
- def initialize(cnname=nil, enname=nil, sex=nil, dateofbirth=nil, nationality=nil, periodofvalidity=nil, no=nil, previousnumber=nil, issuedauthority=nil, portraitimageinfo=nil, requestid=nil)
8885
- @CnName = cnname
8886
- @EnName = enname
8887
- @Sex = sex
8888
- @DateOfBirth = dateofbirth
8889
- @Nationality = nationality
8890
- @PeriodOfValidity = periodofvalidity
8891
- @No = no
8892
- @PreviousNumber = previousnumber
8893
- @IssuedAuthority = issuedauthority
8894
- @PortraitImageInfo = portraitimageinfo
8895
- @RequestId = requestid
8896
- end
8897
-
8898
- def deserialize(params)
8899
- @CnName = params['CnName']
8900
- @EnName = params['EnName']
8901
- @Sex = params['Sex']
8902
- @DateOfBirth = params['DateOfBirth']
8903
- @Nationality = params['Nationality']
8904
- @PeriodOfValidity = params['PeriodOfValidity']
8905
- @No = params['No']
8906
- @PreviousNumber = params['PreviousNumber']
8907
- @IssuedAuthority = params['IssuedAuthority']
8908
- unless params['PortraitImageInfo'].nil?
8909
- @PortraitImageInfo = PortraitImageInfo.new
8910
- @PortraitImageInfo.deserialize(params['PortraitImageInfo'])
8911
- end
8912
- @RequestId = params['RequestId']
8913
- end
8914
- end
8915
-
8916
8679
  # RecognizeFormulaOCR请求参数结构体
8917
8680
  class RecognizeFormulaOCRRequest < TencentCloud::Common::AbstractModel
8918
8681
  # @param ImageUrl: 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
@@ -9227,91 +8990,6 @@ module TencentCloud
9227
8990
  end
9228
8991
  end
9229
8992
 
9230
- # RecognizeGeneralTextImageWarn请求参数结构体
9231
- class RecognizeGeneralTextImageWarnRequest < TencentCloud::Common::AbstractModel
9232
- # @param ImageUrl: 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
9233
- # @type ImageUrl: String
9234
- # @param ImageBase64: 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。支持的图片像素:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
9235
- # @type ImageBase64: String
9236
- # @param EnablePdf: 是否开启PDF识别,默认值为true,开启后可同时支持图片和PDF的识别。 示例值:false
9237
- # @type EnablePdf: Boolean
9238
- # @param PdfPageNumber: 需要识别的PDF页面的对应页码,传入时仅支持PDF单页识别,当上传文件为PDF且EnablePdf参数值为true时有效,默认值为1。 示例值:1
9239
- # @type PdfPageNumber: Integer
9240
- # @param Type: 支持的模板类型
9241
- # - General 通用告警(支持所有类型告警)
9242
- # - LicensePlate 车牌告警(支持翻拍告警)
9243
- # @type Type: String
9244
-
9245
- attr_accessor :ImageUrl, :ImageBase64, :EnablePdf, :PdfPageNumber, :Type
9246
-
9247
- def initialize(imageurl=nil, imagebase64=nil, enablepdf=nil, pdfpagenumber=nil, type=nil)
9248
- @ImageUrl = imageurl
9249
- @ImageBase64 = imagebase64
9250
- @EnablePdf = enablepdf
9251
- @PdfPageNumber = pdfpagenumber
9252
- @Type = type
9253
- end
9254
-
9255
- def deserialize(params)
9256
- @ImageUrl = params['ImageUrl']
9257
- @ImageBase64 = params['ImageBase64']
9258
- @EnablePdf = params['EnablePdf']
9259
- @PdfPageNumber = params['PdfPageNumber']
9260
- @Type = params['Type']
9261
- end
9262
- end
9263
-
9264
- # RecognizeGeneralTextImageWarn返回参数结构体
9265
- class RecognizeGeneralTextImageWarnResponse < TencentCloud::Common::AbstractModel
9266
- # @param Copy: 复印告警信息
9267
- # @type Copy: :class:`Tencentcloud::Ocr.v20181119.models.GeneralWarnInfo`
9268
- # @param Reprint: 翻拍告警信息
9269
- # @type Reprint: :class:`Tencentcloud::Ocr.v20181119.models.GeneralWarnInfo`
9270
- # @param Blur: 模糊告警信息
9271
- # @type Blur: :class:`Tencentcloud::Ocr.v20181119.models.GeneralWarnInfo`
9272
- # @param Reflection: 反光告警信息
9273
- # @type Reflection: :class:`Tencentcloud::Ocr.v20181119.models.GeneralWarnInfo`
9274
- # @param BorderIncomplete: 边框不完整告警信息
9275
- # @type BorderIncomplete: :class:`Tencentcloud::Ocr.v20181119.models.GeneralWarnInfo`
9276
- # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
9277
- # @type RequestId: String
9278
-
9279
- attr_accessor :Copy, :Reprint, :Blur, :Reflection, :BorderIncomplete, :RequestId
9280
-
9281
- def initialize(copy=nil, reprint=nil, blur=nil, reflection=nil, borderincomplete=nil, requestid=nil)
9282
- @Copy = copy
9283
- @Reprint = reprint
9284
- @Blur = blur
9285
- @Reflection = reflection
9286
- @BorderIncomplete = borderincomplete
9287
- @RequestId = requestid
9288
- end
9289
-
9290
- def deserialize(params)
9291
- unless params['Copy'].nil?
9292
- @Copy = GeneralWarnInfo.new
9293
- @Copy.deserialize(params['Copy'])
9294
- end
9295
- unless params['Reprint'].nil?
9296
- @Reprint = GeneralWarnInfo.new
9297
- @Reprint.deserialize(params['Reprint'])
9298
- end
9299
- unless params['Blur'].nil?
9300
- @Blur = GeneralWarnInfo.new
9301
- @Blur.deserialize(params['Blur'])
9302
- end
9303
- unless params['Reflection'].nil?
9304
- @Reflection = GeneralWarnInfo.new
9305
- @Reflection.deserialize(params['Reflection'])
9306
- end
9307
- unless params['BorderIncomplete'].nil?
9308
- @BorderIncomplete = GeneralWarnInfo.new
9309
- @BorderIncomplete.deserialize(params['BorderIncomplete'])
9310
- end
9311
- @RequestId = params['RequestId']
9312
- end
9313
- end
9314
-
9315
8993
  # RecognizeHealthCodeOCR请求参数结构体
9316
8994
  class RecognizeHealthCodeOCRRequest < TencentCloud::Common::AbstractModel
9317
8995
  # @param ImageBase64: 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
@@ -9849,8 +9527,8 @@ module TencentCloud
9849
9527
 
9850
9528
  attr_accessor :ID, :ThaiName, :EnFirstName, :EnLastName, :IssueDate, :ExpirationDate, :EnIssueDate, :EnExpirationDate, :Birthday, :EnBirthday, :Religion, :SerialNumber, :Address, :LaserID, :PortraitImage, :WarnCardInfos, :AdvancedInfo, :CardCount, :RequestId
9851
9529
  extend Gem::Deprecate
9852
- deprecate :AdvancedInfo, :none, 2025, 10
9853
- deprecate :AdvancedInfo=, :none, 2025, 10
9530
+ deprecate :AdvancedInfo, :none, 2025, 11
9531
+ deprecate :AdvancedInfo=, :none, 2025, 11
9854
9532
 
9855
9533
  def initialize(id=nil, thainame=nil, enfirstname=nil, enlastname=nil, issuedate=nil, expirationdate=nil, enissuedate=nil, enexpirationdate=nil, birthday=nil, enbirthday=nil, religion=nil, serialnumber=nil, address=nil, laserid=nil, portraitimage=nil, warncardinfos=nil, advancedinfo=nil, cardcount=nil, requestid=nil)
9856
9534
  @ID = id
@@ -11441,8 +11119,8 @@ module TencentCloud
11441
11119
 
11442
11120
  attr_accessor :ImageBase64, :ImageUrl, :PdfPageNumber, :ItemNames, :EnableCoord, :FileStartPageNumber, :FileEndPageNumber
11443
11121
  extend Gem::Deprecate
11444
- deprecate :PdfPageNumber, :none, 2025, 10
11445
- deprecate :PdfPageNumber=, :none, 2025, 10
11122
+ deprecate :PdfPageNumber, :none, 2025, 11
11123
+ deprecate :PdfPageNumber=, :none, 2025, 11
11446
11124
 
11447
11125
  def initialize(imagebase64=nil, imageurl=nil, pdfpagenumber=nil, itemnames=nil, enablecoord=nil, filestartpagenumber=nil, fileendpagenumber=nil)
11448
11126
  @ImageBase64 = imagebase64
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: 3.0.1158
4
+ version: 3.0.1161
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-10-21 00:00:00.000000000 Z
11
+ date: 2025-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common
@@ -33,8 +33,8 @@ executables: []
33
33
  extensions: []
34
34
  extra_rdoc_files: []
35
35
  files:
36
- - lib/v20181119/models.rb
37
36
  - lib/v20181119/client.rb
37
+ - lib/v20181119/models.rb
38
38
  - lib/tencentcloud-sdk-ocr.rb
39
39
  - lib/VERSION
40
40
  homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby