Class: TencentCloud::Tci::V20190318::FaceExpressStatistic

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

Overview

人脸表情统计结果

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(personid = nil, expressratio = nil) ⇒ FaceExpressStatistic

Returns a new instance of FaceExpressStatistic.



1915
1916
1917
1918
# File 'lib/v20190318/models.rb', line 1915

def initialize(personid=nil, expressratio=nil)
  @PersonId = personid
  @ExpressRatio = expressratio
end

Instance Attribute Details

#ExpressRatioObject

Parameters:

  • PersonId:

    人员唯一标识符

  • ExpressRatio:

    表情统计结果



1913
1914
1915
# File 'lib/v20190318/models.rb', line 1913

def ExpressRatio
  @ExpressRatio
end

#PersonIdObject

Parameters:

  • PersonId:

    人员唯一标识符

  • ExpressRatio:

    表情统计结果



1913
1914
1915
# File 'lib/v20190318/models.rb', line 1913

def PersonId
  @PersonId
end

Instance Method Details

#deserialize(params) ⇒ Object



1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
# File 'lib/v20190318/models.rb', line 1920

def deserialize(params)
  @PersonId = params['PersonId']
  unless params['ExpressRatio'].nil?
    @ExpressRatio = []
    params['ExpressRatio'].each do |i|
      expressratiostatistic_tmp = ExpressRatioStatistic.new
      expressratiostatistic_tmp.deserialize(i)
      @ExpressRatio << expressratiostatistic_tmp
    end
  end
end