tencentcloud-sdk-ocr 3.0.702 → 3.0.704

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/VERSION +1 -1
  3. data/lib/v20181119/models.rb +93 -9
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c33c130b3a1943968c9294a93b417ea6091e466d
4
- data.tar.gz: 724be60a5568acd7fed2383608cf287c33d4320b
3
+ metadata.gz: 30220191710fb33063098a245c5a77fc31a55dca
4
+ data.tar.gz: 47f41210032667a4c405d81a7f9ac52ddb45e97d
5
5
  SHA512:
6
- metadata.gz: 48f5c4106974a02ae4a5a206e6104a415267876e6801f9b0bbc42216da96a001b1f317a578c940728ccf13a55e151e7a49b2fc5d03bff08a82d9feacbb94533d
7
- data.tar.gz: 404385abaf79e622835e207534710d93fe76588c290619d4d1ea163bd775368c3edb82e0bbc0d05c8622ae9264951a6ec1c66031f8b9e76088217dab3ea7e97b
6
+ metadata.gz: 02d743ce812ba28fdafdc5ff0f4a8fed98796a04ca97f0eb240d2e5ef927280ff49dc4c778964a7d4d117d9207b05f7ad8441efd1b8e9a1382b003695a282451
7
+ data.tar.gz: bad1e85775a6f69a0fcbad4f46a1a8b64fe9df34bb1d335e3be2dc90964870cd4da4ec69f3808d0a257cec88f9d3682d5054dda68cb834dbb4756289482a4991
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.702
1
+ 3.0.704
@@ -3096,15 +3096,20 @@ module TencentCloud
3096
3096
  # @type Config: String
3097
3097
  # @param EnableRecognitionRectify: 默认值为true,打开识别结果纠正开关。开关开启后,身份证号、出生日期、性别,三个字段会进行矫正补齐,统一结果输出;若关闭此开关,以上三个字段不会进行矫正补齐,保持原始识别结果输出,若原图出现篡改情况,这三个字段的识别结果可能会不统一。
3098
3098
  # @type EnableRecognitionRectify: Boolean
3099
+ # @param EnableReflectDetail: 默认值为false。
3099
3100
 
3100
- attr_accessor :ImageBase64, :ImageUrl, :CardSide, :Config, :EnableRecognitionRectify
3101
+ # 此开关需要在反光检测开关开启下才会生效(即此开关生效的前提是config入参里的"ReflectWarn":true),若EnableReflectDetail设置为true,则会返回反光点覆盖区域详情。反光点覆盖区域详情分为四部分:人像照片位置、国徽位置、识别字段位置、其他位置。一个反光点允许覆盖多个区域,且一张图片可能存在多个反光点。
3102
+ # @type EnableReflectDetail: Boolean
3101
3103
 
3102
- def initialize(imagebase64=nil, imageurl=nil, cardside=nil, config=nil, enablerecognitionrectify=nil)
3104
+ attr_accessor :ImageBase64, :ImageUrl, :CardSide, :Config, :EnableRecognitionRectify, :EnableReflectDetail
3105
+
3106
+ def initialize(imagebase64=nil, imageurl=nil, cardside=nil, config=nil, enablerecognitionrectify=nil, enablereflectdetail=nil)
3103
3107
  @ImageBase64 = imagebase64
3104
3108
  @ImageUrl = imageurl
3105
3109
  @CardSide = cardside
3106
3110
  @Config = config
3107
3111
  @EnableRecognitionRectify = enablerecognitionrectify
3112
+ @EnableReflectDetail = enablereflectdetail
3108
3113
  end
3109
3114
 
3110
3115
  def deserialize(params)
@@ -3113,6 +3118,7 @@ module TencentCloud
3113
3118
  @CardSide = params['CardSide']
3114
3119
  @Config = params['Config']
3115
3120
  @EnableRecognitionRectify = params['EnableRecognitionRectify']
