Skip to content

Instantly share code, notes, and snippets.

@easonlai
Created February 13, 2021 09:47
Show Gist options
  • Save easonlai/737caf493703f73e9d6d05bea2ebab7d to your computer and use it in GitHub Desktop.
Save easonlai/737caf493703f73e9d6d05bea2ebab7d to your computer and use it in GitHub Desktop.
# Parse collected face landmarks into variables
for face in faces:
flm = face['faceLandmarks']
pupilLeft = flm['pupilLeft']
pupilRight = flm['pupilRight']
noseTip = flm['noseTip']
mouthLeft = flm['mouthLeft']
mouthRight = flm['mouthRight']
eyebrowLeftOuter = flm['eyebrowLeftOuter']
eyebrowLeftInner = flm['eyebrowLeftInner']
eyeLeftInner = flm['eyeLeftInner']
eyeLeftTop = flm['eyeLeftTop']
eyeLeftBottom = flm['eyeLeftBottom']
eyeLeftOuter = flm['eyeLeftOuter']
eyebrowRightOuter = flm['eyebrowRightOuter']
eyebrowRightInner = flm['eyebrowRightInner']
eyeRightInner = flm['eyeRightInner']
eyeRightTop = flm['eyeRightTop']
eyeRightBottom = flm['eyeRightBottom']
eyeRightOuter = flm['eyeRightOuter']
noseRootLeft = flm['noseRootLeft']
noseRootRight = flm['noseRootRight']
noseLeftAlarTop = flm['noseLeftAlarTop']
noseRightAlarTop = flm['noseRightAlarTop']
noseLeftAlarOutTip = flm['noseLeftAlarOutTip']
noseRightAlarOutTip = flm['noseRightAlarOutTip']
upperLipTop = flm['upperLipTop']
upperLipBottom = flm['upperLipBottom']
underLipTop = flm['underLipTop']
underLipBottom = flm['underLipBottom']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment