-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
81 lines (75 loc) · 2.6 KB
/
index.html
File metadata and controls
81 lines (75 loc) · 2.6 KB
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
<html>
<head>
<title>Monocular API BG Subtraction</title>
<style>
#webcamVideo, #inputCanvas, #outputCanvas {
width: 480px;
height: 360px;
}
h3 {
margin-top: 11px !important;
}
.top-buffer {
margin-top: 10px;
}
.camera, .output {
border: 2px black solid;
overflow: scroll;
padding-bottom: 10px;
}
.input, .logs {
border: 2px black solid;
border-left: 0;
overflow: scroll;
padding-bottom: 10px;
}
.logs {
height: 415px;
}
#log {
overflow-y: scroll;
max-height: 350px;
}
</style>
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<!-- Latest compiled and minified Bootstrap CSS/JS -->
<link rel="stylesheet" href="https://cdn.jemsoft.io/style-guide/assets/css/jemsoft-bootstrap.css" crossorigin="anonymous">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js" crossorigin="anonymous"></script>
<!-- Monocular JS SDK -->
<script src="https://cdn.jemsoft.io/monocular-javascript-sdk/sdk-1.0.0.js"></script>
</head>
<body>
<div class="container">
<h1 class="text-center">Monocular API BG Subtraction Demo</h1>
<h5 class="text-center"><a href="https://github.com/Jemsoft/background-subtraction-example" target="_blank">Instructions/Github Repo</a></h6>
<div class="row">
<div class="col-md-6 camera text-center">
<h3>Webcam</h3>
<video id="webcamVideo" autoplay="">
</div>
<div class="col-md-6 input text-center">
<h3>Last Captured Input (Sent to API)</h3>
<canvas id="inputCanvas">
</div>
</div>
<div class="row text-center top-buffer">
<img id="spinnerImg" src="https://cdn.jemsoft.io/monocular-web-vtl/assets/images/spinner.gif" width="45" height="45" style="display: none">
<div class="btn-group">
<button class="btn btn-lg btn-warning" id="initButton">Initialize</button>
<button class="btn btn-lg btn-danger" id="deleteButton">Delete</button>
<button class="btn btn-lg btn-primary" id="captureButton">Capture</button>
</div>
</div>
<div class="row top-buffer">
<div class="col-md-6 text-center output">
<h3>Last API Response</h3>
<canvas id="outputCanvas">
</div>
<div class="col-md-6 text-center logs">
<h3>Logs</h3>
<pre id="log" class="text-left"></pre>
</div>
</div>
<script src="./app.js"></script>
</body>
</div>