-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
45 lines (44 loc) · 1.46 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
45
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<script
src="https://cdn.jsdelivr.net/npm/@mediapipe/camera_utils/camera_utils.js"
crossorigin="anonymous"
></script>
<script
src="https://cdn.jsdelivr.net/npm/@mediapipe/control_utils/control_utils.js"
crossorigin="anonymous"
></script>
<script
src="https://cdn.jsdelivr.net/npm/@mediapipe/drawing_utils/drawing_utils.js"
crossorigin="anonymous"
></script>
<script
src="https://cdn.jsdelivr.net/npm/@mediapipe/hands/hands.js"
crossorigin="anonymous"
></script>
<link href="./index.css" rel="stylesheet" />
</head>
<body>
<div class="container">
<video class="input_video" style="display: none"></video>
<canvas class="output_canvas" style="transform: scaleX(-1)"> </canvas>
<div class="drumpad">
<div class="drum drum1"></div>
<div class="drum drum2"></div>
<div class="drum drum3"></div>
<div class="drum drum4"></div>
</div>
<audio data-key="1" src="sounds/clap1.wav"></audio>
<audio data-key="2" src="sounds/kick.wav"></audio>
<audio data-key="3" src="sounds/hihat.wav"></audio>
<audio data-key="4" src="sounds/boom.wav"></audio>
<audio data-key="5" src="sounds/ride.wav"></audio>
<a href="https://github.com/plxity/Drums-with-hand-recognition"
>GitHub Repo Link</a
>
</div>
</body>
<script src="index.js"></script>
</html>