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
fb7416b7
Commit
fb7416b7
authored
Jan 28, 2018
by
tihmels
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Preprocessed image wird ins Bild projiziert
parent
8f47806c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
projectmood/webcam.py
projectmood/webcam.py
+2
-2
No files found.
projectmood/webcam.py
View file @
fb7416b7
...
...
@@ -53,10 +53,10 @@ def show_webcam_and_run(model, emoticons, window_size=(600, 600), window_name=pa
while
True
:
for
normalized_face
in
extract_faces
(
frame
,
resizefactor
):
#
prediction = model.predict(normalized_face) # do prediction
prediction
=
model
.
predict
(
normalized_face
)
# do prediction
# Save the Predictions
#
buffer.append(prediction[0])
buffer
.
append
(
prediction
[
0
])
# Get the entries as an array
predictions
=
buffer
.
get
()
...
...
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