Skip to content

Commit

Permalink
轮廓绘制注释添加
Browse files Browse the repository at this point in the history
  • Loading branch information
vipstone committed Apr 26, 2018
1 parent 81012a5 commit a185050
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions faceai/faceRecognitionOutline.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,15 @@

for face_landmarks in face_landmarks_list:
facial_features = [
'chin', 'left_eyebrow', 'right_eyebrow', 'nose_bridge', 'nose_tip',
'left_eye', 'right_eye', 'top_lip', 'bottom_lip'
'chin', # 下巴
'left_eyebrow', # 左眉毛
'right_eyebrow', # 右眉毛
'nose_bridge', # 鼻樑
'nose_tip', # 鼻尖
'left_eye', # 左眼
'right_eye', # 右眼
'top_lip', # 上嘴唇
'bottom_lip' # 下嘴唇
]
pil_image = Image.fromarray(image)
d = ImageDraw.Draw(pil_image)
Expand Down

0 comments on commit a185050

Please sign in to comment.