-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcalibration.html
93 lines (85 loc) · 4.25 KB
/
calibration.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
<!DOCTYPE html>
<!--
This is an example HTML that shows how WebGazer can be used on a website.
This file provides the additional features:
* An integrated, intuitive and sleek action bar with an informative "help" module accessible at all times
* Structured 9-point calibration system
* Accuracy measure of predictions based on calibration process
* Video feedback regarding face positioning
* Improved eye predictions visible to the user
Instructions on use can be found in the README repository.
-->
<html>
<head>
<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=utf-8">
<TITLE>Calibration for Webgazer</TITLE>
<link rel="stylesheet" type="text/css" href="./css/style.css">
<link rel="stylesheet" href="./node_modules/bootstrap/dist/css/bootstrap.min.css">
<script src="./webgazer.js"></script>
<style>
button {
border-radius: 4px;
}
</style>
</head>
<body LANG="en-US" LINK="#0000ff" DIR="LTR">
<canvas id="plotting_canvas" width="500" height="500" style="cursor:crosshair;"></canvas>
<script src="./node_modules/jquery/dist/jquery.min.js"></script>
<script src="./node_modules/sweetalert/dist/sweetalert.min.js"></script>
<script src="./calibration/main.js"></script>
<script src="./calibration/calibration.js"></script>
<script src="./calibration/precision_calculation.js"></script>
<script src="./calibration/precision_store_points.js"></script>
<nav id="webgazerNavbar" class="navbar navbar-default navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
<!-- The hamburger menu button -->
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
<span class="icon-bar">Menu</span>
</button>
</div>
<div class="collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav">
<!-- Accuracy -->
<li id="Accuracy"><a>Not yet Calibrated</a></li>
<li><a onclick="Restart()" href="#">Recalibrate</a></li>
<li><a onclick="window.applyKalmanFilter = !window.applyKalmanFilter" href="#">Toggle Kalman Filter</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><button class="helpBtn" data-toggle="modal" data-target="#helpModal"><a data-toggle="modal"><span class="glyphicon glyphicon-cog"></span> Help</a></li>
</ul>
</div>
</div>
</nav>
<!-- Calibration points -->
<div class="calibrationDiv">
<input type="button" class="Calibration" id="Pt1"></input>
<input type="button" class="Calibration" id="Pt2"></input>
<input type="button" class="Calibration" id="Pt3"></input>
<input type="button" class="Calibration" id="Pt4"></input>
<input type="button" class="Calibration" id="Pt5"></input>
<input type="button" class="Calibration" id="Pt6"></input>
<input type="button" class="Calibration" id="Pt7"></input>
<input type="button" class="Calibration" id="Pt8"></input>
<input type="button" class="Calibration" id="Pt9"></input>
</div>
<!-- Modal -->
<div id="helpModal" class="modal fade" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-body">
<img src="media/example/calibration.png" width="100%" height="100%" alt="webgazer demo instructions"></img>
</div>
<div class="modal-footer">
<button id="closeBtn" type="button" class="btn btn-default" data-dismiss="modal">Close & load saved model </button>
<button type="button" class="btn btn-primary" data-dismiss="modal" onclick="Restart()">Calibrate</button>
</div>
</div>
</div>
</div>
<!-- Latest compiled JavaScript -->
<script src="./calibration/resize_canvas.js"></script>
<script src="./node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
</body>
</html>