Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
medienverarbeitung17.projectmood
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Frank Tjado Ihmels
medienverarbeitung17.projectmood
Commits
7ab441c1
Commit
7ab441c1
authored
Dec 19, 2017
by
tihmels
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
model hinzugefügt
parent
9ea9b986
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
80493 additions
and
3 deletions
+80493
-3
projectmood/basis_data/models/detection_model.xml
projectmood/basis_data/models/detection_model.xml
+80490
-0
projectmood/process_model.py
projectmood/process_model.py
+3
-3
No files found.
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