Class: TencentCloud::Ocr::V20181119::TextDetectionEn
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ocr::V20181119::TextDetectionEn
- Defined in:
- lib/v20181119/models.rb
Overview
英文识别结果
Instance Attribute Summary collapse
-
#AdvancedInfo ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#CandWord ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Confidence ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#DetectedText ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Polygon ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#WordCoordPoint ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Words ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(detectedtext = nil, confidence = nil, polygon = nil, advancedinfo = nil, wordcoordpoint = nil, candword = nil, words = nil) ⇒ TextDetectionEn
constructor
A new instance of TextDetectionEn.
Constructor Details
#initialize(detectedtext = nil, confidence = nil, polygon = nil, advancedinfo = nil, wordcoordpoint = nil, candword = nil, words = nil) ⇒ TextDetectionEn
Returns a new instance of TextDetectionEn.
11848 11849 11850 11851 11852 11853 11854 11855 11856 |
# File 'lib/v20181119/models.rb', line 11848 def initialize(detectedtext=nil, confidence=nil, polygon=nil, advancedinfo=nil, wordcoordpoint=nil, candword=nil, words=nil) @DetectedText = detectedtext @Confidence = confidence @Polygon = polygon @AdvancedInfo = advancedinfo @WordCoordPoint = wordcoordpoint @CandWord = candword @Words = words end |
Instance Attribute Details
#AdvancedInfo ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
11846 11847 11848 |
# File 'lib/v20181119/models.rb', line 11846 def AdvancedInfo @AdvancedInfo end |
#CandWord ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
11846 11847 11848 |
# File 'lib/v20181119/models.rb', line 11846 def CandWord @CandWord end |
#Confidence ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
11846 11847 11848 |
# File 'lib/v20181119/models.rb', line 11846 def Confidence @Confidence end |
#DetectedText ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
11846 11847 11848 |
# File 'lib/v20181119/models.rb', line 11846 def DetectedText @DetectedText end |
#Polygon ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
11846 11847 11848 |
# File 'lib/v20181119/models.rb', line 11846 def Polygon @Polygon end |
#WordCoordPoint ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
11846 11847 11848 |
# File 'lib/v20181119/models.rb', line 11846 def WordCoordPoint @WordCoordPoint end |
#Words ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
11846 11847 11848 |
# File 'lib/v20181119/models.rb', line 11846 def Words @Words end |
Instance Method Details
#deserialize(params) ⇒ Object
11858 11859 11860 11861 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 |
# File 'lib/v20181119/models.rb', line 11858 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'] unless params['WordCoordPoint'].nil? @WordCoordPoint = [] params['WordCoordPoint'].each do |i| wordcoordpoint_tmp = WordCoordPoint.new wordcoordpoint_tmp.deserialize(i) @WordCoordPoint << wordcoordpoint_tmp end end unless params['CandWord'].nil? @CandWord = [] params['CandWord'].each do |i| candword_tmp = CandWord.new candword_tmp.deserialize(i) @CandWord << candword_tmp end end unless params['Words'].nil? @Words = [] params['Words'].each do |i| words_tmp = Words.new words_tmp.deserialize(i) @Words << words_tmp end end end |