# Draw boxes around the faces and facial landmarks
for face in faces:
x, y, width, height = face['box']
rect = plt.Rectangle((x, y), width, height, fill=False, color='red')
ax.add_patch(rect)
for key, value in face['keypoints'].items():
dot = plt.Circle(value, radius=2, color='red')
ax.add_patch(dot)