-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
41 lines (36 loc) · 1.95 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
<!DOCTYPE html>
<html>
<head>
<title>AirdrawJS</title>
<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>
<script src="https://cdn.jsdelivr.net/npm/@mediapipe/selfie_segmentation/selfie_segmentation.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="airdraw.css">
</head>
<body>
<div class="all">
<div class="container">
<video class="input_video" id="videoElement" hidden></video>
<!-- <canvas class="output_canvas"></canvas> -->
<canvas class="airdrawCanvas" id="huh"></canvas>
<!-- <canvas class="bgremoveCanvas"></canvas> -->
</div>
<div class="controls ml-3">
<input type="range" min="1" max="20" value="1" name="brushStroke">
<input type="color" name="brushColor">
<button id="clear" class="btn btn-danger">clear</button>
<p> ⌚ It Might Take a Second to load Please Wait</p>
</div>
<canvas id="board"></canvas>
</div>
<!-- <video class="input_video" hidden></video> -->
</body>
<script src="airdraw.js"></script>
</html>