3121
+ @EnableReflectDetail = params['EnableReflectDetail']
3116
3122
  end
3117
3123
  end
3118
3124
 
@@ -3151,12 +3157,14 @@ module TencentCloud
3151
3157
  # -9106 身份证疑似存在PS痕迹告警,
3152
3158
  # -9107 身份证反光告警。
3153
3159
  # @type AdvancedInfo: String
3160
+ # @param ReflectDetailInfos: 反光点覆盖区域详情结果,具体内容请点击左侧链接
3161
+ # @type ReflectDetailInfos: Array
3154
3162
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3155
3163
  # @type RequestId: String
3156
3164
 
3157
- attr_accessor :Name, :Sex, :Nation, :Birth, :Address, :IdNum, :Authority, :ValidDate, :AdvancedInfo, :RequestId
3165
+ attr_accessor :Name, :Sex, :Nation, :Birth, :Address, :IdNum, :Authority, :ValidDate, :AdvancedInfo, :ReflectDetailInfos, :RequestId
3158
3166
 
3159
- def initialize(name=nil, sex=nil, nation=nil, birth=nil, address=nil, idnum=nil, authority=nil, validdate=nil, advancedinfo=nil, requestid=nil)
3167
+ def initialize(name=nil, sex=nil, nation=nil, birth=nil, address=nil, idnum=nil, authority=nil, validdate=nil, advancedinfo=nil, reflectdetailinfos=nil, requestid=nil)
3160
3168
  @Name = name
3161
3169
  @Sex = sex
3162
3170
  @Nation = nation
@@ -3166,6 +3174,7 @@ module TencentCloud
3166
3174
  @Authority = authority
3167
3175
  @ValidDate = validdate
3168
3176
  @AdvancedInfo = advancedinfo
3177
+ @ReflectDetailInfos = reflectdetailinfos
3169
3178
  @RequestId = requestid
3170
3179
  end
3171
3180
 
@@ -3179,6 +3188,14 @@ module TencentCloud
3179
3188
  @Authority = params['Authority']
3180
3189
  @ValidDate = params['ValidDate']
3181
3190
  @AdvancedInfo = params['AdvancedInfo']
3191
+ unless params['ReflectDetailInfos'].nil?
3192
+ @ReflectDetailInfos = []
3193
+ params['ReflectDetailInfos'].each do |i|
3194
+ reflectdetailinfo_tmp = ReflectDetailInfo.new
3195
+ reflectdetailinfo_tmp.deserialize(i)
3196
+ @ReflectDetailInfos << reflectdetailinfo_tmp
3197
+ end
3198
+ end
3182
3199
  @RequestId = params['RequestId']
3183
3200
  end
3184
3201
  end
@@ -4768,8 +4785,12 @@ module TencentCloud
4768
4785
  # @type FormName: String
4769
4786
  # @param Issuer: 开票人
4770
4787
  # @type Issuer: String
4771
- # @param TaxNum: 完税凭证号码
4788
+ # @param TaxNum: 进口证明书号
4772
4789
  # @type TaxNum: String
4790
+ # @param TaxPayNum: 完税凭证号码
4791
+ # @type TaxPayNum: String
4792
+ # @param TaxCode: 税控码
4793
+ # @type TaxCode: String
4773
4794
  # @param MaxPeopleNum: 限乘人数
4774
4795
  # @type MaxPeopleNum: String
4775
4796
  # @param Origin: 产地
@@ -4781,9 +4802,9 @@ module TencentCloud
4781
4802
  # @param QRCodeMark: 是否存在二维码(1:有,0:无)
4782
4803
  # @type QRCodeMark: Integer
4783
4804
 
