手把手教你用 1 行命令实现人脸识别(3)

d.polygon(face_landmarks['right_eyebrow'], fill=(68,54,39,128))

d.line(face_landmarks['left_eyebrow'], fill=(68,54,39,150), width=5)

d.line(face_landmarks['right_eyebrow'], fill=(68,54,39,150), width=5)

#光泽的嘴唇

d.polygon(face_landmarks['top_lip'], fill=(150,0,0,128))

d.polygon(face_landmarks['bottom_lip'], fill=(150,0,0,128))

d.line(face_landmarks['top_lip'], fill=(150,0,0,64), width=8)

d.line(face_landmarks['bottom_lip'], fill=(150,0,0,64), width=8)

#闪耀眼睛

d.polygon(face_landmarks['left_eye'], fill=(255,255,255,30))

d.polygon(face_landmarks['right_eye'], fill=(255,255,255,30))

#涂一些眼线

d.line(face_landmarks['left_eye']+[face_landmarks['left_eye'][0]], fill=(0,0,0,110), width=6)

d.line(face_landmarks['right_eye']+[face_landmarks['right_eye'][0]], fill=(0,0,0,110), width=6)

pil_image.show()

美颜前后对比

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/b04019211673245a01e9b605a75582a8.html