Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2021-060
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2021-060
2021-060
Commits
2ab24d70
Commit
2ab24d70
authored
Jul 20, 2021
by
Dhananjaya Jayashanka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated videoAnalyzing(expressions).py
parent
113d5db4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
videoAnalyzing(expressions).py
videoAnalyzing(expressions).py
+12
-1
No files found.
videoAnalyzing(expressions).py
View file @
2ab24d70
...
...
@@ -3,6 +3,7 @@ from keras.preprocessing import image
import
matplotlib.pyplot
as
plt
import
cv2
import
numpy
as
np
from
collections
import
Counter
Savedmodel
=
tf
.
keras
.
models
.
load_model
(
'./emotion_lts.h5'
)
Savedmodel
.
summary
()
...
...
@@ -48,10 +49,20 @@ while(cap.isOpened()):
m
=
a
[
i
]
ind
=
i
print
(
'Expression Prediction:'
,
objects
[
ind
])
if
cv2
.
waitKey
(
20
)
&
0XFF
==
ord
(
'q'
):
break
print
(
emotion_list
)
w
=
Counter
(
emotion_list
)
print
(
w
)
cap
.
release
()
cv2
.
destroyAllWindows
()
\ No newline at end of file
cv2
.
destroyAllWindows
()
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