-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
executable file
·51 lines (45 loc) · 1.41 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
46
47
48
49
50
51
<!DOCTYPE html>
<html>
<head>
<title>Web Camera Processer Demo</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=0.7, user-scalable=no, shrink-to-fit=no">
<link rel="stylesheet" href="./css/index.css">
</head>
<body>
<div class="header">
<span>Web Camera Processer Demo</span>
<div class="info">
<button onclick="switchVideoMode(0);">正常</button>
<div style="width: 10px"></div>
<button onclick="switchVideoMode(1);">虚化</button>
<div style="width: 10px"></div>
<button onclick="switchVideoMode(2);">图片</button>
<div style="width: 10px"></div>
当前模式:
<span id="modetext">请选择模式</span>
</div>
</div>
<div class="container">
<div class="item">
<div class="title">
原始视频
</div>
<div class="contant">
<video id="oriVideo" width="640" height="360" muted></video>
</div>
</div>
<div class="item">
<div class="title">
处理后视频
</div>
<div class="contant">
<canvas id="main-canvas" width="640" height="360"></canvas>
</div>
</div>
</div>
<img id="maskImg" src="./img/mask.png" width="640" height="360" style="display: none;" />
<script src="./js/jquery-3.2.1.min.js"></script>
<script src="./js/index.js"></script>
</body>
</html>