Class: TencentCloud::Ocr::V20181119::GeneralEfficientOCRResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ocr::V20181119::GeneralEfficientOCRResponse
- Extended by:
- Gem::Deprecate
- Defined in:
- lib/v20181119/models.rb
Overview
GeneralEfficientOCR返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(textdetections = nil, angel = nil, angle = nil, requestid = nil) ⇒ GeneralEfficientOCRResponse
constructor
A new instance of GeneralEfficientOCRResponse.
Constructor Details
#initialize(textdetections = nil, angel = nil, angle = nil, requestid = nil) ⇒ GeneralEfficientOCRResponse
Returns a new instance of GeneralEfficientOCRResponse.
4340 4341 4342 4343 4344 4345 |
# File 'lib/v20181119/models.rb', line 4340 def initialize(textdetections=nil, angel=nil, angle=nil, requestid=nil) @TextDetections = textdetections @Angel = angel @Angle = angle @RequestId = requestid end |
Instance Attribute Details
#Angel ⇒ Object
4335 4336 4337 |
# File 'lib/v20181119/models.rb', line 4335 def Angel @Angel end |
#Angle ⇒ Object
4335 4336 4337 |
# File 'lib/v20181119/models.rb', line 4335 def Angle @Angle end |
#RequestId ⇒ Object
4335 4336 4337 |
# File 'lib/v20181119/models.rb', line 4335 def RequestId @RequestId end |
#TextDetections ⇒ Object
4335 4336 4337 |
# File 'lib/v20181119/models.rb', line 4335 def TextDetections @TextDetections end |
Instance Method Details
#deserialize(params) ⇒ Object
4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 |
# File 'lib/v20181119/models.rb', line 4347 def deserialize(params) unless params['TextDetections'].nil? @TextDetections = [] params['TextDetections'].each do |i| textdetection_tmp = TextDetection.new textdetection_tmp.deserialize(i) @TextDetections << textdetection_tmp end end @Angel = params['Angel'] @Angle = params['Angle'] @RequestId = params['RequestId'] end |