-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
43 lines (39 loc) · 1.26 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
<!doctype html>
<html>
<head>
<title>Here is the frontend stuff</title>
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<link rel="stylesheet" href="amplify-frontend.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
</head>
<header >
<h1> Social Distancing Violation Detection </h1>
<h2 >- Current and Updating AWS Rekognition frame is below: -</h2>
</header>
<br />
<body>
<div id="imgDiv">
<img id="img" src="https://video-input-bucket2.s3.amazonaws.com/output.jpeg" class="centerImage" />
</div>
<br>
<p id="hi"></p>
<p id="hi2"></p>
</body>
<script type="text/javascript">
$(function() {
console.log("here");
var intervalMS = 800; // 5 seconds
setInterval(function() {
console.log("inside");
$("#img").remove();
var image = document.createElement("IMG");
image.setAttribute('class', 'centerImage');
image.setAttribute('id', 'img');
image.src="https://video-input-bucket2.s3.amazonaws.com/output.jpeg"+ "?" + (new Date()).getTime();
$("#imgDiv").html(image);
}, intervalMS);
});
</script>
</html>