-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
26 lines (22 loc) · 852 Bytes
/
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
<html>
<head>
<!-- comment -->
<script src="https://unpkg.com/@tensorflow/tfjs"></script> <!-- Load tensorflow -->
<script src="https://unpkg.com/@tensorflow-models/mobilenet"></script> <!-- Load Mobilenet Classifier -->
<script src="https://unpkg.com/@tensorflow-models/knn-classifier"></script>
</head>
<body>
<!-- Show the webcam input -->
<video autoplay playsinline muted id="webcam" width="224" height="224"></video>
<div id="console"></div>
<!-- buttons -->
<div>
<button id="class-a">Train Ariel</button>
<button id="class-b">Train Maia</button>
<button id="class-c">Train Zac</button>
<button id="class-d">Train Pancho</button>
</div>
<!-- Load index.js after the content of the page -->
<script src="index.js"></script>
</body>
</html>