Commit 65a03b0a authored by Wanigasinghe N.T. | IT18229912's avatar Wanigasinghe N.T. | IT18229912

Merge branch 'feat/it18229912' into 'develop'

Feat/it18229912

See merge request !21
parents 25f7d16b 442e0bbd
......@@ -22,7 +22,7 @@ import numpy as np
"""Upload the video to the Google colab and get the path of the video and xml file"""
location_videofile = "F:\\CDAP-PRESENTLY\\21_22-j-02\\Presently\\presently\\media\\video\\22\\testvideo.mp4"
location_videofile = "F:\\CDAP-PRESENTLY\\21_22-j-02\\Presently\\presently\\media\\video\\22\\testvideo_UbZvefG.mp4"
cascPath = "F:\\CDAP-PRESENTLY\\21_22-j-02\\Presently\\presently\\users\\models\\abc.xml"
"""Get labels to each emotion"""
......
This diff is collapsed.
{"class_name": "Sequential", "config": {"name": "sequential", "layers": [{"class_name": "InputLayer", "config": {"batch_input_shape": [null, 339, 15], "dtype": "float32", "sparse": false, "ragged": false, "name": "lstm_input"}}, {"class_name": "LSTM", "config": {"name": "lstm", "trainable": true, "batch_input_shape": [null, 339, 15], "dtype": "float32", "return_sequences": true, "return_state": false, "go_backwards": false, "stateful": false, "unroll": false, "time_major": false, "units": 64, "activation": "tanh", "recurrent_activation": "sigmoid", "use_bias": true, "kernel_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}}, "recurrent_initializer": {"class_name": "Orthogonal", "config": {"gain": 1.0, "seed": null}}, "bias_initializer": {"class_name": "Zeros", "config": {}}, "unit_forget_bias": true, "kernel_regularizer": null, "recurrent_regularizer": null, "bias_regularizer": null, "activity_regularizer": null, "kernel_constraint": null, "recurrent_constraint": null, "bias_constraint": null, "dropout": 0.0, "recurrent_dropout": 0.0, "implementation": 2}}, {"class_name": "LSTM", "config": {"name": "lstm_1", "trainable": true, "dtype": "float32", "return_sequences": false, "return_state": false, "go_backwards": false, "stateful": false, "unroll": false, "time_major": false, "units": 64, "activation": "tanh", "recurrent_activation": "sigmoid", "use_bias": true, "kernel_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}}, "recurrent_initializer": {"class_name": "Orthogonal", "config": {"gain": 1.0, "seed": null}}, "bias_initializer": {"class_name": "Zeros", "config": {}}, "unit_forget_bias": true, "kernel_regularizer": null, "recurrent_regularizer": null, "bias_regularizer": null, "activity_regularizer": null, "kernel_constraint": null, "recurrent_constraint": null, "bias_constraint": null, "dropout": 0.0, "recurrent_dropout": 0.0, "implementation": 2}}, {"class_name": "Dense", "config": {"name": "dense", "trainable": true, "dtype": "float32", "units": 8, "activation": "softmax", "use_bias": true, "kernel_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}}, "bias_initializer": {"class_name": "Zeros", "config": {}}, "kernel_regularizer": null, "bias_regularizer": null, "activity_regularizer": null, "kernel_constraint": null, "bias_constraint": null}}]}, "keras_version": "2.8.0", "backend": "tensorflow"}
\ No newline at end of file
......@@ -42,30 +42,55 @@
<div class="heading-text heading-line text-center mt-5">
<h4>Summery</h4>
</div>
<div class="d-flex justify-content-center my-5">
<a class="btn btn-primary" href="{% url 'emotionaudioprosody' %}" type="submit">Usage of Prosody</a>
</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>Disgusted</h4>
<h4>Neutral</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>Fearfull</h4>
<h4>Calm</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>Neutral</h4>
<h4>Happy</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>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="02" data-color="#E4EA64"> <span class="percent"></span>
</div>
<h4>Angry</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>Fearful</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>Disgust</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="21" data-color="#C03BE3"> <span class="percent"></span>
</div>
<h4>Suprised</h4>
<p>Lorem ipsum dolor sit amet, consecte adipiscing elit. Suspendisse condimentum porttitor
cursumus.</p>
......@@ -73,7 +98,8 @@
</div>
<div class="d-flex justify-content-center mb-5">
<a class="btn btn-primary" href="{% url 'overallfeedback' %}" type="submit">View summery detail</a>
<a class="btn btn-primary" href="{% url 'emotionaudioprosody' %}" type="submit">Usage of Prosody of your voice</a>
<a class="btn btn-outline" href="{% url 'overallfeedback' %}" type="submit">View summery detail</a>
</div>
</div>
......
......@@ -3,49 +3,63 @@
{% block content %}
<div class="container">
<div class="heading-text heading-section text-center py-3">
<h4>Emotions & body gestures - Video</h4>
<span class="lead">See what presently think about your presentation</span>
</div>
<hr/>
<div class="heading-text heading-line text-center mt-5">
<h4>Summery of emotions</h4>
</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>Disgusted</h4>
<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>Fearfull</h4>
<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>Neutral</h4>
<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>Suprised</h4>
<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>
<hr/>
<div class="heading-text heading-line text-center mt-5">
<h4>Usage of body gestures</h4>
</div>
<div class="d-flex justify-content-center mb-5">
<a class="btn btn-primary" href="{% url 'overallfeedback' %}" type="submit">View summery detail</a>
</div>
</div>
......
......@@ -71,11 +71,6 @@
</div>
</div>
<!-- content to remove -->
<div class="d-flex justify-content-center my-5">
<a class="btn btn-primary" href="{% url 'emotionaudioprosody' %}" type="submit">Usage of Prosody</a>
</div>
<div class="container my-5">
{% if user.is_authenticated %}
......
......@@ -18,8 +18,11 @@
<h3><b>User Name</b> : {{user.username}}</h3>
<h3><b>Email</b> : {{user.email}}</h3>
<h3><b>Password</b> : **********</h3>
<div class="my-5">
<a class="btn btn-info" href="{% url 'feedback' %}" type="submit">Watch your Uploaded Videos</a>
</div>
</div>
</div>
</div>
</div>
</div>
{% endblock %}
\ No newline at end of file
......@@ -3,9 +3,129 @@
{% block content %}
<div class="container">
<div class="heading-text heading-section text-center py-3">
<h4>Emotion & prosody detection - Audio</h4>
<span class="lead">See what presently think about your presentation</span>
<div class="heading-text heading-section text-center pt-3">
<h4>Prosody Detail View - Audio</h4>
</div>
<div class="line"></div>
<div class="d-flex">
<div class="col-6">
<div class="toggle accordion accordion-shadow">
<div class="ac-item">
<h5 class="ac-title"><i class="fa fa-rocket"></i>Before you get started</h5>
<div class="ac-content">
<p>A wonderful serenity has taken possession of my entire soul, like these sweet
mornings of spring which I enjoy with my whole heart.</p>
<p>I am alone, and feel the charm of existence in this spot, which was created for
the bliss of souls like mine. I am so happy, my dear friend, so absorbed in the
exquisite sense of mere tranquil existence, that I neglect my talents. I should
be incapable of drawing a single stroke at the present moment; and yet I feel
that I never was a greater artist than now. </p>
</div>
</div>
<div class="ac-item">
<h5 class="ac-title"><i class="fa fa-heart"></i> Layout and design options</h5>
<div class="ac-content">
<p>When, while the lovely valley teems with vapour around me, and the meridian sun
strikes the upper surface of the impenetrable foliage of my trees, and but a few
stray gleams steal into the inner sanctuary.</p>
<p>I throw myself down among the tall grass by the trickling stream; and, as I lie
close to the earth, a thousand unknown plants are noticed by me</p>
</div>
</div>
<div class="ac-item">
<h5 class="ac-title"><i class="icon-shopping-cart"></i> Compatibility with premium plugins</h5>
<div class="ac-content">
<p>As it floats around us in an eternity of bliss; and then, my friend, when
darkness overspreads my eyes, and heaven and earth seem to dwell in my soul and
absorb its power, like the form of a beloved mistress</p>
<p>I often think with longing, Oh, would I could describe these conceptions, could
impress upon paper all that is living so full and warm within me, that it might
be the mirror of my soul, as my soul is the mirror of the infinite God! O my
friend — but it is too much for my strength — I sink under the weight of the
splendour of these visions!”</p>
</div>
</div>
<div class="ac-item">
<h5 class="ac-title"><i class="icon-shopping-cart"></i> Compatibility with premium plugins</h5>
<div class="ac-content">
<p>As it floats around us in an eternity of bliss; and then, my friend, when
darkness overspreads my eyes, and heaven and earth seem to dwell in my soul and
absorb its power, like the form of a beloved mistress</p>
<p>I often think with longing, Oh, would I could describe these conceptions, could
impress upon paper all that is living so full and warm within me, that it might
be the mirror of my soul, as my soul is the mirror of the infinite God! O my
friend — but it is too much for my strength — I sink under the weight of the
splendour of these visions!”</p>
</div>
</div>
<div class="ac-item">
<h5 class="ac-title"><i class="icon-shopping-cart"></i> Compatibility with premium plugins</h5>
<div class="ac-content">
<p>As it floats around us in an eternity of bliss; and then, my friend, when
darkness overspreads my eyes, and heaven and earth seem to dwell in my soul and
absorb its power, like the form of a beloved mistress</p>
<p>I often think with longing, Oh, would I could describe these conceptions, could
impress upon paper all that is living so full and warm within me, that it might
be the mirror of my soul, as my soul is the mirror of the infinite God! O my
friend — but it is too much for my strength — I sink under the weight of the
splendour of these visions!”</p>
</div>
</div>
<div class="ac-item">
<h5 class="ac-title"><i class="icon-shopping-cart"></i> Compatibility with premium plugins</h5>
<div class="ac-content">
<p>As it floats around us in an eternity of bliss; and then, my friend, when
darkness overspreads my eyes, and heaven and earth seem to dwell in my soul and
absorb its power, like the form of a beloved mistress</p>
<p>I often think with longing, Oh, would I could describe these conceptions, could
impress upon paper all that is living so full and warm within me, that it might
be the mirror of my soul, as my soul is the mirror of the infinite God! O my
friend — but it is too much for my strength — I sink under the weight of the
splendour of these visions!”</p>
</div>
</div>
</div>
</div>
<div class="col-6">
<div class="text-center">
<h2 class="font-weight-light">Compared to native speech, here are the prosodic features of your speech:<br /><b>
<span class="text-rotator">
Average syll pause duration,
No. long pause,
Speaking time,
AveNo. of words in minutes,
Articulation rate,
No. words in minutes,
Formants index,
f0_index,
f0_quantile_25_index,
f0_quantile_50_index,
f0_quantile_75_index,
f0_std,
f0_max,
f0_min,
No. detected vowel,
perc%. correct vowel,
(f2/f1) mean,
No. of pauses,
Intonation index,
(voiced syll count)/(no of pause),
TOEFL Scale Score,
Score Shannon index,
Speaking rate,
</span></b>
</h2>
<p>And any text can be animated simply by changing an effect name, more info in Documentation!</p>
</div>
<div class="d-flex">
<div class="col-4">
<img src="{% static 'users/images/profile.png' %}" class="img-fluid rounded-circle mx-5" alt="">
</div>
<div>
<!-- <h1>Paper Reading</h1> -->
</div>
</div>
</div>
</div>
</div>
{% endblock content %}
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