tencentcloud-sdk-ocr 3.0.563 → 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: a743fa0f937810c0e2d16a434fe9afaa21b12aaa
4
- data.tar.gz: 4bb96cfc88b6c0e4b5504d28f0e33058e1d971f5
3
+ metadata.gz: eaa1ef18af9afcf24a32e3c92ad78566dcbf80c1
4
+ data.tar.gz: 334b618f835b24c2a377680567d464b9a66f3efa
5
5
  SHA512:
6
- metadata.gz: d254dd54b662641407c318ac20b3863f283e1b652aac6726abb66a35266f2820ba1094aec0ddb584ea782a7223f068444be982d77857782756fc1c49f5195efd
7
- data.tar.gz: a7dbdcbc86a2f8d3d2c3992dd1e994fdbc00b02b0d2ce155f1c02a2e4c3f12a2d0f5e94be312044fc5ace8a49e68fd6a5bc684eb77f962aa45932b8daa0d5ba5
6
+ metadata.gz: dc511422ebcdf696bf7e111c1fe47fce40eec8613edcd4445549a8ef73eaae4c37cd463b5753997a168f0fa237aaebb8a2c0dad421b61a69e10cdd02349251ea
7
+ data.tar.gz: aec38a0f599a533f226f24fe9876e953ee5d1fd9a3f5a460503f1126b1a555134d5ede66147bc054774991c1d7035904437730766d7ecd44acee5fdce64be26b
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.563
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次/秒。