Class: TencentCloud::Iai::V20180301::FaceShape

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

Overview

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(faceprofile = nil, lefteye = nil, righteye = nil, lefteyebrow = nil, righteyebrow = nil, mouth = nil, nose = nil, leftpupil = nil, rightpupil = nil) ⇒ FaceShape

Returns a new instance of FaceShape.



1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
# File 'lib/v20180301/models.rb', line 1773

def initialize(faceprofile=nil, lefteye=nil, righteye=nil, lefteyebrow=nil, righteyebrow=nil, mouth=nil, nose=nil, leftpupil=nil, rightpupil=nil)
  @FaceProfile = faceprofile
  @LeftEye = lefteye
  @RightEye = righteye
  @LeftEyeBrow = lefteyebrow
  @RightEyeBrow = righteyebrow
  @Mouth = mouth
  @Nose = nose
  @LeftPupil = leftpupil
  @RightPupil = rightpupil
end

Instance Attribute Details

#FaceProfileObject

Parameters:

  • FaceProfile:

    描述脸型轮廓的 21 点。

  • LeftEye:

    描述左侧眼睛轮廓的 8 点。

  • RightEye:

    描述右侧眼睛轮廓的 8 点。

  • LeftEyeBrow:

    描述左侧眉毛轮廓的 8 点。

  • RightEyeBrow:

    描述右侧眉毛轮廓的 8 点。

  • Mouth:

    描述嘴巴轮廓的 22 点。

  • Nose:

    描述鼻子轮廓的 13 点。

  • LeftPupil:

    左瞳孔轮廓的 1 个点。

  • RightPupil:

    右瞳孔轮廓的 1 个点。



1771
1772
1773
# File 'lib/v20180301/models.rb', line 1771

def FaceProfile
  @FaceProfile
end

#LeftEyeObject

Parameters:

  • FaceProfile:

    描述脸型轮廓的 21 点。

  • LeftEye:

    描述左侧眼睛轮廓的 8 点。

  • RightEye:

    描述右侧眼睛轮廓的 8 点。

  • LeftEyeBrow:

    描述左侧眉毛轮廓的 8 点。

  • RightEyeBrow:

    描述右侧眉毛轮廓的 8 点。

  • Mouth:

    描述嘴巴轮廓的 22 点。

  • Nose:

    描述鼻子轮廓的 13 点。

  • LeftPupil:

    左瞳孔轮廓的 1 个点。

  • RightPupil:

    右瞳孔轮廓的 1 个点。



1771
1772
1773
# File 'lib/v20180301/models.rb', line 1771

def LeftEye
  @LeftEye
end

#LeftEyeBrowObject

Parameters:

  • FaceProfile:

    描述脸型轮廓的 21 点。

  • LeftEye:

    描述左侧眼睛轮廓的 8 点。

  • RightEye:

    描述右侧眼睛轮廓的 8 点。

  • LeftEyeBrow:

    描述左侧眉毛轮廓的 8 点。

  • RightEyeBrow:

    描述右侧眉毛轮廓的 8 点。

  • Mouth:

    描述嘴巴轮廓的 22 点。

  • Nose:

    描述鼻子轮廓的 13 点。

  • LeftPupil:

    左瞳孔轮廓的 1 个点。

  • RightPupil:

    右瞳孔轮廓的 1 个点。



1771
1772
1773
# File 'lib/v20180301/models.rb', line 1771

def LeftEyeBrow
  @LeftEyeBrow
end

#LeftPupilObject

Parameters:

  • FaceProfile:

    描述脸型轮廓的 21 点。

  • LeftEye:

    描述左侧眼睛轮廓的 8 点。

  • RightEye:

    描述右侧眼睛轮廓的 8 点。

  • LeftEyeBrow:

    描述左侧眉毛轮廓的 8 点。

  • RightEyeBrow:

    描述右侧眉毛轮廓的 8 点。

  • Mouth:

    描述嘴巴轮廓的 22 点。

  • Nose:

    描述鼻子轮廓的 13 点。

  • LeftPupil:

    左瞳孔轮廓的 1 个点。

  • RightPupil:

    右瞳孔轮廓的 1 个点。



1771
1772
1773
# File 'lib/v20180301/models.rb', line 1771

def LeftPupil
  @LeftPupil
end

#MouthObject

Parameters:

  • FaceProfile:

    描述脸型轮廓的 21 点。

  • LeftEye:

    描述左侧眼睛轮廓的 8 点。

  • RightEye:

    描述右侧眼睛轮廓的 8 点。

  • LeftEyeBrow:

    描述左侧眉毛轮廓的 8 点。

  • RightEyeBrow:

    描述右侧眉毛轮廓的 8 点。

  • Mouth:

    描述嘴巴轮廓的 22 点。

  • Nose:

    描述鼻子轮廓的 13 点。

  • LeftPupil:

    左瞳孔轮廓的 1 个点。

  • RightPupil:

    右瞳孔轮廓的 1 个点。



1771
1772
1773
# File 'lib/v20180301/models.rb', line 1771

def Mouth
  @Mouth
end

#NoseObject

