-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
executable file
·44 lines (40 loc) · 1.32 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
<html>
<head>
<meta charset="UTF-8">
<title>Image Classification using Feature Extraction with MobileNet</title>
<script src="https://unpkg.com/[email protected]/dist/ml5.min.js"></script>
<style></style>
</head>
<body>
<h2>Image Classification using Feature Extraction with MobileNet</h2>
<h3>(Train a Neural Network with 2 classes - For example: whether you are wearing mask or not)</h3>
<p>
Class 1: <input type="text" id="label1Input" value="without_mask"></input>
Class 2: <input type="text" id="label2Input" value="with_mask"></input>
</p>
<video id="video" width="640" height="480" autoplay></video>
<h6>
Status: <span id="status"></span>
</h6>
<h5>
Result: <span id="result">N/A</span> (<span id="confidence">N/A</span>)
</h5>
<p>
<button id="label1Button">Add Class 1 (Not Wearning Mask)</button> - Class 1: <span id="amountOfLabel1Images">0</span> images
</p>
<p>
<button id="label2Button">Add Class 2 (Wearing Mask)</button> - Class 2: <span id="amountOfLabel2Images">0</span> images
</p>
<p>
<button id="train">Train</button> <span id="loss"></span>
</p>
<p>
<button id="predict">Start Detecting!</button>
</p>
<p>
<button id="loadModel">Load Model</button>
<button id="saveModel">Save Model</button>
</p>
<script src="main.js"></script>
</body>
</html>