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.
3852 3853 3854 3855 3856 3857 |
# File 'lib/v20181119/models.rb', line 3852 def initialize(textdetections=nil, angel=nil, angle=nil, requestid=nil) @TextDetections = textdetections @Angel = angel @Angle = angle @RequestId = requestid end |
Instance Attribute Details
#Angel ⇒ Object
3847 3848 3849 |
# File 'lib/v20181119/models.rb', line 3847 def Angel @Angel end |
#Angle ⇒ Object
3847 3848 3849 |
# File 'lib/v20181119/models.rb', line 3847 def Angle @Angle end |
#RequestId ⇒ Object
3847 3848 3849 |
# File 'lib/v20181119/models.rb', line 3847 def RequestId @RequestId end |
#TextDetections ⇒ Object
3847 3848 3849 |
# File 'lib/v20181119/models.rb', line 3847 def TextDetections @TextDetections end |
Instance Method Details
#deserialize(params) ⇒ Object
3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 |
# File 'lib/v20181119/models.rb', line 3859 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 |