93 for index, landmark
in enumerate(landmarks.landmark):
94 if landmark.visibility < 0
or landmark.presence < 0:
continue
96 landmark_x = min(int(landmark.x * iw), iw - 1)
97 landmark_y = min(int(landmark.y * ih), ih - 1)
98 lpx.append(landmark_x)
99 lpy.append(landmark_y)
101 helper.drawCircle(landmark_x, landmark_y, 1, col,
False)
104 helper.drawLine(lpx[55], lpy[55], lpx[65], lpy[65], col)
105 helper.drawLine(lpx[65], lpy[65], lpx[52], lpy[52], col)
106 helper.drawLine(lpx[52], lpy[52], lpx[53], lpy[53], col)
107 helper.drawLine(lpx[53], lpy[53], lpx[46], lpy[46], col)
109 helper.drawLine(lpx[285], lpy[285], lpx[295], lpy[295], col)
110 helper.drawLine(lpx[295], lpy[295], lpx[282], lpy[282], col)
111 helper.drawLine(lpx[282], lpy[282], lpx[283], lpy[283], col)
112 helper.drawLine(lpx[283], lpy[283], lpx[276], lpy[276], col)
114 helper.drawLine(lpx[133], lpy[133], lpx[173], lpy[173], col)
115 helper.drawLine(lpx[173], lpy[173], lpx[157], lpy[157], col)
116 helper.drawLine(lpx[157], lpy[157], lpx[158], lpy[158], col)
117 helper.drawLine(lpx[158], lpy[158], lpx[159], lpy[159], col)
118 helper.drawLine(lpx[159], lpy[159], lpx[160], lpy[160], col)
119 helper.drawLine(lpx[160], lpy[160], lpx[161], lpy[161], col)
120 helper.drawLine(lpx[161], lpy[161], lpx[246], lpy[246], col)
122 helper.drawLine(lpx[246], lpy[246], lpx[163], lpy[163], col)
123 helper.drawLine(lpx[163], lpy[163], lpx[144], lpy[144], col)
124 helper.drawLine(lpx[144], lpy[144], lpx[145], lpy[145], col)
125 helper.drawLine(lpx[145], lpy[145], lpx[153], lpy[153], col)
126 helper.drawLine(lpx[153], lpy[153], lpx[154], lpy[154], col)
127 helper.drawLine(lpx[154], lpy[154], lpx[155], lpy[155], col)
128 helper.drawLine(lpx[155], lpy[155], lpx[133], lpy[133], col)
130 helper.drawLine(lpx[362], lpy[362], lpx[398], lpy[398], col)
131 helper.drawLine(lpx[398], lpy[398], lpx[384], lpy[384], col)
132 helper.drawLine(lpx[384], lpy[384], lpx[385], lpy[385], col)
133 helper.drawLine(lpx[385], lpy[385], lpx[386], lpy[386], col)
134 helper.drawLine(lpx[386], lpy[386], lpx[387], lpy[387], col)
135 helper.drawLine(lpx[387], lpy[387], lpx[388], lpy[388], col)
136 helper.drawLine(lpx[388], lpy[388], lpx[466], lpy[466], col)
138 helper.drawLine(lpx[466], lpy[466], lpx[390], lpy[390], col)
139 helper.drawLine(lpx[390], lpy[390], lpx[373], lpy[373], col)
140 helper.drawLine(lpx[373], lpy[373], lpx[374], lpy[374], col)
141 helper.drawLine(lpx[374], lpy[374], lpx[380], lpy[380], col)
142 helper.drawLine(lpx[380], lpy[380], lpx[381], lpy[381], col)
143 helper.drawLine(lpx[381], lpy[381], lpx[382], lpy[382], col)
144 helper.drawLine(lpx[382], lpy[382], lpx[362], lpy[362], col)
146 helper.drawLine(lpx[308], lpy[308], lpx[415], lpy[415], col)
147 helper.drawLine(lpx[415], lpy[415], lpx[310], lpy[310], col)
148 helper.drawLine(lpx[310], lpy[310], lpx[311], lpy[311], col)
149 helper.drawLine(lpx[311], lpy[311], lpx[312], lpy[312], col)
150 helper.drawLine(lpx[312], lpy[312], lpx[13], lpy[13], col)
151 helper.drawLine(lpx[13], lpy[13], lpx[82], lpy[82], col)
152 helper.drawLine(lpx[82], lpy[82], lpx[81], lpy[81], col)
153 helper.drawLine(lpx[81], lpy[81], lpx[80], lpy[80], col)
154 helper.drawLine(lpx[80], lpy[80], lpx[191], lpy[191], col)
155 helper.drawLine(lpx[191], lpy[191], lpx[78], lpy[78], col)
157 helper.drawLine(lpx[78], lpy[78], lpx[95], lpy[95], col)
158 helper.drawLine(lpx[95], lpy[95], lpx[88], lpy[88], col)
159 helper.drawLine(lpx[88], lpy[88], lpx[178], lpy[178], col)
160 helper.drawLine(lpx[178], lpy[178], lpx[87], lpy[87], col)
161 helper.drawLine(lpx[87], lpy[87], lpx[14], lpy[14], col)
162 helper.drawLine(lpx[14], lpy[14], lpx[317], lpy[317], col)
163 helper.drawLine(lpx[317], lpy[317], lpx[402], lpy[402], col)
164 helper.drawLine(lpx[402], lpy[402], lpx[318], lpy[318], col)
165 helper.drawLine(lpx[318], lpy[318], lpx[324], lpy[324], col)
166 helper.drawLine(lpx[324], lpy[324], lpx[308], lpy[308], col)