Created
February 13, 2021 09:47
-
-
Save easonlai/737caf493703f73e9d6d05bea2ebab7d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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