Class: TencentCloud::Iai::V20180301::DenseFaceShape
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Iai::V20180301::DenseFaceShape
- Defined in:
- lib/v20180301/models.rb
Overview
稠密关键点详细信息
Instance Attribute Summary collapse
- #CentralAxis ⇒ Object
- #Chin ⇒ Object
- #Forehead ⇒ Object
- #Height ⇒ Object
- #LeftEye ⇒ Object
- #LeftEyeBags ⇒ Object
- #LeftEyeBrow ⇒ Object
- #LeftPupil ⇒ Object
- #MouthInside ⇒ Object
- #MouthOutside ⇒ Object
- #Nose ⇒ Object
- #RightEye ⇒ Object
- #RightEyeBags ⇒ Object
- #RightEyeBrow ⇒ Object
- #RightPupil ⇒ Object
- #Width ⇒ Object
- #X ⇒ Object
- #Y ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(x = nil, y = nil, width = nil, height = nil, lefteye = nil, righteye = nil, lefteyebrow = nil, righteyebrow = nil, mouthoutside = nil, mouthinside = nil, nose = nil, leftpupil = nil, rightpupil = nil, centralaxis = nil, chin = nil, lefteyebags = nil, righteyebags = nil, forehead = nil) ⇒ DenseFaceShape
constructor
A new instance of DenseFaceShape.
Constructor Details
#initialize(x = nil, y = nil, width = nil, height = nil, lefteye = nil, righteye = nil, lefteyebrow = nil, righteyebrow = nil, mouthoutside = nil, mouthinside = nil, nose = nil, leftpupil = nil, rightpupil = nil, centralaxis = nil, chin = nil, lefteyebags = nil, righteyebags = nil, forehead = nil) ⇒ DenseFaceShape
Returns a new instance of DenseFaceShape.
879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 |
# File 'lib/v20180301/models.rb', line 879 def initialize(x=nil, y=nil, width=nil, height=nil, lefteye=nil, righteye=nil, lefteyebrow=nil, righteyebrow=nil, mouthoutside=nil, mouthinside=nil, nose=nil, leftpupil=nil, rightpupil=nil, centralaxis=nil, chin=nil, lefteyebags=nil, righteyebags=nil, forehead=nil) @X = x @Y = y @Width = width @Height = height @LeftEye = lefteye @RightEye = righteye @LeftEyeBrow = lefteyebrow @RightEyeBrow = righteyebrow @MouthOutside = mouthoutside @MouthInside = mouthinside @Nose = nose @LeftPupil = leftpupil @RightPupil = rightpupil @CentralAxis = centralaxis @Chin = chin @LeftEyeBags = lefteyebags @RightEyeBags = righteyebags @Forehead = forehead end |
Instance Attribute Details
#CentralAxis ⇒ Object
877 878 879 |
# File 'lib/v20180301/models.rb', line 877 def CentralAxis @CentralAxis end |
#Chin ⇒ Object
877 878 879 |
# File 'lib/v20180301/models.rb', line 877 def Chin @Chin end |
#Forehead ⇒ Object
877 878 879 |
# File 'lib/v20180301/models.rb', line 877 def Forehead @Forehead end |
#Height ⇒ Object
877 878 879 |
# File 'lib/v20180301/models.rb', line 877 def Height @Height end |
#LeftEye ⇒ Object
877 878 879 |
# File 'lib/v20180301/models.rb', line 877 def LeftEye @LeftEye end |
#LeftEyeBags ⇒ Object
877 878 879 |
# File 'lib/v20180301/models.rb', line 877 def LeftEyeBags @LeftEyeBags end |
#LeftEyeBrow ⇒ Object
877 878 879 |
# File 'lib/v20180301/models.rb', line 877 def LeftEyeBrow @LeftEyeBrow end |
#LeftPupil ⇒ Object
877 878 879 |
# File 'lib/v20180301/models.rb', line 877 def LeftPupil @LeftPupil end |
#MouthInside ⇒ Object
877 878 879 |
# File 'lib/v20180301/models.rb', line 877 def MouthInside @MouthInside end |
#MouthOutside ⇒ Object
877 878 879 |
# File 'lib/v20180301/models.rb', line 877 def MouthOutside @MouthOutside end |
#Nose ⇒ Object
877 878 879 |
# File 'lib/v20180301/models.rb', line 877 def Nose @Nose end |
#RightEye ⇒ Object
877 878 879 |
# File 'lib/v20180301/models.rb', line 877 def RightEye @RightEye end |
#RightEyeBags ⇒ Object
877 878 879 |
# File 'lib/v20180301/models.rb', line 877 def RightEyeBags @RightEyeBags end |
#RightEyeBrow ⇒ Object
877 878 879 |
# File 'lib/v20180301/models.rb', line 877 def RightEyeBrow @RightEyeBrow end |
#RightPupil ⇒ Object
877 878 879 |
# File 'lib/v20180301/models.rb', line 877 def RightPupil @RightPupil end |
#Width ⇒ Object
877 878 879 |
# File 'lib/v20180301/models.rb', line 877 def Width @Width end |
#X ⇒ Object
877 878 879 |
# File 'lib/v20180301/models.rb', line 877 def X @X end |
#Y ⇒ Object
877 878 879 |
# File 'lib/v20180301/models.rb', line 877 def Y @Y end |
Instance Method Details
#deserialize(params) ⇒ Object
900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 |
# File 'lib/v20180301/models.rb', line 900 def deserialize(params) @X = params['X'] @Y = params['Y'] @Width = params['Width'] @Height = params['Height'] 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['MouthOutside'].nil? @MouthOutside = [] params['MouthOutside'].each do |i| point_tmp = Point.new point_tmp.deserialize(i) @MouthOutside << point_tmp end end unless params['MouthInside'].nil? @MouthInside = [] params['MouthInside'].each do |i| point_tmp = Point.new point_tmp.deserialize(i) @MouthInside << 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 unless params['CentralAxis'].nil? @CentralAxis = [] params['CentralAxis'].each do |i| point_tmp = Point.new point_tmp.deserialize(i) @CentralAxis << point_tmp end end unless params['Chin'].nil? @Chin = [] params['Chin'].each do |i| point_tmp = Point.new point_tmp.deserialize(i) @Chin << point_tmp end end unless params['LeftEyeBags'].nil? @LeftEyeBags = [] params['LeftEyeBags'].each do |i| point_tmp = Point.new point_tmp.deserialize(i) @LeftEyeBags << point_tmp end end unless params['RightEyeBags'].nil? @RightEyeBags = [] params['RightEyeBags'].each do |i| point_tmp = Point.new point_tmp.deserialize(i) @RightEyeBags << point_tmp end end unless params['Forehead'].nil? @Forehead = [] params['Forehead'].each do |i| point_tmp = Point.new point_tmp.deserialize(i) @Forehead << point_tmp end end end |