tencentcloud-sdk-ocr 3.0.621 → 3.0.622

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: 72cb537dc7aed54b3a0810982d558aabc2cd2ff7
4
- data.tar.gz: ca62c415c14276eb0088164b591680aa25102f01
3
+ metadata.gz: 0a5ced542bbc5a65de3de89b8e00a9451e7a1b2c
4
+ data.tar.gz: c073adb2f6a9b35a4a2e078bfaabe2d4b537b82e
5
5
  SHA512:
6
- metadata.gz: 0f719f6442c4b27470311e82ef30fd3a5c7198aa39e942805fc3c7727f3fb57869b0fcff520e1e24154edaa3caa20e4552930df98c1db4c3aac5501ade3cabe7
7
- data.tar.gz: 4e1fceda0ddab6bf9d749b1a580503259b2aaed307612269b3b86368355ee7113b9c4713dab9ff3a61b0315fbaa7c53b341712fef8a38049a2e9642d81446d0f
6
+ metadata.gz: e7f37d94e154dbac728d2f7c5815148d652d9ae9d6f4bbaef663bb5a5bfe93c177b2b37cad8017979bd915d8a51f3ded72567582ddc702b578af7153146915a1
7
+ data.tar.gz: 115480c0ba0555244a5a99c3ee4d5d482a438816552c7393c968d041f0d7ebf1bbde41960d1c20e91c9b72a2a919ec802065bb563caaabe2db924295dfccc939
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.621
1
+ 3.0.622
@@ -2291,7 +2291,7 @@ module TencentCloud
2291
2291
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2292
2292
  end
2293
2293
 
2294
- # 本接口支持增值税专用发票、增值税普通发票、增值税电子专票、增值税电子普票、电子发票(普通发票)、电子发票(增值税专用发票)德全字段的内容检测和识别,包括发票代码、发票号码、打印发票代码、打印发票号码、开票日期、合计金额、校验码、税率、合计税额、价税合计、购买方识别号、复核、销售方识别号、开票人、密码区1、密码区2、密码区3、密码区4、发票名称、购买方名称、销售方名称、服务名称、备注、规格型号、数量、单价、金额、税额、收款人等字段,点击[立即试用](https://cloud.tencent.com/product/ocr)。
2294
+ # 本接口支持增值税专用发票、增值税普通发票、增值税电子专票、增值税电子普票、电子发票(普通发票)、电子发票(增值税专用发票)全字段的内容检测和识别,包括发票代码、发票号码、打印发票代码、打印发票号码、开票日期、合计金额、校验码、税率、合计税额、价税合计、购买方识别号、复核、销售方识别号、开票人、密码区1、密码区2、密码区3、密码区4、发票名称、购买方名称、销售方名称、服务名称、备注、规格型号、数量、单价、金额、税额、收款人等字段,点击[立即试用](https://cloud.tencent.com/product/ocr)。
2295
2295
 
2296
2296
  # 默认接口请求频率限制:10次/秒。
2297
2297
 
@@ -2934,14 +2934,17 @@ module TencentCloud
2934
2934
  # API 3.0 Explorer 设置方式参考:
2935
2935
  # Config = {"CropIdCard":true,"CropPortrait":true}
2936
2936
  # @type Config: String
2937
+ # @param EnableRecognitionRectify: 默认值为true,打开识别结果纠正开关。开关开启后,身份证号、出生日期、性别,三个字段会进行矫正补齐,统一结果输出;若关闭此开关,以上三个字段不会进行矫正补齐,保持原始识别结果输出,若原图出现篡改情况,这三个字段的识别结果可能会不统一。
2938
+ # @type EnableRecognitionRectify: Boolean
2937
2939
 
2938
- attr_accessor :ImageBase64, :ImageUrl, :CardSide, :Config
2940
+ attr_accessor :ImageBase64, :ImageUrl, :CardSide, :Config, :EnableRecognitionRectify
2939
2941
 
2940
- def initialize(imagebase64=nil, imageurl=nil, cardside=nil, config=nil)
2942
+ def initialize(imagebase64=nil, imageurl=nil, cardside=nil, config=nil, enablerecognitionrectify=nil)
2941
2943
  @ImageBase64 = imagebase64
2942
2944
  @ImageUrl = imageurl
2943
2945
  @CardSide = cardside
2944
2946
  @Config = config
2947
+ @EnableRecognitionRectify = enablerecognitionrectify
2945
2948
  end
2946
2949
 
2947
2950
  def deserialize(params)
@@ -2949,6 +2952,7 @@ module TencentCloud
2949
2952
  @ImageUrl = params['ImageUrl']
2950
2953
  @CardSide = params['CardSide']
2951
2954
  @Config = params['Config']
2955
+ @EnableRecognitionRectify = params['EnableRecognitionRectify']
2952
2956
  end
2953
2957
  end
2954
2958
 
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.621
4
+ version: 3.0.622
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-26 00:00:00.000000000 Z
11
+ date: 2023-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common