Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Facial expression detection
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Automatants
Facial expression detection
Commits
54a417d4
Commit
54a417d4
authored
4 years ago
by
Timothé Boulet
Browse files
Options
Downloads
Patches
Plain Diff
comments
parent
ff093af6
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
game.py
+11
-1
11 additions, 1 deletion
game.py
main.py
+1
-1
1 addition, 1 deletion
main.py
with
12 additions
and
2 deletions
game.py
+
11
−
1
View file @
54a417d4
from
time
import
monotonic_ns
from
numpy.core.arrayprint
import
_make_options_dict
def
smileyRandom
(
emotionToDodge
):
def
smileyRandom
(
emotionToDodge
):
#Return a random smiley and te emotion associated
#Return a random smiley and te emotion associated
...
@@ -14,7 +19,12 @@ def smileyRandom(emotionToDodge):
...
@@ -14,7 +19,12 @@ def smileyRandom(emotionToDodge):
def
game
(
playTime
=
30
,
invincibleFrame
=
0.5
,
dt_required
=
0.5
,
n_photos
=
None
):
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
#Use your camera for processing the video. Stop by pressing Q
import
cv2
import
cv2
...
...
This diff is collapsed.
Click to expand it.
main.py
+
1
−
1
View file @
54a417d4
from
game
import
*
from
game
import
*
from
videoCapture
import
*
from
videoCapture
import
*
game
(
playTime
=
30
0
,
invincibleFrame
=
5
,
dt_required
=
0.
5
,
n_photos
=
5
)
game
(
playTime
=
6
0
,
invincibleFrame
=
1
,
dt_required
=
0.
3
,
n_photos
=
5
)
#videoCapture()
#videoCapture()
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment