Commit 52547cfe authored by NaweenTharuka's avatar NaweenTharuka

feat: Emotion detection by Video

parent 150df063
...@@ -6,52 +6,20 @@ ...@@ -6,52 +6,20 @@
<div class="heading-text heading-line text-center mt-5"> <div class="heading-text heading-line text-center mt-5">
<h4>Summery of emotions</h4> <h4>Summery of emotions</h4>
</div> </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="row pb-5">
<div class="col-lg-3 text-center"> <span class="pie-chart" data-percent="10"> <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> class="percent"></span> </span>
<h4>Angry</h4> <h4>{{ key }}</h4>
<p>Lorem ipsum dolor sit amet, consecte adipiscing elit. Condimentum porttitor cursumus.</p> <p>{{ value }}</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>
</div>
<h4>Neutral</h4>
<p>Lorem ipsum dolor sit amet, consecte adipiscing elit. Suspendisse condimentum porttitor
cursumus.</p>
</div> </div>
{% endfor %}
</div> </div>
<hr/> <hr/>
...@@ -59,6 +27,7 @@ ...@@ -59,6 +27,7 @@
<h4>Usage of body gestures</h4> <h4>Usage of body gestures</h4>
</div> </div>
<h5 class="py-5">Waiting...</h5>
</div> </div>
......
...@@ -50,7 +50,13 @@ def emotionaudio(request): ...@@ -50,7 +50,13 @@ def emotionaudio(request):
return render(request, 'users/emotionaudio.html',{"all":all_video}) return render(request, 'users/emotionaudio.html',{"all":all_video})
def emotionvideo(request): 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): def emotionaudioprosody(request):
return render(request, 'users/prosody.html') return render(request, 'users/prosody.html')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment