Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Frank Tjado Ihmels
medienverarbeitung17.projectmood
Commits
05fba73b
Commit
05fba73b
authored
Dec 20, 2017
by
Arne Gerdes
Browse files
Neue Kommentare hinzugefügt
parent
c4eb2a94
Changes
1
Hide whitespace changes
Inline
Side-by-side
projectmood/sorted_set_facedetector.py
View file @
05fba73b
...
...
@@ -8,14 +8,21 @@ logging.basicConfig(level=logging.DEBUG, format='%(asctime)s %(name)-12s %(level
filename
=
'logs/sorted_set_facedetector.log'
,
filemode
=
'w'
)
emotions
=
[
"happy"
,
"neutral"
,
"surprise"
]
# Emotionen die verarbeitet werden sollen
"""
Emotionen die verarbeitet werden sollen
"""
emotions
=
[
"happy"
,
"neutral"
,
"surprise"
]
totalFiles
:
int
=
0
totalFaces
:
int
=
0
undetected
:
list
=
[]
def
detect_faces
(
emotion
):
files
=
glob
.
glob
(
'basis_data/sorted_set/{}/*'
.
format
(
emotion
))
# Holt alle Dateien zu einer Emotion aus dem sorted_set
"""
Holt alle Dateien zu einer Emotion aus dem sorted_set
"""
files
=
glob
.
glob
(
'basis_data/sorted_set/{}/*'
.
format
(
emotion
))
global
undetected
global
totalFaces
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment