-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathinterface.html
78 lines (71 loc) · 1.7 KB
/
interface.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style>
#header {
background-color:black;
color:white;
text-align:center;
padding:5px;
}
#nav {
line-height:50px;
background-color:#eeeeee;
height:540px;
width:220px;
float:left;
padding:5px;
}
#section {
width:350px;
float:left;
padding:7px;
}
#footer {
background-color:black;
color:white;
clear:both;
text-align:center;
padding:1px;
}
</style>
<script language="javascript">
function exec1(command)
{
var ws = new ActiveXObject("WScript.Shell");
ws.run(command); //exec 和 run
ws = null;
//alert("ok"); 弹出一个小框显示“ok”
}
</script>
</head>
<body>
<div id="header">
<h1>人脸识别</h1>
</div>
<div id="nav">
人脸检测
<a href="facedetection.py" target="show"> 源代码 </a>
<input type="button" value="运行 python" onclick="exec1('python facedetection.py')" />
<br/>
人脸识别
<a href="facerecognize.py" target="show"> 源代码 </a>
<input type="button" value="运行 python" onclick="exec1('python facerecognize.py')" />
<br/>
人脸打码
<a href="blur_faces.py" target="show"> 源代码 </a>
<input type="button" value="运行 python" onclick="exec1('python blur_faces.py')" />
<p><b>点击 <U>源代码</U> 将显示代码,
<br/> 点击 <U>button</U> 将执行代码</b></p>
<img src="demo.gif" width="220" height="200" />
<div id="footer">
版权 © 杨致远
</div>
</div>
<div id="section">
<h2>代码框 </h2>
<iframe name="show" id="show" width="1100" height="466"/>
</div>
</body>
</html>