Class: TencentCloud::Ocr::V20181119::PassportOCRRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ocr::V20181119::PassportOCRRequest
- Defined in:
- lib/v20181119/models.rb
Overview
PassportOCR请求参数结构体
Instance Attribute Summary collapse
-
#CropPortrait ⇒ Object
支持中国大陆地区护照。.
-
#ImageBase64 ⇒ Object
支持中国大陆地区护照。.
-
#ImageUrl ⇒ Object
支持中国大陆地区护照。.
-
#Type ⇒ Object
支持中国大陆地区护照。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(imagebase64 = nil, imageurl = nil, type = nil, cropportrait = nil) ⇒ PassportOCRRequest
constructor
A new instance of PassportOCRRequest.
Constructor Details
#initialize(imagebase64 = nil, imageurl = nil, type = nil, cropportrait = nil) ⇒ PassportOCRRequest
Returns a new instance of PassportOCRRequest.
7358 7359 7360 7361 7362 7363 |
# File 'lib/v20181119/models.rb', line 7358 def initialize(imagebase64=nil, imageurl=nil, type=nil, cropportrait=nil) @ImageBase64 = imagebase64 @ImageUrl = imageurl @Type = type @CropPortrait = cropportrait end |
Instance Attribute Details
#CropPortrait ⇒ Object
支持中国大陆地区护照。
7356 7357 7358 |
# File 'lib/v20181119/models.rb', line 7356 def CropPortrait @CropPortrait end |
#ImageBase64 ⇒ Object
支持中国大陆地区护照。
7356 7357 7358 |
# File 'lib/v20181119/models.rb', line 7356 def ImageBase64 @ImageBase64 end |
#ImageUrl ⇒ Object
支持中国大陆地区护照。
7356 7357 7358 |
# File 'lib/v20181119/models.rb', line 7356 def ImageUrl @ImageUrl end |
#Type ⇒ Object
支持中国大陆地区护照。
7356 7357 7358 |
# File 'lib/v20181119/models.rb', line 7356 def Type @Type end |
Instance Method Details
#deserialize(params) ⇒ Object
7365 7366 7367 7368 7369 7370 |
# File 'lib/v20181119/models.rb', line 7365 def deserialize(params) @ImageBase64 = params['ImageBase64'] @ImageUrl = params['ImageUrl'] @Type = params['Type'] @CropPortrait = params['CropPortrait'] end |