Class: TencentCloud::Ocr::V20181119::GeneralHandwritingOCRResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ocr::V20181119::GeneralHandwritingOCRResponse
- Extended by:
- Gem::Deprecate
- Defined in:
- lib/v20181119/models.rb
Overview
GeneralHandwritingOCR返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(textdetections = nil, angel = nil, angle = nil, requestid = nil) ⇒ GeneralHandwritingOCRResponse
constructor
A new instance of GeneralHandwritingOCRResponse.
Constructor Details
#initialize(textdetections = nil, angel = nil, angle = nil, requestid = nil) ⇒ GeneralHandwritingOCRResponse
Returns a new instance of GeneralHandwritingOCRResponse.
3836 3837 3838 3839 3840 3841 |
# File 'lib/v20181119/models.rb', line 3836 def initialize(textdetections=nil, angel=nil, angle=nil, requestid=nil) @TextDetections = textdetections @Angel = angel @Angle = angle @RequestId = requestid end |
Instance Attribute Details
#Angel ⇒ Object
3831 3832 3833 |
# File 'lib/v20181119/models.rb', line 3831 def Angel @Angel end |
#Angle ⇒ Object
3831 3832 3833 |
# File 'lib/v20181119/models.rb', line 3831 def Angle @Angle end |
#RequestId ⇒ Object
3831 3832 3833 |
# File 'lib/v20181119/models.rb', line 3831 def RequestId @RequestId end |
#TextDetections ⇒ Object
3831 3832 3833 |
# File 'lib/v20181119/models.rb', line 3831 def TextDetections @TextDetections end |
Instance Method Details
#deserialize(params) ⇒ Object
3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 |
# File 'lib/v20181119/models.rb', line 3843 def deserialize(params) unless params['TextDetections'].nil? @TextDetections = [] params['TextDetections'].each do |i| textgeneralhandwriting_tmp = TextGeneralHandwriting.new textgeneralhandwriting_tmp.deserialize(i) @TextDetections << textgeneralhandwriting_tmp end end @Angel = params['Angel'] @Angle = params['Angle'] @RequestId = params['RequestId'] end |