Class: TencentCloud::Iai::V20200303::FaceShape
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Iai::V20200303::FaceShape
- Defined in:
- lib/v20200303/models.rb
Overview
五官定位(人脸关键点)具体信息。
Instance Attribute Summary collapse
- #FaceProfile ⇒ Object
- #LeftEye ⇒ Object
- #LeftEyeBrow ⇒ Object
- #LeftPupil ⇒ Object
- #Mouth ⇒ Object
- #Nose ⇒ Object
- #RightEye ⇒ Object
- #RightEyeBrow ⇒ Object
- #RightPupil ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(faceprofile = nil, lefteye = nil, righteye = nil, lefteyebrow = nil, righteyebrow = nil, mouth = nil, nose = nil, leftpupil = nil, rightpupil = nil) ⇒ FaceShape
constructor
A new instance of FaceShape.
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
#FaceProfile ⇒ Object
2097 2098 2099 |
# File 'lib/v20200303/models.rb', line 2097 def FaceProfile @FaceProfile end |
#LeftEye ⇒ Object
2097 2098 2099 |
# File 'lib/v20200303/models.rb', line 2097 def LeftEye @LeftEye end |
#LeftEyeBrow ⇒ Object
2097 2098 2099 |
# File 'lib/v20200303/models.rb', line 2097 def LeftEyeBrow @LeftEyeBrow end |
#LeftPupil ⇒ Object
2097 2098 2099 |
# File 'lib/v20200303/models.rb', line 2097 def LeftPupil @LeftPupil end |
#Mouth ⇒ Object
2097 2098 2099 |
# File 'lib/v20200303/models.rb', line 2097 def Mouth @Mouth end |
#Nose ⇒ Object
2097 2098 2099 |
# File 'lib/v20200303/models.rb', line 2097 def Nose @Nose end |
#RightEye ⇒ Object
2097 2098 2099 |
# File 'lib/v20200303/models.rb', line 2097 def RightEye @RightEye end |
#RightEyeBrow ⇒ Object
2097 2098 2099 |
# File 'lib/v20200303/models.rb', line 2097 def RightEyeBrow @RightEyeBrow end |
#RightPupil ⇒ Object
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 |