tencentcloud-sdk-ocr 3.0.1117 → 3.0.1123
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 +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20181119/models.rb +28 -14
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b4eb170b3a293148ce509fc260635172479f71c8
|
4
|
+
data.tar.gz: fce56c750e737ed23509c7cc818d6c6b080ee4cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 065f2fa26c5af698a651ad8745cb2010f5f3606d347a7df331ab7c62ee15cfc49d536ec097b61099fb3ba0926e4a593fcb923df13d65e987b539ce67ee43bf32
|
7
|
+
data.tar.gz: 792a85d14d1a0d6f7d61c170331e366e40ebb9acafc059d549c9291045b6218f806b1f635de445a5bd45a2468666c007f859254d5150334dfcf105a3aab55f95
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1123
|
data/lib/v20181119/models.rb
CHANGED
@@ -1299,10 +1299,14 @@ module TencentCloud
|
|
1299
1299
|
# @type BlurCheck: Integer
|
1300
1300
|
# @param BlurScore: 模糊分数, 范围:0.0-1.0,分数越高越模糊,建议阈值为0.5
|
1301
1301
|
# @type BlurScore: Float
|
1302
|
+
# @param ElectronCheck: 是否电子身份证
|
1303
|
+
# 0:否
|
1304
|
+
# 1:是电子身份证
|
1305
|
+
# @type ElectronCheck: Integer
|
1302
1306
|
|
1303
|
-
attr_accessor :BorderCheck, :OcclusionCheck, :CopyCheck, :ReshootCheck, :PSCheck, :BlurCheck, :BlurScore
|
1307
|
+
attr_accessor :BorderCheck, :OcclusionCheck, :CopyCheck, :ReshootCheck, :PSCheck, :BlurCheck, :BlurScore, :ElectronCheck
|
1304
1308
|
|
1305
|
-
def initialize(bordercheck=nil, occlusioncheck=nil, copycheck=nil, reshootcheck=nil, pscheck=nil, blurcheck=nil, blurscore=nil)
|
1309
|
+
def initialize(bordercheck=nil, occlusioncheck=nil, copycheck=nil, reshootcheck=nil, pscheck=nil, blurcheck=nil, blurscore=nil, electroncheck=nil)
|
1306
1310
|
@BorderCheck = bordercheck
|
1307
1311
|
@OcclusionCheck = occlusioncheck
|
1308
1312
|
@CopyCheck = copycheck
|
@@ -1310,6 +1314,7 @@ module TencentCloud
|
|
1310
1314
|
@PSCheck = pscheck
|
1311
1315
|
@BlurCheck = blurcheck
|
1312
1316
|
@BlurScore = blurscore
|
1317
|
+
@ElectronCheck = electroncheck
|
1313
1318
|
end
|
1314
1319
|
|
1315
1320
|
def deserialize(params)
|
@@ -1320,6 +1325,7 @@ module TencentCloud
|
|
1320
1325
|
@PSCheck = params['PSCheck']
|
1321
1326
|
@BlurCheck = params['BlurCheck']
|
1322
1327
|
@BlurScore = params['BlurScore']
|
1328
|
+
@ElectronCheck = params['ElectronCheck']
|
1323
1329
|
end
|
1324
1330
|
end
|
1325
1331
|
|
@@ -2883,7 +2889,7 @@ module TencentCloud
|
|
2883
2889
|
# RideHailingTransportLicense -- 网约车运输证
|
2884
2890
|
# WayBill -- 快递运单
|
2885
2891
|
# AccountOpeningPermit -- 银行开户许可证
|
2886
|
-
# InvoiceEng --
|
2892
|
+
# InvoiceEng -- 国际发票模板
|
2887
2893
|
# Coin --钱币识别模板
|
2888
2894
|
# OnboardingDocuments -- 入职材料识别
|
2889
2895
|
# PropertyOwnershipCertificate -- 房产证识别
|
@@ -2988,7 +2994,7 @@ module TencentCloud
|
|
2988
2994
|
# @type EnableCoord: Boolean
|
2989
2995
|
# @param OutputParentKey: 是否开启父子key识别,默认是
|
2990
2996
|
# @type OutputParentKey: Boolean
|
2991
|
-
# @param ConfigAdvanced:
|
2997
|
+
# @param ConfigAdvanced: 模板的单个属性配置
|
2992
2998
|
# @type ConfigAdvanced: :class:`Tencentcloud::Ocr.v20181119.models.ConfigAdvanced`
|
2993
2999
|
|
2994
3000
|
attr_accessor :ImageUrl, :ImageBase64, :PdfPageNumber, :ItemNames, :ItemNamesShowMode, :ReturnFullText, :ConfigId, :EnableCoord, :OutputParentKey, :ConfigAdvanced
|
@@ -3087,7 +3093,7 @@ module TencentCloud
|
|
3087
3093
|
# @type ReturnFullText: Boolean
|
3088
3094
|
# @param ConfigId: 配置id支持:
|
3089
3095
|
# General -- 通用场景
|
3090
|
-
# InvoiceEng -- 国际invoice
|
3096
|
+
# InvoiceEng -- 国际invoice模板
|
3091
3097
|
# WayBillEng --海运订单模板
|
3092
3098
|
# CustomsDeclaration -- 进出口报关单
|
3093
3099
|
# WeightNote -- 磅单
|
@@ -3097,18 +3103,18 @@ module TencentCloud
|
|
3097
3103
|
# Statement -- 对账单识别模板
|
3098
3104
|
# BookingConfirmation -- 配舱通知书识别模板
|
3099
3105
|
# AirWayBill -- 航空运单识别模板
|
3100
|
-
# Table --
|
3106
|
+
# Table -- 表格模板
|
3101
3107
|
# SteelLabel -- 实物标签识别模板
|
3102
3108
|
# CarInsurance -- 车辆保险单识别模板
|
3103
3109
|
# MultiRealEstateCertificate -- 房产材料识别模板
|
3104
3110
|
# MultiRealEstateMaterial -- 房产证明识别模板
|
3105
|
-
# HongKongUtilityBill --
|
3111
|
+
# HongKongUtilityBill -- 中国香港水电煤单识别模板
|
3106
3112
|
# @type ConfigId: String
|
3107
3113
|
# @param EnableCoord: 是否开启全文字段坐标值的识别
|
3108
3114
|
# @type EnableCoord: Boolean
|
3109
3115
|
# @param OutputParentKey: 是否开启父子key识别,默认是
|
3110
3116
|
# @type OutputParentKey: Boolean
|
3111
|
-
# @param ConfigAdvanced:
|
3117
|
+
# @param ConfigAdvanced: 模板的单个属性配置
|
3112
3118
|
# @type ConfigAdvanced: :class:`Tencentcloud::Ocr.v20181119.models.ConfigAdvanced`
|
3113
3119
|
# @param OutputLanguage: cn时,添加的key为中文
|
3114
3120
|
# en时,添加的key为英语
|
@@ -3814,10 +3820,12 @@ module TencentCloud
|
|
3814
3820
|
# @type PdfPageNumber: Integer
|
3815
3821
|
# @param EnableDetectText: 文本检测开关,默认为true。设置为false可直接进行单行识别,适用于仅包含正向单行文本的图片场景。
|
3816
3822
|
# @type EnableDetectText: Boolean
|
3823
|
+
# @param ConfigID: 配置ID支持: OCR -- 通用场景 MulOCR--多语种场景
|
3824
|
+
# @type ConfigID: String
|
3817
3825
|
|
3818
|
-
attr_accessor :ImageBase64, :ImageUrl, :IsWords, :EnableDetectSplit, :IsPdf, :PdfPageNumber, :EnableDetectText
|
3826
|
+
attr_accessor :ImageBase64, :ImageUrl, :IsWords, :EnableDetectSplit, :IsPdf, :PdfPageNumber, :EnableDetectText, :ConfigID
|
3819
3827
|
|
3820
|
-
def initialize(imagebase64=nil, imageurl=nil, iswords=nil, enabledetectsplit=nil, ispdf=nil, pdfpagenumber=nil, enabledetecttext=nil)
|
3828
|
+
def initialize(imagebase64=nil, imageurl=nil, iswords=nil, enabledetectsplit=nil, ispdf=nil, pdfpagenumber=nil, enabledetecttext=nil, configid=nil)
|
3821
3829
|
@ImageBase64 = imagebase64
|
3822
3830
|
@ImageUrl = imageurl
|
3823
3831
|
@IsWords = iswords
|
@@ -3825,6 +3833,7 @@ module TencentCloud
|
|
3825
3833
|
@IsPdf = ispdf
|
3826
3834
|
@PdfPageNumber = pdfpagenumber
|
3827
3835
|
@EnableDetectText = enabledetecttext
|
3836
|
+
@ConfigID = configid
|
3828
3837
|
end
|
3829
3838
|
|
3830
3839
|
def deserialize(params)
|
@@ -3835,6 +3844,7 @@ module TencentCloud
|
|
3835
3844
|
@IsPdf = params['IsPdf']
|
3836
3845
|
@PdfPageNumber = params['PdfPageNumber']
|
3837
3846
|
@EnableDetectText = params['EnableDetectText']
|
3847
|
+
@ConfigID = params['ConfigID']
|
3838
3848
|
end
|
3839
3849
|
end
|
3840
3850
|
|
@@ -4565,10 +4575,10 @@ module TencentCloud
|
|
4565
4575
|
# @param PdfPageNumber: 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为前3页。
|
4566
4576
|
# @type PdfPageNumber: Integer
|
4567
4577
|
# @param ConfigId: 配置id支持:
|
4568
|
-
# ArticleRecognize --
|
4578
|
+
# ArticleRecognize -- 手写作文模板
|
4569
4579
|
# 默认:ArticleRecognize
|
4570
4580
|
# @type ConfigId: String
|
4571
|
-
# @param Scene:
|
4581
|
+
# @param Scene: 模板的单个属性配置
|
4572
4582
|
# @type Scene: String
|
4573
4583
|
|
4574
4584
|
attr_accessor :ImageUrl, :ImageBase64, :PdfPageNumber, :ConfigId, :Scene
|
@@ -9871,10 +9881,12 @@ module TencentCloud
|
|
9871
9881
|
# @type EnableWordCheck: Boolean
|
9872
9882
|
# @param EnableQualityCheck: 默认值为false,打开返回证件是否模糊。
|
9873
9883
|
# @type EnableQualityCheck: Boolean
|
9884
|
+
# @param EnableElectronCheck: 默认值为false,打开返回是否存在电子身份证判断。
|
9885
|
+
# @type EnableElectronCheck: Boolean
|
9874
9886
|
|
9875
|
-
attr_accessor :ImageBase64, :ImageUrl, :CardType, :EnablePortrait, :EnableCropImage, :EnableBorderCheck, :EnableOcclusionCheck, :EnableCopyCheck, :EnableReshootCheck, :EnablePSCheck, :EnableWordCheck, :EnableQualityCheck
|
9887
|
+
attr_accessor :ImageBase64, :ImageUrl, :CardType, :EnablePortrait, :EnableCropImage, :EnableBorderCheck, :EnableOcclusionCheck, :EnableCopyCheck, :EnableReshootCheck, :EnablePSCheck, :EnableWordCheck, :EnableQualityCheck, :EnableElectronCheck
|
9876
9888
|
|
9877
|
-
def initialize(imagebase64=nil, imageurl=nil, cardtype=nil, enableportrait=nil, enablecropimage=nil, enablebordercheck=nil, enableocclusioncheck=nil, enablecopycheck=nil, enablereshootcheck=nil, enablepscheck=nil, enablewordcheck=nil, enablequalitycheck=nil)
|
9889
|
+
def initialize(imagebase64=nil, imageurl=nil, cardtype=nil, enableportrait=nil, enablecropimage=nil, enablebordercheck=nil, enableocclusioncheck=nil, enablecopycheck=nil, enablereshootcheck=nil, enablepscheck=nil, enablewordcheck=nil, enablequalitycheck=nil, enableelectroncheck=nil)
|
9878
9890
|
@ImageBase64 = imagebase64
|
9879
9891
|
@ImageUrl = imageurl
|
9880
9892
|
@CardType = cardtype
|
@@ -9887,6 +9899,7 @@ module TencentCloud
|
|
9887
9899
|
@EnablePSCheck = enablepscheck
|
9888
9900
|
@EnableWordCheck = enablewordcheck
|
9889
9901
|
@EnableQualityCheck = enablequalitycheck
|
9902
|
+
@EnableElectronCheck = enableelectroncheck
|
9890
9903
|
end
|
9891
9904
|
|
9892
9905
|
def deserialize(params)
|
@@ -9902,6 +9915,7 @@ module TencentCloud
|
|
9902
9915
|
@EnablePSCheck = params['EnablePSCheck']
|
9903
9916
|
@EnableWordCheck = params['EnableWordCheck']
|
9904
9917
|
@EnableQualityCheck = params['EnableQualityCheck']
|
9918
|
+
@EnableElectronCheck = params['EnableElectronCheck']
|
9905
9919
|
end
|
9906
9920
|
end
|
9907
9921
|
|
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.
|
4
|
+
version: 3.0.1123
|
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-08-
|
11
|
+
date: 2025-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|