Class: TencentCloud::Ims::V20201229::RecognitionResult
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ims::V20201229::RecognitionResult
- Defined in:
- lib/v20201229/models.rb
Overview
识别类型标签结果信息
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(label = nil, tags = nil) ⇒ RecognitionResult
constructor
A new instance of RecognitionResult.
Constructor Details
#initialize(label = nil, tags = nil) ⇒ RecognitionResult
Returns a new instance of RecognitionResult.
748 749 750 751 |
# File 'lib/v20201229/models.rb', line 748 def initialize(label=nil, =nil) @Label = label @Tags = end |
Instance Attribute Details
#Label ⇒ Object
746 747 748 |
# File 'lib/v20201229/models.rb', line 746 def Label @Label end |
#Tags ⇒ Object
746 747 748 |
# File 'lib/v20201229/models.rb', line 746 def Tags @Tags end |
Instance Method Details
#deserialize(params) ⇒ Object
753 754 755 756 757 758 759 760 761 762 763 |
# File 'lib/v20201229/models.rb', line 753 def deserialize(params) @Label = params['Label'] unless params['Tags'].nil? @Tags = [] params['Tags'].each do |i| recognitiontag_tmp = RecognitionTag.new recognitiontag_tmp.deserialize(i) @Tags << recognitiontag_tmp end end end |