Class: TencentCloud::Ims::V20201229::OcrTextDetail
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ims::V20201229::OcrTextDetail
- Defined in:
- lib/v20201229/models.rb
Overview
用于返回OCR文本结果详情,图片中的文本越多,可能导致接口返回时间增加。
Instance Attribute Summary collapse
- #HitInfos ⇒ Object
- #Keywords ⇒ Object
- #Label ⇒ Object
- #LibId ⇒ Object
- #LibName ⇒ Object
- #Location ⇒ Object
- #Rate ⇒ Object
- #Score ⇒ Object
- #SubLabel ⇒ Object
- #Text ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(text = nil, label = nil, libid = nil, libname = nil, keywords = nil, score = nil, location = nil, rate = nil, sublabel = nil, hitinfos = nil) ⇒ OcrTextDetail
constructor
A new instance of OcrTextDetail.
Constructor Details
#initialize(text = nil, label = nil, libid = nil, libname = nil, keywords = nil, score = nil, location = nil, rate = nil, sublabel = nil, hitinfos = nil) ⇒ OcrTextDetail
Returns a new instance of OcrTextDetail.
682 683 684 685 686 687 688 689 690 691 692 693 |
# File 'lib/v20201229/models.rb', line 682 def initialize(text=nil, label=nil, libid=nil, libname=nil, keywords=nil, score=nil, location=nil, rate=nil, sublabel=nil, hitinfos=nil) @Text = text @Label = label @LibId = libid @LibName = libname @Keywords = keywords @Score = score @Location = location @Rate = rate @SubLabel = sublabel @HitInfos = hitinfos end |
Instance Attribute Details
#HitInfos ⇒ Object
680 681 682 |
# File 'lib/v20201229/models.rb', line 680 def HitInfos @HitInfos end |
#Keywords ⇒ Object
680 681 682 |
# File 'lib/v20201229/models.rb', line 680 def Keywords @Keywords end |
#Label ⇒ Object
680 681 682 |
# File 'lib/v20201229/models.rb', line 680 def Label @Label end |
#LibId ⇒ Object
680 681 682 |
# File 'lib/v20201229/models.rb', line 680 def LibId @LibId end |
#LibName ⇒ Object
680 681 682 |
# File 'lib/v20201229/models.rb', line 680 def LibName @LibName end |
#Location ⇒ Object
680 681 682 |
# File 'lib/v20201229/models.rb', line 680 def Location @Location end |
#Rate ⇒ Object
680 681 682 |
# File 'lib/v20201229/models.rb', line 680 def Rate @Rate end |
#Score ⇒ Object
680 681 682 |
# File 'lib/v20201229/models.rb', line 680 def Score @Score end |
#SubLabel ⇒ Object
680 681 682 |
# File 'lib/v20201229/models.rb', line 680 def SubLabel @SubLabel end |
#Text ⇒ Object
680 681 682 |
# File 'lib/v20201229/models.rb', line 680 def Text @Text end |
Instance Method Details
#deserialize(params) ⇒ Object
695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 |
# File 'lib/v20201229/models.rb', line 695 def deserialize(params) @Text = params['Text'] @Label = params['Label'] @LibId = params['LibId'] @LibName = params['LibName'] @Keywords = params['Keywords'] @Score = params['Score'] unless params['Location'].nil? @Location = Location.new @Location.deserialize(params['Location']) end @Rate = params['Rate'] @SubLabel = params['SubLabel'] unless params['HitInfos'].nil? @HitInfos = [] params['HitInfos'].each do |i| ocrhitinfo_tmp = OcrHitInfo.new ocrhitinfo_tmp.deserialize(i) @HitInfos << ocrhitinfo_tmp end end end |