Class: TencentCloud::Ocr::V20181119::StoreInfo

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20181119/models.rb

Overview

门头照识别结果

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, value = nil, rect = nil) ⇒ StoreInfo

Returns a new instance of StoreInfo.



10196
10197
10198
10199
10200
# File 'lib/v20181119/models.rb', line 10196

def initialize(name=nil, value=nil, rect=nil)
  @Name = name
  @Value = value
  @Rect = rect
end

Instance Attribute Details

#NameObject

Parameters:

  • Name:

    识别出的字段名称(关键字),如商店名称

  • Value:

    识别出的字段名称对应的值,也就是字段Name对应的字符串结果。

  • Rect:

    文本行在旋转纠正之后的图像中的像素坐标



10194
10195
10196
# File 'lib/v20181119/models.rb', line 10194

def Name
  @Name
end

#RectObject

Parameters:

  • Name:

    识别出的字段名称(关键字),如商店名称

  • Value:

    识别出的字段名称对应的值,也就是字段Name对应的字符串结果。

  • Rect:

    文本行在旋转纠正之后的图像中的像素坐标



10194
10195
10196
# File 'lib/v20181119/models.rb', line 10194

def Rect
  @Rect
end

#ValueObject

Parameters:

  • Name:

    识别出的字段名称(关键字),如商店名称

  • Value:

    识别出的字段名称对应的值,也就是字段Name对应的字符串结果。

  • Rect:

    文本行在旋转纠正之后的图像中的像素坐标



10194
10195
10196
# File 'lib/v20181119/models.rb', line 10194

def Value
  @Value
end

Instance Method Details

#deserialize(params) ⇒ Object



10202
10203
10204
10205
10206
10207
10208
10209
# File 'lib/v20181119/models.rb', line 10202

def deserialize(params)
  @Name = params['Name']
  @Value = params['Value']
  unless params['Rect'].nil?
    @Rect = Rect.new
    @Rect.deserialize(params['Rect'])
  end
end