From 54a417d41183b467c5daff03919d570965effeb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9=20Boulet?= <timothe.boulet@student-cs.fr> Date: Fri, 18 Jun 2021 15:42:36 +0200 Subject: [PATCH] comments --- game.py | 12 +++++++++++- main.py | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/game.py b/game.py index 0249138..bca8419 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 4ca5558..3620ab4 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 -- GitLab