Class: TencentCloud::Ocr::V20181119::GeneralBasicOCRResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ocr::V20181119::GeneralBasicOCRResponse
- Extended by:
- Gem::Deprecate
- Defined in:
- lib/v20181119/models.rb
Overview
GeneralBasicOCR返回参数结构体
Instance Attribute Summary collapse
- #Angel ⇒ Object
- #Angle ⇒ Object
- #Language ⇒ Object
- #PdfPageSize ⇒ Object
- #RequestId ⇒ Object
- #TextDetections ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(textdetections = nil, language = nil, angel = nil, pdfpagesize = nil, angle = nil, requestid = nil) ⇒ GeneralBasicOCRResponse
constructor
A new instance of GeneralBasicOCRResponse.
Constructor Details
#initialize(textdetections = nil, language = nil, angel = nil, pdfpagesize = nil, angle = nil, requestid = nil) ⇒ GeneralBasicOCRResponse
Returns a new instance of GeneralBasicOCRResponse.
3623 3624 3625 3626 3627 3628 3629 3630 |
# File 'lib/v20181119/models.rb', line 3623 def initialize(textdetections=nil, language=nil, angel=nil, pdfpagesize=nil, angle=nil, requestid=nil) @TextDetections = textdetections @Language = language @Angel = angel @PdfPageSize = pdfpagesize @Angle = angle @RequestId = requestid end |
Instance Attribute Details
#Angel ⇒ Object
3618 3619 3620 |
# File 'lib/v20181119/models.rb', line 3618 def Angel @Angel end |
#Angle ⇒ Object
3618 3619 3620 |
# File 'lib/v20181119/models.rb', line 3618 def Angle @Angle end |
#Language ⇒ Object
3618 3619 3620 |
# File 'lib/v20181119/models.rb', line 3618 def Language @Language end |
#PdfPageSize ⇒ Object
3618 3619 3620 |
# File 'lib/v20181119/models.rb', line 3618 def PdfPageSize @PdfPageSize end |
#RequestId ⇒ Object
3618 3619 3620 |
# File 'lib/v20181119/models.rb', line 3618 def RequestId @RequestId end |
#TextDetections ⇒ Object
3618 3619 3620 |
# File 'lib/v20181119/models.rb', line 3618 def TextDetections @TextDetections end |
Instance Method Details
#deserialize(params) ⇒ Object
3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 |
# File 'lib/v20181119/models.rb', line 3632 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 @Language = params['Language'] @Angel = params['Angel'] @PdfPageSize = params['PdfPageSize'] @Angle = params['Angle'] @RequestId = params['RequestId'] end |