-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
129 lines (109 loc) · 5.19 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<html>
<head>
<title>Affectiva JavaScript SDK MR Demo</title>
<meta charset="utf-8"/>
<link rel="stylesheet" href="demo/css/bootstrap-darkly.min.css" />
<link href="demo/css/demo.css" rel="stylesheet" type="text/css" />
<!-- outside vendor files -->
<script src="demo/js/vendor/jquery-2.1.4.js"></script>
<script src="demo/js/vendor/d3.min.js"></script>
<!-- demo files -->
<script src="demo/js/run_demo.js"></script>
<script src="https://download.affectiva.com/js/3.2/affdex.js"></script>
<script>
var vid = document.getElementById("myVideo");
function playVid() {
vid.play();
}
function pauseVid() {
vid.pause();
}
</script>
</head>
<body class="container">
<center><h1>DISHATHON</h1></center>
<center><h1>Team - MegaGeeks</h1></center>
<div id="text-width"></div>
<div id="lightbox"></div>
<div id="demo-setup">
<div class="row">
<div class="col-md-12 text-center">
<div id="facevideo-node"></div>
</div>
</div>
<div id="messages" class="row">
<div class="col-md-6 col-md-offset-3 demo-message" id="msg-starting-webcam">
<div class="alert alert-info" role="alert">Connecting to webcam...</div>
</div>
<div class="col-md-6 col-md-offset-3 demo-message" id="msg-webcam-failure">
<div class="alert alert-danger" role="alert"><strong>Error: </strong>Failed to connect to webcam.</div>
</div>
<div class="col-md-6 col-md-offset-3 demo-message" id="msg-detector-status">
<div class="alert alert-info" role="alert">Loading and starting the emotions detector, this may take few minutes ...</div>
</div>
<div class="col-md-6 col-md-offset-3 demo-message" id="msg-bad-url">
<div class="alert alert-warning" role="alert"><strong>Error: </strong>Please enter a valid YouTube URL or search phrase.</div>
</div>
<div class="col-md-6 col-md-offset-3 demo-message" id="msg-short-video">
<div class="alert alert-warning" role="alert"><strong>Error: </strong>That YouTube video is too short.</div>
</div>
<div class="col-md-8 col-md-offset-2" id="instructions">
<div class="well">
<p><strong>Welcome!</strong></p>
<p>Before starting this demo, please make sure that your face is centered in the screen and the room lighting is adequate.</p>
<p><strong>Instructions:</strong></p>
<p>Select a movie from below, and with your webcam turned on, you'll be able to see your emotions both during the video and during playback:</p>
</div>
<h3>Transformers 4</h3>
<video id="wo" width="640" height="480" controls>
<source src="beaty.mp4" type="video/mp4">
your browser does not support the video tag.
</video>
<h3>phir hera pheri</h3>
<video id="wo2" width="640" height="480" controls>
<source src="phirherapheri.mp4" type="video/mp4">
your browser does not support the video tag.
</video>
<h3>koi mil gya</h3>
<video id="wo3" width="640" height="480" controls>
<source src="koimilgya.mp4" type="video/mp4">
your browser does not support the video tag.
</video>
</div>
</div>
</div>
<div class="row" id="video-container">
<div class="col-md-12 text-center">
<div id="wo2" >
<video id="woadd2" width="640" height="480" controls>
</video>
</div>
<div id="svg-container">
<div class="row">
<div id="ul-wrapper" class="col-md-2">
<ul id="nav">
<li class="all buttons all-face all-box box-squared" id="all"><span>Show all</span></li>
<li class="joy buttons smiling-face joy-box box-squared" id="joy" onClick="JSSDKDemo.responses(this.id)"><span>Joy</span></li>
<li class="anger buttons angry-face anger-box box-squared" id="anger" onClick="JSSDKDemo.responses(this.id)"><span>Anger</span></li>
<li class="disgust buttons disgusted-face disgust-box box-squared" id="disgust" onClick="JSSDKDemo.responses(this.id)"><span>Disgust</span></li>
<li class="contempt buttons contempt-face contempt-box box-squared" id="contempt" onClick="JSSDKDemo.responses(this.id)"><span>Contempt</span></li>
<li class="surprise buttons surprise-face surprise-box box-squared" id="surprise" onClick="JSSDKDemo.responses(this.id)"><span>Surprise</span></li>
</ul>
</div>
<div id="svg-wrapper" class="col-md-8 text-center">
<svg id="svg-curve"></svg>
</div>
<div id="play-again" class="col-md-2">
<div class="well">
<p>Frame capture complete!</p>
<p><small>Watch the video synchronized with your emotions.</small></p>
<p> </p>
<button id="btn-play-again" class="btn btn-primary">Ok, got it</button>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>