tencentcloud-sdk-ocr 3.0.1029 → 3.0.1031
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 +64 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e585903c99fe05d40a7a7974fbab1f722d40424
|
4
|
+
data.tar.gz: 597861d3060cabb32cb17d5040724da3aad04cdc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 242c53f202b8a327f50e4d4beb9c14c15429a0da1f4519cfa5c656a651e4b86f1b3802f84fff7eda057856589a90eb5e78b21060ad955799b346af7a234da43d
|
7
|
+
data.tar.gz: 495d75ba81cef386ece5f29aa4d9348bdf2f78135a9b193d0f3c120aad816ece3a2bd68fa78cdd231d699db11fabb38f5831c49fd124cc10a73e8da43c4e7b3d
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1031
|
data/lib/v20181119/models.rb
CHANGED
@@ -1459,6 +1459,22 @@ module TencentCloud
|
|
1459
1459
|
end
|
1460
1460
|
end
|
1461
1461
|
|
1462
|
+
# 支持模版的单个属性配置
|
1463
|
+
class ConfigAdvanced < TencentCloud::Common::AbstractModel
|
1464
|
+
# @param Scene: 模版的单个属性配置
|
1465
|
+
# @type Scene: String
|
1466
|
+
|
1467
|
+
attr_accessor :Scene
|
1468
|
+
|
1469
|
+
def initialize(scene=nil)
|
1470
|
+
@Scene = scene
|
1471
|
+
end
|
1472
|
+
|
1473
|
+
def deserialize(params)
|
1474
|
+
@Scene = params['Scene']
|
1475
|
+
end
|
1476
|
+
end
|
1477
|
+
|
1462
1478
|
# 卡证字段信息返回值
|
1463
1479
|
class ContentInfo < TencentCloud::Common::AbstractModel
|
1464
1480
|
# @param Content: 字段内容
|
@@ -10985,15 +11001,18 @@ module TencentCloud
|
|
10985
11001
|
# AirWayBill -- 航空运单识别模板
|
10986
11002
|
# DispatchWeightNote -- 磅单发货单识别模板
|
10987
11003
|
# ReceiptWeightNote -- 磅单收货单识别模板
|
11004
|
+
# ArticalRecognize -- 手写作文模版
|
10988
11005
|
# @type ConfigId: String
|
10989
11006
|
# @param EnableCoord: 是否开启全文字段坐标值的识别
|
10990
11007
|
# @type EnableCoord: Boolean
|
10991
11008
|
# @param OutputParentKey: 是否开启父子key识别,默认是
|
10992
11009
|
# @type OutputParentKey: Boolean
|
11010
|
+
# @param ConfigAdvanced: 模版的单个属性配置
|
11011
|
+
# @type ConfigAdvanced: :class:`Tencentcloud::Ocr.v20181119.models.ConfigAdvanced`
|
10993
11012
|
|
10994
|
-
attr_accessor :ImageUrl, :ImageBase64, :PdfPageNumber, :ItemNames, :ReturnFullText, :ConfigId, :EnableCoord, :OutputParentKey
|
11013
|
+
attr_accessor :ImageUrl, :ImageBase64, :PdfPageNumber, :ItemNames, :ReturnFullText, :ConfigId, :EnableCoord, :OutputParentKey, :ConfigAdvanced
|
10995
11014
|
|
10996
|
-
def initialize(imageurl=nil, imagebase64=nil, pdfpagenumber=nil, itemnames=nil, returnfulltext=nil, configid=nil, enablecoord=nil, outputparentkey=nil)
|
11015
|
+
def initialize(imageurl=nil, imagebase64=nil, pdfpagenumber=nil, itemnames=nil, returnfulltext=nil, configid=nil, enablecoord=nil, outputparentkey=nil, configadvanced=nil)
|
10997
11016
|
@ImageUrl = imageurl
|
10998
11017
|
@ImageBase64 = imagebase64
|
10999
11018
|
@PdfPageNumber = pdfpagenumber
|
@@ -11002,6 +11021,7 @@ module TencentCloud
|
|
11002
11021
|
@ConfigId = configid
|
11003
11022
|
@EnableCoord = enablecoord
|
11004
11023
|
@OutputParentKey = outputparentkey
|
11024
|
+
@ConfigAdvanced = configadvanced
|
11005
11025
|
end
|
11006
11026
|
|
11007
11027
|
def deserialize(params)
|
@@ -11013,6 +11033,10 @@ module TencentCloud
|
|
11013
11033
|
@ConfigId = params['ConfigId']
|
11014
11034
|
@EnableCoord = params['EnableCoord']
|
11015
11035
|
@OutputParentKey = params['OutputParentKey']
|
11036
|
+
unless params['ConfigAdvanced'].nil?
|
11037
|
+
@ConfigAdvanced = ConfigAdvanced.new
|
11038
|
+
@ConfigAdvanced.deserialize(params['ConfigAdvanced'])
|
11039
|
+
end
|
11016
11040
|
end
|
11017
11041
|
end
|
11018
11042
|
|
@@ -14945,6 +14969,44 @@ module TencentCloud
|
|
14945
14969
|
# @type DetectedText: String
|
14946
14970
|
# @param Coord: 四点坐标
|
14947
14971
|
# @type Coord: :class:`Tencentcloud::Ocr.v20181119.models.Polygon`
|
14972
|
+
# @param AdvancedInfo: 描述性信息
|
14973
|
+
# @type AdvancedInfo: String
|
14974
|
+
# @param WordCoord: 单词的四点坐标
|
14975
|
+
# @type WordCoord: Array
|
14976
|
+
|
14977
|
+
attr_accessor :DetectedText, :Coord, :AdvancedInfo, :WordCoord
|
14978
|
+
|
14979
|
+
def initialize(detectedtext=nil, coord=nil, advancedinfo=nil, wordcoord=nil)
|
14980
|
+
@DetectedText = detectedtext
|
14981
|
+
@Coord = coord
|
14982
|
+
@AdvancedInfo = advancedinfo
|
14983
|
+
@WordCoord = wordcoord
|
14984
|
+
end
|
14985
|
+
|
14986
|
+
def deserialize(params)
|
14987
|
+
@DetectedText = params['DetectedText']
|
14988
|
+
unless params['Coord'].nil?
|
14989
|
+
@Coord = Polygon.new
|
14990
|
+
@Coord.deserialize(params['Coord'])
|
14991
|
+
end
|
14992
|
+
@AdvancedInfo = params['AdvancedInfo']
|
14993
|
+
unless params['WordCoord'].nil?
|
14994
|
+
@WordCoord = []
|
14995
|
+
params['WordCoord'].each do |i|
|
14996
|
+
wordpolygon_tmp = WordPolygon.new
|
14997
|
+
wordpolygon_tmp.deserialize(i)
|
14998
|
+
@WordCoord << wordpolygon_tmp
|
14999
|
+
end
|
15000
|
+
end
|
15001
|
+
end
|
15002
|
+
end
|
15003
|
+
|
15004
|
+
# 单词坐标信息
|
15005
|
+
class WordPolygon < TencentCloud::Common::AbstractModel
|
15006
|
+
# @param DetectedText: 文本块内容
|
15007
|
+
# @type DetectedText: String
|
15008
|
+
# @param Coord: 四点坐标
|
15009
|
+
# @type Coord: :class:`Tencentcloud::Ocr.v20181119.models.Polygon`
|
14948
15010
|
|
14949
15011
|
attr_accessor :DetectedText, :Coord
|
14950
15012
|
|
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.1031
|
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-
|
11
|
+
date: 2025-04-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|
@@ -33,9 +33,9 @@ executables: []
|
|
33
33
|
extensions: []
|
34
34
|
extra_rdoc_files: []
|
35
35
|
files:
|
36
|
-
- lib/v20181119/models.rb
|
37
|
-
- lib/v20181119/client.rb
|
38
36
|
- lib/tencentcloud-sdk-ocr.rb
|
37
|
+
- lib/v20181119/client.rb
|
38
|
+
- lib/v20181119/models.rb
|
39
39
|
- lib/VERSION
|
40
40
|
homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
|
41
41
|
licenses:
|