Skip to content
Snippets Groups Projects
Commit d298877c authored by Timothé Boulet's avatar Timothé Boulet :alien:
Browse files

builder

parent 0349dfc3
No related branches found
No related tags found
No related merge requests found
{
"python.pythonPath": "C:\\Users\\timot\\AppData\\Local\\Microsoft\\WindowsApps\\python.exe"
"python.pythonPath": "C:\\Users\\timot\\AppData\\Local\\Microsoft\\WindowsApps\\python3.9.exe"
}
\ No newline at end of file
File moved
This diff is collapsed.
......@@ -34,13 +34,13 @@ while cap.isOpened(): #or while 1. cap.isOpened() is false if there is a probl
cv2.imshow("Caméra", frame) #Show you making emotional faces
cv2.putText(smiley, "Score: "+str(score), (0,0), cv2.FONT_HERSHEY_SIMPLEX, 1, (0,0,255), 2)
cv2.putText(smiley, "Score: "+str(score), (20,20), cv2.FONT_HERSHEY_SIMPLEX, 1, (0,0,255), 2)
cv2.imshow("Smiley", smiley) #Show the smiley to mimic
if cv2.waitKey(1) & 0xFF == ord('q'): #If you press Q, stop the while and so the capture
break
if cv2.waitKey(1) & 0xFF == ord('q'): #If you press P, pass the smiley but lower your score
if cv2.waitKey(1) & 0xFF == ord('p'): #If you press P, pass the smiley but lower your score
score -= 1
smiley, emotion = smileyRandom(emotion)
......
This diff is collapsed.
File added
File added
File added
This diff is collapsed.
File added
File added
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment