tencentcloud-sdk-ocr 3.0.561 → 3.0.564

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0458062322c326db10187889f2487f18a3d9f4f1
4
- data.tar.gz: 2a97b6989648bad2624dfbfc647c7b56fd07a76d
3
+ metadata.gz: eaa1ef18af9afcf24a32e3c92ad78566dcbf80c1
4
+ data.tar.gz: 334b618f835b24c2a377680567d464b9a66f3efa
5
5
  SHA512:
6
- metadata.gz: 71b41b13650c088c375572d43b73b461672fd00c912f8e29e600bd47effdec5df58f894135ed1d5dd2ceb9948afbbce67d8219b2796c32e666c974d857105048
7
- data.tar.gz: 663cd87f2673f7e914a42e0f9037c0ee91526238a623a95c2d7e839ab0b312356d442fadc476b9e76e98269317545003bd970efef5f9a3b2de4b2168cea63460
6
+ metadata.gz: dc511422ebcdf696bf7e111c1fe47fce40eec8613edcd4445549a8ef73eaae4c37cd463b5753997a168f0fa237aaebb8a2c0dad421b61a69e10cdd02349251ea
7
+ data.tar.gz: aec38a0f599a533f226f24fe9876e953ee5d1fd9a3f5a460503f1126b1a555134d5ede66147bc054774991c1d7035904437730766d7ecd44acee5fdce64be26b
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.561
1
+ 3.0.564
@@ -1481,6 +1481,32 @@ module TencentCloud
1481
1481
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1482
1482
  end
1483
1483
 
1484
+ # 本接口支持 单张、多张、多类型 票据的混合识别,同时支持自选需要识别的票据类型,已支持票种包括:增值税发票(专票、普票、卷票)、全电发票、非税发票、定额发票、通用机打发票、购车发票、火车票、出租车发票、机票行程单、汽车票、轮船票、过路过桥费发票共14种标准报销发票,并支持其他类发票的识别。
1485
+
1486
+ # 默认接口请求频率限制:5次/秒。
1487
+
1488
+ # @param request: Request instance for RecognizeGeneralInvoice.
1489
+ # @type request: :class:`Tencentcloud::ocr::V20181119::RecognizeGeneralInvoiceRequest`
1490
+ # @rtype: :class:`Tencentcloud::ocr::V20181119::RecognizeGeneralInvoiceResponse`
1491
+ def RecognizeGeneralInvoice(request)
1492
+ body = send_request('RecognizeGeneralInvoice', request.serialize)
1493
+ response = JSON.parse(body)
1494
+ if response['Response'].key?('Error') == false
1495
+ model = RecognizeGeneralInvoiceResponse.new
1496
+ model.deserialize(response['Response'])
1497
+ model
1498
+ else
1499
+ code = response['Response']['Error']['Code']
1500
+ message = response['Response']['Error']['Message']
1501
+ reqid = response['Response']['RequestId']
1502
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1503
+ end
1504
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1505
+ raise e
1506
+ rescue StandardError => e
1507
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1508
+ end
1509
+
1484
1510
  # 本接口支持北京、上海、广东、江苏、吉林、黑龙江、天津、辽宁、浙江、河南、四川、贵州、山东、安徽、福建、江西、湖北、湖南等省份健康码的识别,包括持码人姓名、持码人身份证号、健康码更新时间、健康码颜色、核酸检测结果、核酸检测间隔时长、核酸检测时间,疫苗接种信息,八个字段的识别结果输出。不同省市健康码显示的字段信息有所不同,上述字段的识别结果可能为空,以图片上具体展示的信息为准。
1485
1511
 
1486
1512
  # 默认接口请求频率限制:10次/秒。