Class: TencentCloud::Ocr::V20181119::LicensePlateOCRResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ocr::V20181119::LicensePlateOCRResponse
- Defined in:
- lib/v20181119/models.rb
Overview
LicensePlateOCR返回参数结构体
Instance Attribute Summary collapse
- #Color ⇒ Object
- #Confidence ⇒ Object
- #LicensePlateInfos ⇒ Object
- #Number ⇒ Object
- #Rect ⇒ Object
- #RequestId ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(number = nil, confidence = nil, rect = nil, color = nil, licenseplateinfos = nil, requestid = nil) ⇒ LicensePlateOCRResponse
constructor
A new instance of LicensePlateOCRResponse.
Constructor Details
#initialize(number = nil, confidence = nil, rect = nil, color = nil, licenseplateinfos = nil, requestid = nil) ⇒ LicensePlateOCRResponse
Returns a new instance of LicensePlateOCRResponse.
5142 5143 5144 5145 5146 5147 5148 5149 |
# File 'lib/v20181119/models.rb', line 5142 def initialize(number=nil, confidence=nil, rect=nil, color=nil, licenseplateinfos=nil, requestid=nil) @Number = number @Confidence = confidence @Rect = rect @Color = color @LicensePlateInfos = licenseplateinfos @RequestId = requestid end |
Instance Attribute Details
#Color ⇒ Object
5140 5141 5142 |
# File 'lib/v20181119/models.rb', line 5140 def Color @Color end |
#Confidence ⇒ Object
5140 5141 5142 |
# File 'lib/v20181119/models.rb', line 5140 def Confidence @Confidence end |
#LicensePlateInfos ⇒ Object
5140 5141 5142 |
# File 'lib/v20181119/models.rb', line 5140 def LicensePlateInfos @LicensePlateInfos end |
#Number ⇒ Object
5140 5141 5142 |
# File 'lib/v20181119/models.rb', line 5140 def Number @Number end |
#Rect ⇒ Object
5140 5141 5142 |
# File 'lib/v20181119/models.rb', line 5140 def Rect @Rect end |
#RequestId ⇒ Object
5140 5141 5142 |
# File 'lib/v20181119/models.rb', line 5140 def RequestId @RequestId end |
Instance Method Details
#deserialize(params) ⇒ Object
5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 |
# File 'lib/v20181119/models.rb', line 5151 def deserialize(params) @Number = params['Number'] @Confidence = params['Confidence'] unless params['Rect'].nil? @Rect = Rect.new @Rect.deserialize(params['Rect']) end @Color = params['Color'] unless params['LicensePlateInfos'].nil? @LicensePlateInfos = [] params['LicensePlateInfos'].each do |i| licenseplateinfo_tmp = LicensePlateInfo.new licenseplateinfo_tmp.deserialize(i) @LicensePlateInfos << licenseplateinfo_tmp end end @RequestId = params['RequestId'] end |