This repository was archived by the owner on Apr 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 439
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·42 lines (35 loc) · 1.49 KB
/
index.html
File metadata and controls
executable file
·42 lines (35 loc) · 1.49 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
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<title>KNN Classification on Webcam Images with mobileNet</title>
<script src="https://unpkg.com/ml5@0.4.0/dist/ml5.min.js" type="text/javascript"></script>
</head>
<body>
<h2>KNN Classification on Webcam Images that moves a square on the canvas with mobileNet</h2>
<div id="canvasContainer">
<canvas width="640" height="480" id="myCanvas"></canvas>
</div>
<p id="status">Loading Model...</p><br />
<p>
<span class="emoji"> ⬆️ </span><button id="addClass1">Add an Example to Class Up</button>
</p><p><span id="example1">0</span> Up examples</p>
<br /><span class="emoji"> ➡️ </span><button id="addClass2">Add an Example to Class Right</button>
<p><span id="example2">0</span> Right examples</p>
<br /><span class="emoji"> ⬇️ </span><button id="addClass3">Add an Example to Class Down</button>
<p><span id="example3">0</span> Down examples</p>
<br /><span class="emoji"> ⬅️ </span><button id="addClass4">Add an Example to Class Left</button>
<p><span id="example4">0</span> Left examples</p>
<br />
<p>
<button id="buttonPredict">Start predicting!</button><br />
<button id="clearAll">Clear all classes</button><br />
</p>
<p>
KNN Classifier with mobileNet model labeled this
as Class: <span id="result">...</span>
with a confidence of <span id="confidence">...</span>
</p>
<script src="sketch.js"></script>
</body>
</html>