Skip to content
GitLab
Menu
Projects
Groups
Snippets
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
7ab441c1
Commit
7ab441c1
authored
Dec 19, 2017
by
tihmels
Browse files
model hinzugefügt
parent
9ea9b986
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
projectmood/basis_data/models/detection_model.xml
0 → 100644
View file @
7ab441c1
This diff is collapsed.
Click to expand it.
projectmood/process_model.py
View file @
7ab441c1
...
...
@@ -12,7 +12,7 @@ logging.basicConfig(level=logging.DEBUG, format='%(asctime)s %(levelname)-8s %(m
args
=
sys
.
argv
# liest Input Parameter
logging
.
debug
(
'Fisherface training initialized'
)
file
=
open
(
"
gray
.csv"
,
"w"
)
file
=
open
(
"
{}
.csv"
.
format
(
'_'
.
join
(
args
[
1
:]).
lower
())
,
"w"
)
def
_get_faces_from_emotion
(
emotion
):
"""
...
...
@@ -34,8 +34,8 @@ def image_preprocessing(image):
"""
img
=
cv2
.
imread
(
image
)
# open image
gray
=
cv2
.
cvtColor
(
img
,
cv2
.
COLOR_BGR2GRAY
)
# convert to grayscale
equal
=
cv2
.
equalizeHist
(
gray
)
return
equal
blur
=
cv2
.
GaussianBlur
(
gray
,
(
5
,
5
),
0
)
return
blur
def
make_sets
():
training_data
=
[]
...
...
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