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.



11255
11256
11257
11258
11259
# File 'lib/v20181119/models.rb', line 11255

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

Instance Attribute Details

#NameObject

Parameters:

  • Name:

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

  • Value:

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

  • Rect:

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



11253
11254
11255
# File 'lib/v20181119/models.rb', line 11253

def Name
  @Name
end

#RectObject

Parameters:

  • Name:

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

  • Value:

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

  • Rect:

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



11253
11254
11255
# File 'lib/v20181119/models.rb', line 11253

def Rect
  @Rect
end

#ValueObject

Parameters:

  • Name:

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

  • Value:

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

  • Rect:

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



11253
11254
11255
# File 'lib/v20181119/models.rb', line 11253

def Value
  @Value
end

Instance Method Details

#deserialize(params) ⇒ Object



11261
11262
11263
11264
11265
11266
11267
11268
# File 'lib/v20181119/models.rb', line 11261

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