-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathclassify.html
90 lines (80 loc) · 2.61 KB
/
classify.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
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
82
83
84
85
86
87
88
89
90
<html>
<meta charset="UTF-8" />
<title>Classification Module</title>
<!-- <link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@100;400&family=Roboto:wght@100;400&display=swap" rel="stylesheet"> -->
<link rel="stylesheet" href="./style/css2.css">
<style>
body{
font-family: 'Poppins', sans-serif;
background-image: linear-gradient(-45deg, #fae6e6 0%, #cafaf9 60%);
display: flex;
flex-direction: column;
align-items: center;
}
.top-section{
width: 60%;
display: flex;
flex-direction: column;
margin-bottom: 2em;
}
.pose_selection{
font-size: 1.5em;
padding: 0 0.5em;
}
.pose_selection select{
/* border-bottom: 1px solid red; */
font-size: 0.75em;
padding: 0.5em 1em;
border-radius: 5px;
background-color: rgba(0,0,0,0.1);
}
.pose_dropdown *{
outline: 0px;
background-color: transparent;
}
#imager {
display:flex;
flex-direction: row;
/* width: 200px; */
/* margin: auto; */
/* padding: 10px; */
/* height: */
}
img {
padding-right: 20px;
/* width: ; */
}
</style>
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.9.0/p5.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.9.0/addons/p5.dom.min.js"></script>
<script src="https://unpkg.com/ml5@latest/dist/ml5.min.js"></script> -->
<script src="./script/p5.min.js"></script>
<script src="./script/p5.dom.min.js"></script>
<script src="./script/ml5.min.js"></script>
<!-- <script src="collectData.js"></script> -->
<!-- <script src="trainNN.js"></script> -->
<script src="classify.js"></script>
<body>
<h1 align="center">Yoga Pose KNN Classifier</h1>
<div class="top-section">
<div class="pose_selection">
<label for="poses_dropdown"></label>
<select name="poses_dropdown" id="poses_dropdown" onchange="image_maker()">
<option value="none" selected="selected">--Select--</option>
<option value="MOUNTAIN">MOUNTAIN</option>
<option value="GARLAND">GARLAND</option>
<option value="PLANK">PLANK</option>
<option value="GODDESS">GODDESS</option>
<!-- <option value="start" selected="selected">start</option> -->
</select>
pose
</div>
</div>
<button onclick="end()">end</button>
<div id="imager">
<img id="pose_img" src=""/>
</div>
</body>
</html>