4784
- attr_accessor :Title, :Code, :Number, :Date, :PretaxAmount, :Total, :TotalCn, :Seller, :SellerTaxID, :SellerTel, :SellerAddress, :SellerBank, :SellerBankAccount, :Buyer, :BuyerTaxID, :BuyerID, :TaxAuthorities, :TaxAuthoritiesCode, :VIN, :VehicleModel, :VehicleEngineCode, :CertificateNumber, :InspectionNumber, :MachineID, :VehicleType, :Kind, :Province, :City, :Tax, :TaxRate, :CompanySealMark, :Tonnage, :Remark, :FormType, :FormName, :Issuer, :TaxNum, :MaxPeopleNum, :Origin, :MachineCode, :MachineNumber, :QRCodeMark
4805
+ attr_accessor :Title, :Code, :Number, :Date, :PretaxAmount, :Total, :TotalCn, :Seller, :SellerTaxID, :SellerTel, :SellerAddress, :SellerBank, :SellerBankAccount, :Buyer, :BuyerTaxID, :BuyerID, :TaxAuthorities, :TaxAuthoritiesCode, :VIN, :VehicleModel, :VehicleEngineCode, :CertificateNumber, :InspectionNumber, :MachineID, :VehicleType, :Kind, :Province, :City, :Tax, :TaxRate, :CompanySealMark, :Tonnage, :Remark, :FormType, :FormName, :Issuer, :TaxNum, :TaxPayNum, :TaxCode, :MaxPeopleNum, :Origin, :MachineCode, :MachineNumber, :QRCodeMark
4785
4806
 
4786
- def initialize(title=nil, code=nil, number=nil, date=nil, pretaxamount=nil, total=nil, totalcn=nil, seller=nil, sellertaxid=nil, sellertel=nil, selleraddress=nil, sellerbank=nil, sellerbankaccount=nil, buyer=nil, buyertaxid=nil, buyerid=nil, taxauthorities=nil, taxauthoritiescode=nil, vin=nil, vehiclemodel=nil, vehicleenginecode=nil, certificatenumber=nil, inspectionnumber=nil, machineid=nil, vehicletype=nil, kind=nil, province=nil, city=nil, tax=nil, taxrate=nil, companysealmark=nil, tonnage=nil, remark=nil, formtype=nil, formname=nil, issuer=nil, taxnum=nil, maxpeoplenum=nil, origin=nil, machinecode=nil, machinenumber=nil, qrcodemark=nil)
4807
+ def initialize(title=nil, code=nil, number=nil, date=nil, pretaxamount=nil, total=nil, totalcn=nil, seller=nil, sellertaxid=nil, sellertel=nil, selleraddress=nil, sellerbank=nil, sellerbankaccount=nil, buyer=nil, buyertaxid=nil, buyerid=nil, taxauthorities=nil, taxauthoritiescode=nil, vin=nil, vehiclemodel=nil, vehicleenginecode=nil, certificatenumber=nil, inspectionnumber=nil, machineid=nil, vehicletype=nil, kind=nil, province=nil, city=nil, tax=nil, taxrate=nil, companysealmark=nil, tonnage=nil, remark=nil, formtype=nil, formname=nil, issuer=nil, taxnum=nil, taxpaynum=nil, taxcode=nil, maxpeoplenum=nil, origin=nil, machinecode=nil, machinenumber=nil, qrcodemark=nil)
4787
4808
  @Title = title
4788
4809
  @Code = code
4789
4810
  @Number = number
@@ -4821,6 +4842,8 @@ module TencentCloud
4821
4842
  @FormName = formname
4822
4843
  @Issuer = issuer
4823
4844
  @TaxNum = taxnum
4845
+ @TaxPayNum = taxpaynum
4846
+ @TaxCode = taxcode
4824
4847
  @MaxPeopleNum = maxpeoplenum
4825
4848
  @Origin = origin
4826
4849
  @MachineCode = machinecode
@@ -4866,6 +4889,8 @@ module TencentCloud
4866
4889
  @FormName = params['FormName']
4867
4890
  @Issuer = params['Issuer']
4868
4891
  @TaxNum = params['TaxNum']
