Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
21_22-J-02
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
21_22-J-02
21_22-J-02
Commits
52547cfe
Commit
52547cfe
authored
Apr 12, 2022
by
NaweenTharuka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: Emotion detection by Video
parent
150df063
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
45 deletions
+20
-45
Presently/presently/db.sqlite3
Presently/presently/db.sqlite3
+0
-0
Presently/presently/users/__pycache__/views.cpython-39.pyc
Presently/presently/users/__pycache__/views.cpython-39.pyc
+0
-0
Presently/presently/users/templates/users/emotionvideo.html
Presently/presently/users/templates/users/emotionvideo.html
+13
-44
Presently/presently/users/views.py
Presently/presently/users/views.py
+7
-1
No files found.
Presently/presently/db.sqlite3
View file @
52547cfe
No preview for this file type
Presently/presently/users/__pycache__/views.cpython-39.pyc
View file @
52547cfe
No preview for this file type
Presently/presently/users/templates/users/emotionvideo.html
View file @
52547cfe
...
...
@@ -6,52 +6,20 @@
<div
class=
"heading-text heading-line text-center mt-5"
>
<h4>
Summery of emotions
</h4>
</div>
<div
class=
"text-center py-4"
>
<h2>
The Most Used Emotion for this session:
<span
style=
"color:rgb(25, 143, 216)"
>
{{ maxemotion }}
</span></h2>
</div>
<div
class=
"row pb-5"
>
<div
class=
"col-lg-3 text-center"
>
<span
class=
"pie-chart"
data-percent=
"10"
>
<span
class=
"percent"
></span>
</span>
<h4>
Angry
</h4>
<p>
Lorem ipsum dolor sit amet, consecte adipiscing elit. Condimentum porttitor cursumus.
</p>
</div>
<div
class=
"col-lg-3 text-center"
>
<div
class=
"pie-chart"
data-percent=
"20"
data-color=
"#EA4C89"
>
<span
class=
"percent"
></span>
</div>
<h4>
Disgust
</h4>
<p>
Lorem ipsum dolor sit amet, consecte adipiscing elit. Suspendisse condimentum cursumus.
</p>
</div>
<div
class=
"col-lg-3 text-center"
>
<div
class=
"pie-chart"
data-percent=
"95"
data-color=
"#FF675B"
>
<span
class=
"percent"
></span>
</div>
<h4>
Fear
</h4>
<p>
Lorem ipsum dolor sit amet, consecte adipiscing elit. Suspendisse condimentum porttitor.
</p>
</div>
<div
class=
"col-lg-3 text-center"
>
<div
class=
"pie-chart"
data-percent=
"51"
data-color=
"#FF9900"
>
<span
class=
"percent"
></span>
</div>
<h4>
Happy
</h4>
<p>
Lorem ipsum dolor sit amet, consecte adipiscing elit. Suspendisse condimentum porttitor
cursumus.
</p>
</div>
<div
class=
"col-lg-3 text-center"
>
<div
class=
"pie-chart"
data-percent=
"02"
data-color=
"#E4EA64"
>
<span
class=
"percent"
></span>
</div>
<h4>
Sad
</h4>
<p>
Lorem ipsum dolor sit amet, consecte adipiscing elit. Suspendisse condimentum porttitor
cursumus.
</p>
</div>
<div
class=
"col-lg-3 text-center"
>
<div
class=
"pie-chart"
data-percent=
"20"
data-color=
"#6DEA64"
>
<span
class=
"percent"
></span>
</div>
<h4>
Suprise
</h4>
<p>
Lorem ipsum dolor sit amet, consecte adipiscing elit. Suspendisse condimentum porttitor
cursumus.
</p>
</div>
<div
class=
"col-lg-3 text-center"
>
<div
class=
"pie-chart"
data-percent=
"55"
data-color=
"#0FD1AA"
>
<span
class=
"percent"
></span>
{% for key, value in predictions.items %}
<div
class=
"col-lg-3 text-center"
>
<span
class=
"pie-chart"
data-percent=
"{{ value }}"
>
<span
class=
"percent"
></span>
</span>
<h4>
{{ key }}
</h4>
<p>
{{ value }}
</p>
</div>
<h4>
Neutral
</h4>
<p>
Lorem ipsum dolor sit amet, consecte adipiscing elit. Suspendisse condimentum porttitor
cursumus.
</p>
</div>
{% endfor %}
</div>
<hr/>
...
...
@@ -59,6 +27,7 @@
<h4>
Usage of body gestures
</h4>
</div>
<h5
class=
"py-5"
>
Waiting...
</h5>
</div>
...
...
Presently/presently/users/views.py
View file @
52547cfe
...
...
@@ -50,7 +50,13 @@ def emotionaudio(request):
return
render
(
request
,
'users/emotionaudio.html'
,{
"all"
:
all_video
})
def
emotionvideo
(
request
):
return
render
(
request
,
'users/emotionvideo.html'
)
emotion
=
emotiondetectionvideo
.
emo
arr
=
emotiondetectionvideo
.
arr1
context
=
{
'maxemotion'
:
emotion
,
'predictions'
:
arr
}
return
render
(
request
,
'users/emotionvideo.html'
,
context
)
def
emotionaudioprosody
(
request
):
return
render
(
request
,
'users/prosody.html'
)
...
...
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