Class: TencentCloud::Tiia::V20190529::Pet

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

Overview

宠物具体信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, score = nil, location = nil) ⇒ Pet

Returns a new instance of Pet.



1632
1633
1634
1635
1636
# File 'lib/v20190529/models.rb', line 1632

def initialize(name=nil, score=nil, location=nil)
  @Name = name
  @Score = score
  @Location = location
end

Instance Attribute Details

#LocationObject

Parameters:

  • Name:

    识别出的宠物类型(猫或者狗,暂不支持识别猫狗品种)。

  • Score:

    识别服务给识别目标打出的置信度,范围在0-100之间。值越高,表示目标为相应结果的可能性越高。

  • Location:

    识别目标在图片中的坐标。



1630
1631
1632
# File 'lib/v20190529/models.rb', line 1630

def Location
  @Location
end

#NameObject

Parameters:

  • Name:

    识别出的宠物类型(猫或者狗,暂不支持识别猫狗品种)。

  • Score:

    识别服务给识别目标打出的置信度,范围在0-100之间。值越高,表示目标为相应结果的可能性越高。

  • Location:

    识别目标在图片中的坐标。



1630
1631
1632
# File 'lib/v20190529/models.rb', line 1630

def Name
  @Name
end

#ScoreObject

Parameters:

  • Name:

    识别出的宠物类型(猫或者狗,暂不支持识别猫狗品种)。

  • Score:

    识别服务给识别目标打出的置信度,范围在0-100之间。值越高,表示目标为相应结果的可能性越高。

  • Location:

    识别目标在图片中的坐标。



1630
1631
1632
# File 'lib/v20190529/models.rb', line 1630

def Score
  @Score
end

Instance Method Details

#deserialize(params) ⇒ Object



1638
1639
1640
1641
1642
1643
1644
1645
# File 'lib/v20190529/models.rb', line 1638

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