tencentcloud-sdk-ims 3.0.1009 → 3.0.1010
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/v20201229/models.rb +68 -2
- 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: c605dcfe236237a75538a03fad7e175655bb7b29
|
4
|
+
data.tar.gz: 5bc932dd84fd60e9472f61932c6af55e6d14592a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a19ee36abada1437cdd884002ea40b7643a0a6533f6d6cf5750db1b5e21fa6c25dfd96c877ca0634acb65ae303e7cc38254a7a71e8eb389bb31ecaf4855c30b8
|
7
|
+
data.tar.gz: 43710c934a522ba5ce65a09938203295bd6a94173421332dd0e6e89f67114022c29c6370f7232776c1c069994d91404fdf556c454b42e9d9d857bed7f37b268c
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1010
|
data/lib/v20201229/models.rb
CHANGED
@@ -579,6 +579,41 @@ module TencentCloud
|
|
579
579
|
end
|
580
580
|
end
|
581
581
|
|
582
|
+
# ocr关键词命中位置信息
|
583
|
+
class OcrHitInfo < TencentCloud::Common::AbstractModel
|
584
|
+
# @param Type: 标识模型命中还是关键词命中
|
585
|
+
# @type Type: String
|
586
|
+
# @param Keyword: 命中关键词
|
587
|
+
# @type Keyword: String
|
588
|
+
# @param LibName: 自定义词库名称
|
589
|
+
# @type LibName: String
|
590
|
+
# @param Positions: 位置信息
|
591
|
+
# @type Positions: Array
|
592
|
+
|
593
|
+
attr_accessor :Type, :Keyword, :LibName, :Positions
|
594
|
+
|
595
|
+
def initialize(type=nil, keyword=nil, libname=nil, positions=nil)
|
596
|
+
@Type = type
|
597
|
+
@Keyword = keyword
|
598
|
+
@LibName = libname
|
599
|
+
@Positions = positions
|
600
|
+
end
|
601
|
+
|
602
|
+
def deserialize(params)
|
603
|
+
@Type = params['Type']
|
604
|
+
@Keyword = params['Keyword']
|
605
|
+
@LibName = params['LibName']
|
606
|
+
unless params['Positions'].nil?
|
607
|
+
@Positions = []
|
608
|
+
params['Positions'].each do |i|
|
609
|
+
positions_tmp = Positions.new
|
610
|
+
positions_tmp.deserialize(i)
|
611
|
+
@Positions << positions_tmp
|
612
|
+
end
|
613
|
+
end
|
614
|
+
end
|
615
|
+
end
|
616
|
+
|
582
617
|
# 用于返回OCR结果检测详情
|
583
618
|
class OcrResult < TencentCloud::Common::AbstractModel
|
584
619
|
# @param Scene: 该字段表示识别场景,取值默认为OCR(图片OCR识别)。
|
@@ -647,10 +682,12 @@ module TencentCloud
|
|
647
682
|
# @type Rate: Integer
|
648
683
|
# @param SubLabel: 该字段用于返回检测结果所对应的恶意二级标签。
|
649
684
|
# @type SubLabel: String
|
685
|
+
# @param HitInfos: 关键词命中位置信息
|
686
|
+
# @type HitInfos: Array
|
650
687
|
|
651
|
-
attr_accessor :Text, :Label, :LibId, :LibName, :Keywords, :Score, :Location, :Rate, :SubLabel
|
688
|
+
attr_accessor :Text, :Label, :LibId, :LibName, :Keywords, :Score, :Location, :Rate, :SubLabel, :HitInfos
|
652
689
|
|
653
|
-
def initialize(text=nil, label=nil, libid=nil, libname=nil, keywords=nil, score=nil, location=nil, rate=nil, sublabel=nil)
|
690
|
+
def initialize(text=nil, label=nil, libid=nil, libname=nil, keywords=nil, score=nil, location=nil, rate=nil, sublabel=nil, hitinfos=nil)
|
654
691
|
@Text = text
|
655
692
|
@Label = label
|
656
693
|
@LibId = libid
|
@@ -660,6 +697,7 @@ module TencentCloud
|
|
660
697
|
@Location = location
|
661
698
|
@Rate = rate
|
662
699
|
@SubLabel = sublabel
|
700
|
+
@HitInfos = hitinfos
|
663
701
|
end
|
664
702
|
|
665
703
|
def deserialize(params)
|
@@ -675,6 +713,34 @@ module TencentCloud
|
|
675
713
|
end
|
676
714
|
@Rate = params['Rate']
|
677
715
|
@SubLabel = params['SubLabel']
|
716
|
+
unless params['HitInfos'].nil?
|
717
|
+
@HitInfos = []
|
718
|
+
params['HitInfos'].each do |i|
|
719
|
+
ocrhitinfo_tmp = OcrHitInfo.new
|
720
|
+
ocrhitinfo_tmp.deserialize(i)
|
721
|
+
@HitInfos << ocrhitinfo_tmp
|
722
|
+
end
|
723
|
+
end
|
724
|
+
end
|
725
|
+
end
|
726
|
+
|
727
|
+
# 标识命中的违规关键词位置信息
|
728
|
+
class Positions < TencentCloud::Common::AbstractModel
|
729
|
+
# @param Start: 关键词起始位置
|
730
|
+
# @type Start: Integer
|
731
|
+
# @param End: 关键词结束位置
|
732
|
+
# @type End: Integer
|
733
|
+
|
734
|
+
attr_accessor :Start, :End
|
735
|
+
|
736
|
+
def initialize(start=nil, _end=nil)
|
737
|
+
@Start = start
|
738
|
+
@End = _end
|
739
|
+
end
|
740
|
+
|
741
|
+
def deserialize(params)
|
742
|
+
@Start = params['Start']
|
743
|
+
@End = params['End']
|
678
744
|
end
|
679
745
|
end
|
680
746
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-ims
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1010
|
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-03-
|
11
|
+
date: 2025-03-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|