Class: TencentCloud::Ocr::V20181119::GeneralAccurateOCRResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ocr::V20181119::GeneralAccurateOCRResponse
- Extended by:
- Gem::Deprecate
- Defined in:
- lib/v20181119/models.rb
Overview
GeneralAccurateOCR返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(textdetections = nil, angel = nil, angle = nil, requestid = nil) ⇒ GeneralAccurateOCRResponse
constructor
A new instance of GeneralAccurateOCRResponse.
Constructor Details
#initialize(textdetections = nil, angel = nil, angle = nil, requestid = nil) ⇒ GeneralAccurateOCRResponse
Returns a new instance of GeneralAccurateOCRResponse.
3516 3517 3518 3519 3520 3521 |
# File 'lib/v20181119/models.rb', line 3516 def initialize(textdetections=nil, angel=nil, angle=nil, requestid=nil) @TextDetections = textdetections @Angel = angel @Angle = angle @RequestId = requestid end |
Instance Attribute Details
#Angel ⇒ Object
3511 3512 3513 |
# File 'lib/v20181119/models.rb', line 3511 def Angel @Angel end |
#Angle ⇒ Object
3511 3512 3513 |
# File 'lib/v20181119/models.rb', line 3511 def Angle @Angle end |
#RequestId ⇒ Object
3511 3512 3513 |
# File 'lib/v20181119/models.rb', line 3511 def RequestId @RequestId end |
#TextDetections ⇒ Object
3511 3512 3513 |
# File 'lib/v20181119/models.rb', line 3511 def TextDetections @TextDetections end |
Instance Method Details
#deserialize(params) ⇒ Object
3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 |
# File 'lib/v20181119/models.rb', line 3523 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 |