Parameters:

  • FaceProfile:

    描述脸型轮廓的 21 点。

  • LeftEye:

    描述左侧眼睛轮廓的 8 点。

  • RightEye:

    描述右侧眼睛轮廓的 8 点。

  • LeftEyeBrow:

    描述左侧眉毛轮廓的 8 点。

  • RightEyeBrow:

    描述右侧眉毛轮廓的 8 点。

  • Mouth:

    描述嘴巴轮廓的 22 点。

  • Nose:

    描述鼻子轮廓的 13 点。

  • LeftPupil:

    左瞳孔轮廓的 1 个点。

  • RightPupil:

    右瞳孔轮廓的 1 个点。



1771
1772
1773
# File 'lib/v20180301/models.rb', line 1771

def Nose
  @Nose
end

#RightEyeObject

Parameters:

  • FaceProfile:

    描述脸型轮廓的 21 点。

  • LeftEye:

    描述左侧眼睛轮廓的 8 点。

  • RightEye:

    描述右侧眼睛轮廓的 8 点。

  • LeftEyeBrow:

    描述左侧眉毛轮廓的 8 点。

  • RightEyeBrow:

    描述右侧眉毛轮廓的 8 点。

  • Mouth:

    描述嘴巴轮廓的 22 点。

  • Nose:

    描述鼻子轮廓的 13 点。

  • LeftPupil:

    左瞳孔轮廓的 1 个点。

  • RightPupil:

    右瞳孔轮廓的 1 个点。



1771
1772
1773
# File 'lib/v20180301/models.rb', line 1771

def RightEye
  @RightEye
end

#RightEyeBrowObject

Parameters:

  • FaceProfile:

    描述脸型轮廓的 21 点。

  • LeftEye:

    描述左侧眼睛轮廓的 8 点。

  • RightEye:

    描述右侧眼睛轮廓的 8 点。

  • LeftEyeBrow:

    描述左侧眉毛轮廓的 8 点。

  • RightEyeBrow:

    描述右侧眉毛轮廓的 8 点。

  • Mouth:

    描述嘴巴轮廓的 22 点。

  • Nose:

    描述鼻子轮廓的 13 点。

  • LeftPupil:

    左瞳孔轮廓的 1 个点。

  • RightPupil:

    右瞳孔轮廓的 1 个点。



1771
1772
1773
# File 'lib/v20180301/models.rb', line 1771

def RightEyeBrow
  @RightEyeBrow
end

#RightPupilObject

Parameters:

  • FaceProfile:

    描述脸型轮廓的 21 点。

  • LeftEye:

    描述左侧眼睛轮廓的 8 点。

  • RightEye:

    描述右侧眼睛轮廓的 8 点。

  • LeftEyeBrow:

    描述左侧眉毛轮廓的 8 点。

  • RightEyeBrow:

    描述右侧眉毛轮廓的 8 点。

  • Mouth:

    描述嘴巴轮廓的 22 点。

  • Nose:

    描述鼻子轮廓的 13 点。

  • LeftPupil:

    左瞳孔轮廓的 1 个点。

  • RightPupil:

    右瞳孔轮廓的 1 个点。



1771
1772
1773
# File 'lib/v20180301/models.rb', line 1771

def RightPupil
  @RightPupil
end

Instance Method Details

#deserialize(params) ⇒ Object



1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
# File 'lib/v20180301/models.rb', line 1785

def deserialize(params)
  unless params['FaceProfile'].nil?
    @FaceProfile = []
    params['FaceProfile'].each do |i|
      point_tmp = Point.new
      point_tmp.deserialize(i)
      @FaceProfile << point_tmp
    end
  end
  unless params['LeftEye'].nil?
    @LeftEye = []
    params['LeftEye'].each do |i|
      point_tmp = Point.new
      point_tmp.deserialize(i)
      @LeftEye << point_tmp
    end
  end
  unless params['RightEye'].nil?
    @RightEye = []
    params['RightEye'].each do |i|
      point_tmp = Point.new
      point_tmp.deserialize(i)
      @RightEye << point_tmp
    end
  end
  unless params['LeftEyeBrow'].nil?
    @LeftEyeBrow = []
    params['LeftEyeBrow'].each do |i|
      point_tmp = Point.new
      point_tmp.deserialize(i)
      @LeftEyeBrow << point_tmp
    end
  end
  unless params['RightEyeBrow'].nil?
    @RightEyeBrow = []
    params['RightEyeBrow'].each do |i|
      point_tmp = Point.new
      point_tmp.deserialize(i)
      @RightEyeBrow << point_tmp
    end
  end
  unless params['Mouth'].nil?
    @Mouth = []
    params['Mouth'].each do |i|
      point_tmp = Point.new
      point_tmp.deserialize(i)
      @Mouth << point_tmp
    end
  end
  unless params['Nose'].nil?
    @Nose = []
    params['Nose'].each do |i|
      point_tmp = Point.new
      point_tmp.deserialize(i)
      @Nose << point_tmp
    end
  end
  unless params['LeftPupil'].nil?
    @LeftPupil = []
    params['LeftPupil'].each do |i|
      point_tmp = Point.new
      point_tmp.deserialize(i)
      @LeftPupil << point_tmp
    end
  end
  unless params['RightPupil'].nil?
    @RightPupil = []
    params['RightPupil'].each do |i|
      point_tmp = Point.new
      point_tmp.deserialize(i)
      @RightPupil << point_tmp
    end
  end
end