4892
+ @TaxPayNum = params['TaxPayNum']
4893
+ @TaxCode = params['TaxCode']
4869
4894
  @MaxPeopleNum = params['MaxPeopleNum']
4870
4895
  @Origin = params['Origin']
4871
4896
  @MachineCode = params['MachineCode']
@@ -7351,6 +7376,25 @@ module TencentCloud
7351
7376
  end
7352
7377
  end
7353
7378
 
7379
+ # 反光点覆盖区域详情结果
7380
+ class ReflectDetailInfo < TencentCloud::Common::AbstractModel
7381
+ # @param Position: NationalEmblem 国徽位置
7382
+ # Portrait 人像照片位置
7383
+ # RecognitionField 识别字段位置
7384
+ # Others 其他位置
7385
+ # @type Position: String
7386
+
7387
+ attr_accessor :Position
7388
+
7389
+ def initialize(position=nil)
7390
+ @Position = position
7391
+ end
7392
+
7393
+ def deserialize(params)
7394
+ @Position = params['Position']
7395
+ end
7396
+ end
7397
+
7354
7398
  # ResidenceBookletOCR请求参数结构体
7355
7399
  class ResidenceBookletOCRRequest < TencentCloud::Common::AbstractModel
7356
7400
  # @param ImageBase64: 图片的 Base64 值。
@@ -9952,10 +9996,30 @@ module TencentCloud
9952
9996
  # @type FormName: String
9953
9997
  # @param CompanySealMark: 是否有公司印章(0:没有,1:有)
9954
9998
  # @type CompanySealMark: Integer
9999
+ # @param AuctionOrgName: 经营拍卖单位
10000
+ # @type AuctionOrgName: String
10001
+ # @param AuctionOrgAddress: 经营拍卖单位地址
10002
+ # @type AuctionOrgAddress: String
10003
+ # @param AuctionOrgTaxID: 经营拍卖单位纳税人识别号
10004
+ # @type AuctionOrgTaxID: String
10005
+ # @param AuctionOrgBankAccount: 经营拍卖单位开户银行账号
10006
+ # @type AuctionOrgBankAccount: String
10007
+ # @param AuctionOrgPhone: 经营拍卖单位电话
10008
+ # @type AuctionOrgPhone: String
10009
+ # @param Issuer: 开票人
10010
+ # @type Issuer: String
10011
+ # @param TaxCode: 税控码
10012
+ # @type TaxCode: String
10013
+ # @param MachineSerialNumber: 机器编号
10014
+ # @type MachineSerialNumber: String
10015
+ # @param MachineCode: 机打发票代码
10016
+ # @type MachineCode: String
10017
+ # @param MachineNumber: 机打发票号码
10018
+ # @type MachineNumber: String
9955
10019
 
9956
- attr_accessor :Title, :QRCodeMark, :Code, :Number, :Date, :Total, :TotalCn, :Seller, :SellerTel, :SellerTaxID, :SellerAddress, :Buyer, :BuyerID, :BuyerAddress, :BuyerTel, :CompanyName, :CompanyTaxID, :CompanyBankAccount, :CompanyTel, :CompanyAddress, :TransferAdministrationName, :LicensePlate, :RegistrationNumber, :VIN, :VehicleModel, :Kind, :Province, :City, :VehicleType, :Remark, :FormType, :FormName, :CompanySealMark
10020
+ attr_accessor :Title, :QRCodeMark, :Code, :Number, :Date, :Total, :TotalCn, :Seller, :SellerTel, :SellerTaxID, :SellerAddress, :Buyer, :BuyerID, :BuyerAddress, :BuyerTel, :CompanyName, :CompanyTaxID, :CompanyBankAccount, :CompanyTel, :CompanyAddress, :TransferAdministrationName, :LicensePlate, :RegistrationNumber, :VIN, :VehicleModel, :Kind, :Province, :City, :VehicleType, :Remark, :FormType, :FormName, :CompanySealMark, :AuctionOrgName, :AuctionOrgAddress, :AuctionOrgTaxID, :AuctionOrgBankAccount, :AuctionOrgPhone, :Issuer, :TaxCode, :MachineSerialNumber, :MachineCode, :MachineNumber
9957
10021
 
