Class: TencentCloud::Ocr::V20181119::GeneralFastOCRResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ocr::V20181119::GeneralFastOCRResponse
- Defined in:
- lib/v20181119/models.rb
Overview
GeneralFastOCR返回参数结构体
Instance Attribute Summary collapse
-
#Angel ⇒ Object
返回结果含义为:zh - 中英混合,jap - 日文,kor - 韩文。.
-
#Language ⇒ Object
返回结果含义为:zh - 中英混合,jap - 日文,kor - 韩文。.
-
#PdfPageSize ⇒ Object
返回结果含义为:zh - 中英混合,jap - 日文,kor - 韩文。.
-
#RequestId ⇒ Object
返回结果含义为:zh - 中英混合,jap - 日文,kor - 韩文。.
-
#TextDetections ⇒ Object
返回结果含义为:zh - 中英混合,jap - 日文,kor - 韩文。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(textdetections = nil, language = nil, angel = nil, pdfpagesize = nil, requestid = nil) ⇒ GeneralFastOCRResponse
constructor
A new instance of GeneralFastOCRResponse.
Constructor Details
#initialize(textdetections = nil, language = nil, angel = nil, pdfpagesize = nil, requestid = nil) ⇒ GeneralFastOCRResponse
Returns a new instance of GeneralFastOCRResponse.
3755 3756 3757 3758 3759 3760 3761 |
# File 'lib/v20181119/models.rb', line 3755 def initialize(textdetections=nil, language=nil, angel=nil, pdfpagesize=nil, requestid=nil) @TextDetections = textdetections @Language = language @Angel = angel @PdfPageSize = pdfpagesize @RequestId = requestid end |
Instance Attribute Details
#Angel ⇒ Object
返回结果含义为:zh - 中英混合,jap - 日文,kor - 韩文。
3753 3754 3755 |
# File 'lib/v20181119/models.rb', line 3753 def Angel @Angel end |
#Language ⇒ Object
返回结果含义为:zh - 中英混合,jap - 日文,kor - 韩文。
3753 3754 3755 |
# File 'lib/v20181119/models.rb', line 3753 def Language @Language end |
#PdfPageSize ⇒ Object
返回结果含义为:zh - 中英混合,jap - 日文,kor - 韩文。
3753 3754 3755 |
# File 'lib/v20181119/models.rb', line 3753 def PdfPageSize @PdfPageSize end |
#RequestId ⇒ Object
返回结果含义为:zh - 中英混合,jap - 日文,kor - 韩文。
3753 3754 3755 |
# File 'lib/v20181119/models.rb', line 3753 def RequestId @RequestId end |
#TextDetections ⇒ Object
返回结果含义为:zh - 中英混合,jap - 日文,kor - 韩文。
3753 3754 3755 |
# File 'lib/v20181119/models.rb', line 3753 def TextDetections @TextDetections end |
Instance Method Details
#deserialize(params) ⇒ Object
3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 |
# File 'lib/v20181119/models.rb', line 3763 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'] @RequestId = params['RequestId'] end |