Class: TencentCloud::Iai::V20200303::FaceShape

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20200303/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.



2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
# File 'lib/v20200303/models.rb', line 2099

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 个点。



2097
2098
2099
# File 'lib/v20200303/models.rb', line 2097

def FaceProfile
  @FaceProfile
end

#LeftEyeObject

Parameters:

  • FaceProfile:

    描述脸型轮廓的 21 点。

  • LeftEye:

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

  • RightEye:

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

  • LeftEyeBrow:

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

  • RightEyeBrow:

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

  • Mouth:

    描述嘴巴轮廓的 22 点。

  • Nose:

    描述鼻子轮廓的 13 点。

  • LeftPupil:

    左瞳孔轮廓的 1 个点。

  • RightPupil:

    右瞳孔轮廓的 1 个点。



2097
2098
2099
# File 'lib/v20200303/models.rb', line 2097

def LeftEye
  @LeftEye
end

#LeftEyeBrowObject

Parameters:

  • FaceProfile:

    描述脸型轮廓的 21 点。

  • LeftEye:

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

  • RightEye:

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

  • LeftEyeBrow:

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

  • RightEyeBrow:

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

  • Mouth:

    描述嘴巴轮廓的 22 点。

  • Nose:

    描述鼻子轮廓的 13 点。

  • LeftPupil:

    左瞳孔轮廓的 1 个点。

  • RightPupil:

    右瞳孔轮廓的 1 个点。



2097
2098
2099
# File 'lib/v20200303/models.rb', line 2097

def LeftEyeBrow
  @LeftEyeBrow
end

#LeftPupilObject

Parameters:

  • FaceProfile:

    描述脸型轮廓的 21 点。

  • LeftEye:

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

  • RightEye:

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

  • LeftEyeBrow:

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

  • RightEyeBrow:

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

  • Mouth:

    描述嘴巴轮廓的 22 点。

  • Nose:

    描述鼻子轮廓的 13 点。

  • LeftPupil:

    左瞳孔轮廓的 1 个点。

  • RightPupil:

    右瞳孔轮廓的 1 个点。



2097
2098
2099
# File 'lib/v20200303/models.rb', line 2097

def LeftPupil
  @LeftPupil
end

#MouthObject

Parameters:

  • FaceProfile:

    描述脸型轮廓的 21 点。

  • LeftEye:

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

  • RightEye:

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

  • LeftEyeBrow:

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

  • RightEyeBrow:

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

  • Mouth:

    描述嘴巴轮廓的 22 点。

  • Nose:

    描述鼻子轮廓的 13 点。

  • LeftPupil:

    左瞳孔轮廓的 1 个点。

  • RightPupil:

    右瞳孔轮廓的 1 个点。



2097
2098
2099
# File 'lib/v20200303/models.rb', line 2097

def Mouth
  @Mouth
end

#NoseObject

Parameters:

  • FaceProfile:

    描述脸型轮廓的 21 点。

  • LeftEye:

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

  • RightEye:

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

  • LeftEyeBrow:

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

  • RightEyeBrow:

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

  • Mouth:

    描述嘴巴轮廓的 22 点。

  • Nose:

    描述鼻子轮廓的 13 点。

  • LeftPupil:

    左瞳孔轮廓的 1 个点。

  • RightPupil:

    右瞳孔轮廓的 1 个点。



2097
2098
2099
# File 'lib/v20200303/models.rb', line 2097

def Nose
  @Nose
end

#RightEyeObject

Parameters:

  • FaceProfile:

    描述脸型轮廓的 21 点。

  • LeftEye:

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

  • RightEye:

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

  • LeftEyeBrow:

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

  • RightEyeBrow:

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

  • Mouth:

    描述嘴巴轮廓的 22 点。

  • Nose:

    描述鼻子轮廓的 13 点。

  • LeftPupil:

    左瞳孔轮廓的 1 个点。

  • RightPupil:

    右瞳孔轮廓的 1 个点。



2097
2098
2099
# File 'lib/v20200303/models.rb', line 2097

def RightEye
  @RightEye
end

#RightEyeBrowObject

Parameters:

  • FaceProfile:

    描述脸型轮廓的 21 点。

  • LeftEye:

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

  • RightEye:

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

  • LeftEyeBrow:

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

  • RightEyeBrow:

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

  • Mouth:

    描述嘴巴轮廓的 22 点。

  • Nose:

    描述鼻子轮廓的 13 点。

  • LeftPupil:

    左瞳孔轮廓的 1 个点。

  • RightPupil:

    右瞳孔轮廓的 1 个点。



2097
2098
2099
# File 'lib/v20200303/models.rb', line 2097

def RightEyeBrow
  @RightEyeBrow
end

#RightPupilObject

Parameters:

  • FaceProfile:

    描述脸型轮廓的 21 点。

  • LeftEye:

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

  • RightEye:

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

  • LeftEyeBrow:

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

  • RightEyeBrow:

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

  • Mouth:

    描述嘴巴轮廓的 22 点。

  • Nose:

    描述鼻子轮廓的 13 点。

  • LeftPupil:

    左瞳孔轮廓的 1 个点。

  • RightPupil:

    右瞳孔轮廓的 1 个点。



2097
2098
2099
# File 'lib/v20200303/models.rb', line 2097

def RightPupil
  @RightPupil
end

Instance Method Details

#deserialize(params) ⇒ Object



2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
# File 'lib/v20200303/models.rb', line 2111

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