-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdisplay.html
37 lines (36 loc) · 1023 Bytes
/
display.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>ml5 Classifier</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.6.1/p5.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.6.1/addons/p5.dom.min.js"></script>
<script src="https://unpkg.com/ml5@latest/dist/ml5.min.js"></script>
<script src="detect_from_webcam.js"></script>
<style>
body{
text-align: center;
margin: 3%;
}
.viewbox{
align-content: center;
justify-content: center;
background-color: black;
margin: 5%;
border-radius: 30px;
}
canvas{
flex: 1;
margin: 5%;
border-radius: 30px;
background-color: gray;
visibility: visible !important;
}
</style>
</head>
<body>
<h1>Object Detection (ml5.js)</h1>
<div class="camera" id="content">
</div>
</body>
</html>