diff --git a/game.py b/game.py index 02491389f5ca6a7c3b35a09538ec52cc1e96bd12..bca84192959d73c3fa220769fe7a48fde47a63bb 100644 --- a/game.py +++ b/game.py @@ -1,3 +1,8 @@ +from time import monotonic_ns + +from numpy.core.arrayprint import _make_options_dict + + def smileyRandom(emotionToDodge): #Return a random smiley and te emotion associated @@ -14,7 +19,12 @@ def smileyRandom(emotionToDodge): def game(playTime = 30, invincibleFrame=0.5, dt_required=0.5, n_photos=None): - #Play a game during playTime seconds. + #Play a game. + + # playTime : durée de jeu + # invincibleFrame : durée minimale entre deux émotions + # dt_required : durée minimal nécessaire pour valider une émotion + # n_photos : nombre de photos prises #Use your camera for processing the video. Stop by pressing Q import cv2 diff --git a/main.py b/main.py index 4ca55580fd6415bbabc9e438b2085bd79a40d59e..3620ab465569f7c12b1e51298f1ebb4abcbaf660 100644 --- a/main.py +++ b/main.py @@ -1,6 +1,6 @@ from game import * from videoCapture import * -game(playTime=300, invincibleFrame=5, dt_required=0.5, n_photos=5) +game(playTime=60, invincibleFrame=1, dt_required=0.3, n_photos=5) #videoCapture() \ No newline at end of file