Class: TencentCloud::Iai::V20180301::FaceShape
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Iai::V20180301::FaceShape
- Defined in:
- lib/v20180301/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.
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
#FaceProfile ⇒ Object
1771 1772 1773 |
# File 'lib/v20180301/models.rb', line 1771 def FaceProfile @FaceProfile end |
#LeftEye ⇒ Object
1771 1772 1773 |
# File 'lib/v20180301/models.rb', line 1771 def LeftEye @LeftEye end |
#LeftEyeBrow ⇒ Object
1771 1772 1773 |
# File 'lib/v20180301/models.rb', line 1771 def LeftEyeBrow @LeftEyeBrow end |
#LeftPupil ⇒ Object
1771 1772 1773 |
# File 'lib/v20180301/models.rb', line 1771 def LeftPupil @LeftPupil end |
#Mouth ⇒ Object
1771 1772 1773 |
# File 'lib/v20180301/models.rb', line 1771 def Mouth @Mouth end |
#Nose ⇒ Object
1771 1772 1773 |
# File 'lib/v20180301/models.rb', line 1771 def Nose @Nose end |
#RightEye ⇒ Object
1771 1772 1773 |
# File 'lib/v20180301/models.rb', line 1771 def RightEye @RightEye end |
#RightEyeBrow ⇒ Object
1771 1772 1773 |
# File 'lib/v20180301/models.rb', line 1771 def RightEyeBrow @RightEyeBrow end |
#RightPupil ⇒ Object
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 |
)