9958
- def initialize(title=nil, qrcodemark=nil, code=nil, number=nil, date=nil, total=nil, totalcn=nil, seller=nil, sellertel=nil, sellertaxid=nil, selleraddress=nil, buyer=nil, buyerid=nil, buyeraddress=nil, buyertel=nil, companyname=nil, companytaxid=nil, companybankaccount=nil, companytel=nil, companyaddress=nil, transferadministrationname=nil, licenseplate=nil, registrationnumber=nil, vin=nil, vehiclemodel=nil, kind=nil, province=nil, city=nil, vehicletype=nil, remark=nil, formtype=nil, formname=nil, companysealmark=nil)
10022
+ def initialize(title=nil, qrcodemark=nil, code=nil, number=nil, date=nil, total=nil, totalcn=nil, seller=nil, sellertel=nil, sellertaxid=nil, selleraddress=nil, buyer=nil, buyerid=nil, buyeraddress=nil, buyertel=nil, companyname=nil, companytaxid=nil, companybankaccount=nil, companytel=nil, companyaddress=nil, transferadministrationname=nil, licenseplate=nil, registrationnumber=nil, vin=nil, vehiclemodel=nil, kind=nil, province=nil, city=nil, vehicletype=nil, remark=nil, formtype=nil, formname=nil, companysealmark=nil, auctionorgname=nil, auctionorgaddress=nil, auctionorgtaxid=nil, auctionorgbankaccount=nil, auctionorgphone=nil, issuer=nil, taxcode=nil, machineserialnumber=nil, machinecode=nil, machinenumber=nil)
9959
10023
  @Title = title
9960
10024
  @QRCodeMark = qrcodemark
9961
10025
  @Code = code
@@ -9989,6 +10053,16 @@ module TencentCloud
9989
10053
  @FormType = formtype
9990
10054
  @FormName = formname
9991
10055
  @CompanySealMark = companysealmark
10056
+ @AuctionOrgName = auctionorgname
10057
+ @AuctionOrgAddress = auctionorgaddress
10058
+ @AuctionOrgTaxID = auctionorgtaxid
10059
+ @AuctionOrgBankAccount = auctionorgbankaccount
10060
+ @AuctionOrgPhone = auctionorgphone
10061
+ @Issuer = issuer
10062
+ @TaxCode = taxcode
10063
+ @MachineSerialNumber = machineserialnumber
10064
+ @MachineCode = machinecode
10065
+ @MachineNumber = machinenumber
9992
10066
  end
9993
10067
 
9994
10068
  def deserialize(params)
@@ -10025,6 +10099,16 @@ module TencentCloud
10025
10099
  @FormType = params['FormType']
10026
10100
  @FormName = params['FormName']
10027
10101
  @CompanySealMark = params['CompanySealMark']
10102
+ @AuctionOrgName = params['AuctionOrgName']
10103
+ @AuctionOrgAddress = params['AuctionOrgAddress']
10104
+ @AuctionOrgTaxID = params['AuctionOrgTaxID']
10105
+ @AuctionOrgBankAccount = params['AuctionOrgBankAccount']
10106
+ @AuctionOrgPhone = params['AuctionOrgPhone']
10107
+ @Issuer = params['Issuer']
10108
+ @TaxCode = params['TaxCode']
10109
+ @MachineSerialNumber = params['MachineSerialNumber']
10110
+ @MachineCode = params['MachineCode']
10111
+ @MachineNumber = params['MachineNumber']
10028
10112
  end
10029
10113
  end
10030
10114
 
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.702
4
+ version: 3.0.704
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-11-14 00:00:00.000000000 Z
11
+ date: 2023-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common