Class: TencentCloud::Ocr::V20181119::AdvertiseTextDetection
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ocr::V20181119::AdvertiseTextDetection
- Defined in:
- lib/v20181119/models.rb
Overview
广告文字识别结果
Instance Attribute Summary collapse
-
#AdvancedInfo ⇒ Object
GeneralBasicOcr接口返回段落信息Parag,包含ParagNo。.
-
#Confidence ⇒ Object
GeneralBasicOcr接口返回段落信息Parag,包含ParagNo。.
-
#DetectedText ⇒ Object
GeneralBasicOcr接口返回段落信息Parag,包含ParagNo。.
-
#Polygon ⇒ Object
GeneralBasicOcr接口返回段落信息Parag,包含ParagNo。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(detectedtext = nil, confidence = nil, polygon = nil, advancedinfo = nil) ⇒ AdvertiseTextDetection
constructor
A new instance of AdvertiseTextDetection.
Constructor Details
#initialize(detectedtext = nil, confidence = nil, polygon = nil, advancedinfo = nil) ⇒ AdvertiseTextDetection
Returns a new instance of AdvertiseTextDetection.
92 93 94 95 96 97 |
# File 'lib/v20181119/models.rb', line 92 def initialize(detectedtext=nil, confidence=nil, polygon=nil, advancedinfo=nil) @DetectedText = detectedtext @Confidence = confidence @Polygon = polygon @AdvancedInfo = advancedinfo end |
Instance Attribute Details
#AdvancedInfo ⇒ Object
GeneralBasicOcr接口返回段落信息Parag,包含ParagNo。
90 91 92 |
# File 'lib/v20181119/models.rb', line 90 def AdvancedInfo @AdvancedInfo end |
#Confidence ⇒ Object
GeneralBasicOcr接口返回段落信息Parag,包含ParagNo。
90 91 92 |
# File 'lib/v20181119/models.rb', line 90 def Confidence @Confidence end |
#DetectedText ⇒ Object
GeneralBasicOcr接口返回段落信息Parag,包含ParagNo。
90 91 92 |
# File 'lib/v20181119/models.rb', line 90 def DetectedText @DetectedText end |
#Polygon ⇒ Object
GeneralBasicOcr接口返回段落信息Parag,包含ParagNo。
90 91 92 |
# File 'lib/v20181119/models.rb', line 90 def Polygon @Polygon end |
Instance Method Details
#deserialize(params) ⇒ Object
99 100 101 102 103 104 105 106 107 108 109 110 111 |
# File 'lib/v20181119/models.rb', line 99 def deserialize(params) @DetectedText = params['DetectedText'] @Confidence = params['Confidence'] unless params['Polygon'].nil? @Polygon = [] params['Polygon'].each do |i| coord_tmp = Coord.new coord_tmp.deserialize(i) @Polygon << coord_tmp end end @AdvancedInfo = params['AdvancedInfo'] end |