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.
4080 4081 4082 4083 4084 4085 |
# File 'lib/v20181119/models.rb', line 4080 def initialize(textdetections=nil, angel=nil, angle=nil, requestid=nil) @TextDetections = textdetections @Angel = angel @Angle = angle @RequestId = requestid end |
Instance Attribute Details
#Angel ⇒ Object
4075 4076 4077 |
# File 'lib/v20181119/models.rb', line 4075 def Angel @Angel end |
#Angle ⇒ Object
4075 4076 4077 |
# File 'lib/v20181119/models.rb', line 4075 def Angle @Angle end |
#RequestId ⇒ Object
4075 4076 4077 |
# File 'lib/v20181119/models.rb', line 4075 def RequestId @RequestId end |
#TextDetections ⇒ Object
4075 4076 4077 |
# File 'lib/v20181119/models.rb', line 4075 def TextDetections @TextDetections end |
Instance Method Details
#deserialize(params) ⇒ Object
4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 |
# File 'lib/v20181119/models.rb', line 4087 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 |