Class: TencentCloud::Vm::V20210922::ImageResultsResultDetail
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Vm::V20210922::ImageResultsResultDetail
- Defined in:
- lib/v20210922/models.rb
Overview
具体场景下的图片识别结果
Instance Attribute Summary collapse
- #Keywords ⇒ Object
- #Label ⇒ Object
- #LibId ⇒ Object
- #LibName ⇒ Object
- #Location ⇒ Object
- #Name ⇒ Object
- #OcrHitInfos ⇒ Object
- #Score ⇒ Object
- #SubLabel ⇒ Object
- #SubLabelCode ⇒ Object
- #Suggestion ⇒ Object
- #Text ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(name = nil, text = nil, location = nil, label = nil, libid = nil, libname = nil, keywords = nil, suggestion = nil, score = nil, sublabelcode = nil, sublabel = nil, ocrhitinfos = nil) ⇒ ImageResultsResultDetail
constructor
A new instance of ImageResultsResultDetail.
Constructor Details
#initialize(name = nil, text = nil, location = nil, label = nil, libid = nil, libname = nil, keywords = nil, suggestion = nil, score = nil, sublabelcode = nil, sublabel = nil, ocrhitinfos = nil) ⇒ ImageResultsResultDetail
Returns a new instance of ImageResultsResultDetail.
862 863 864 865 866 867 868 869 870 871 872 873 874 875 |
# File 'lib/v20210922/models.rb', line 862 def initialize(name=nil, text=nil, location=nil, label=nil, libid=nil, libname=nil, keywords=nil, suggestion=nil, score=nil, sublabelcode=nil, sublabel=nil, ocrhitinfos=nil) @Name = name @Text = text @Location = location @Label = label @LibId = libid @LibName = libname @Keywords = keywords @Suggestion = suggestion @Score = score @SubLabelCode = sublabelcode @SubLabel = sublabel @OcrHitInfos = ocrhitinfos end |
Instance Attribute Details
#Keywords ⇒ Object
860 861 862 |
# File 'lib/v20210922/models.rb', line 860 def Keywords @Keywords end |
#Label ⇒ Object
860 861 862 |
# File 'lib/v20210922/models.rb', line 860 def Label @Label end |
#LibId ⇒ Object
860 861 862 |
# File 'lib/v20210922/models.rb', line 860 def LibId @LibId end |
#LibName ⇒ Object
860 861 862 |
# File 'lib/v20210922/models.rb', line 860 def LibName @LibName end |
#Location ⇒ Object
860 861 862 |
# File 'lib/v20210922/models.rb', line 860 def Location @Location end |
#Name ⇒ Object
860 861 862 |
# File 'lib/v20210922/models.rb', line 860 def Name @Name end |
#OcrHitInfos ⇒ Object
860 861 862 |
# File 'lib/v20210922/models.rb', line 860 def OcrHitInfos @OcrHitInfos end |
#Score ⇒ Object
860 861 862 |
# File 'lib/v20210922/models.rb', line 860 def Score @Score end |
#SubLabel ⇒ Object
860 861 862 |
# File 'lib/v20210922/models.rb', line 860 def SubLabel @SubLabel end |
#SubLabelCode ⇒ Object
860 861 862 |
# File 'lib/v20210922/models.rb', line 860 def SubLabelCode @SubLabelCode end |
#Suggestion ⇒ Object
860 861 862 |
# File 'lib/v20210922/models.rb', line 860 def Suggestion @Suggestion end |
#Text ⇒ Object
860 861 862 |
# File 'lib/v20210922/models.rb', line 860 def Text @Text end |
Instance Method Details
#deserialize(params) ⇒ Object
877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 |
# File 'lib/v20210922/models.rb', line 877 def deserialize(params) @Name = params['Name'] @Text = params['Text'] unless params['Location'].nil? @Location = ImageResultsResultDetailLocation.new @Location.deserialize(params['Location']) end @Label = params['Label'] @LibId = params['LibId'] @LibName = params['LibName'] @Keywords = params['Keywords'] @Suggestion = params['Suggestion'] @Score = params['Score'] @SubLabelCode = params['SubLabelCode'] @SubLabel = params['SubLabel'] unless params['OcrHitInfos'].nil? @OcrHitInfos = [] params['OcrHitInfos'].each do |i| ocrhitinfo_tmp = OcrHitInfo.new ocrhitinfo_tmp.deserialize(i) @OcrHitInfos << ocrhitinfo_tmp end end end |