Created
February 13, 2021 09:55
-
-
Save easonlai/fc206871be9eea111bca6b3addd934d7 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
# Define CV2 circle points by face landmarks x y position | |
pupilLeft = cv2.circle(frame,(int(pupilLeft['x']), int(pupilLeft['y'])), 8, (0, 0, 255), -1) | |
pupilRight = cv2.circle(frame,(int(pupilRight['x']), int(pupilRight['y'])), 8, (0, 0, 255), -1) | |
noseTip = cv2.circle(frame,(int(noseTip['x']), int(noseTip['y'])), 8, (0, 0, 255), -1) | |
mouthLeft = cv2.circle(frame,(int(mouthLeft['x']), int(mouthLeft['y'])), 8, (0, 0, 255), -1) | |
mouthRight = cv2.circle(frame,(int(mouthRight['x']), int(mouthRight['y'])), 8, (0, 0, 255), -1) | |
eyebrowLeftOuter = cv2.circle(frame,(int(eyebrowLeftOuter['x']), int(eyebrowLeftOuter['y'])), 8, (0, 0, 255), -1) | |
eyebrowLeftInner = cv2.circle(frame,(int(eyebrowLeftInner['x']), int(eyebrowLeftInner['y'])), 8, (0, 0, 255), -1) | |
eyeLeftInner = cv2.circle(frame,(int(eyeLeftInner['x']), int(eyeLeftInner['y'])), 8, (0, 0, 255), -1) | |
eyeLeftTop = cv2.circle(frame,(int(eyeLeftTop['x']), int(eyeLeftTop['y'])), 8, (0, 0, 255), -1) | |
eyeLeftBottom = cv2.circle(frame,(int(eyeLeftBottom['x']), int(eyeLeftBottom['y'])), 8, (0, 0, 255), -1) | |
eyeLeftOuter = cv2.circle(frame,(int(eyeLeftOuter['x']), int(eyeLeftOuter['y'])), 8, (0, 0, 255), -1) | |
eyebrowRightInner = cv2.circle(frame,(int(eyebrowRightInner['x']), int(eyebrowRightInner['y'])), 8, (0, 0, 255), -1) | |
eyebrowRightOuter = cv2.circle(frame,(int(eyebrowRightOuter['x']), int(eyebrowRightOuter['y'])), 8, (0, 0, 255), -1) | |
eyeRightInner = cv2.circle(frame,(int(eyeRightInner['x']), int(eyeRightInner['y'])), 8, (0, 0, 255), -1) | |
eyeRightTop = cv2.circle(frame,(int(eyeRightTop['x']), int(eyeRightTop['y'])), 8, (0, 0, 255), -1) | |
eyeRightBottom = cv2.circle(frame,(int(eyeRightBottom['x']), int(eyeRightBottom['y'])), 8, (0, 0, 255), -1) | |
eyeRightOuter = cv2.circle(frame,(int(eyeRightOuter['x']), int(eyeRightOuter['y'])), 8, (0, 0, 255), -1) | |
noseRootLeft = cv2.circle(frame,(int(noseRootLeft['x']), int(noseRootLeft['y'])), 8, (0, 0, 255), -1) | |
noseRootRight = cv2.circle(frame,(int(noseRootRight['x']), int(noseRootRight['y'])), 8, (0, 0, 255), -1) | |
noseLeftAlarTop = cv2.circle(frame,(int(noseLeftAlarTop['x']), int(noseLeftAlarTop['y'])), 8, (0, 0, 255), -1) | |
noseRightAlarTop = cv2.circle(frame,(int(noseRightAlarTop['x']), int(noseRightAlarTop['y'])), 8, (0, 0, 255), -1) | |
noseLeftAlarOutTip = cv2.circle(frame,(int(noseLeftAlarOutTip['x']), int(noseLeftAlarOutTip['y'])), 8, (0, 0, 255), -1) | |
noseRightAlarOutTip = cv2.circle(frame,(int(noseRightAlarOutTip['x']), int(noseRightAlarOutTip['y'])), 8, (0, 0, 255), -1) | |
upperLipTop = cv2.circle(frame,(int(upperLipTop['x']), int(upperLipTop['y'])), 8, (0, 0, 255), -1) | |
upperLipBottom = cv2.circle(frame,(int(upperLipBottom['x']), int(upperLipBottom['y'])), 8, (0, 0, 255), -1) | |
underLipTop = cv2.circle(frame,(int(underLipTop['x']), int(underLipTop['y'])), 8, (0, 0, 255), -1) | |
underLipBottom = cv2.circle(frame,(int(underLipBottom['x']), int(underLipBottom['y'])), 8, (0, 0, 255), -1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment