-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
106 lines (94 loc) · 4.52 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
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<!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>
<!-- <script src="./js/index.js" type="text/javascript" defer="defer"></script>-->
<script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
<script type="module">
import './node_modules/xy-ui/components/xy-tab.js';
import './node_modules/xy-ui/components/xy-slider.js';
import './node_modules/xy-ui/components/xy-switch.js';
</script>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<link href="css/index.css" rel="stylesheet">
</head>
<body>
<div class="container">
<header class="header">
<h1 id="title">ppReader</h1>
<div class="tools_tap">
<a href="javascript:history.go(-1);" style="display: block; /* 设置为块元素 */
text-align: center;
color: #95B8CE;
float: left;
margin: 4px"
><img src="img/back.png" width="20" , height="20"></a>
<p class="back">返回上一页</p>
<xy-switch checked id="fanzhuan"></xy-switch>
<p class="fanzhuan_text">镜子模式</p>
</div>
</header>
<content class="content">
<div class="main">
<video class="input_video" style="display: none" id="video"></video>
<canvas class="output_canvas" width="1024px" height="576px" id="out"></canvas>
<div>识别进度:</div>
<xy-slider id="slider"></xy-slider>
</div>
</content>
<footer class="footer">
<xy-tab type="line" align="center" id="main_tab">
<xy-tab-content label="点读模式(单手)">
<xy-tab type="card" id="single_tab">
<xy-tab-content label="字">
<div class="block">
<div class="tag" id="zi_key">字:</div>
<div class="tag" id="zi_pinyin">拼音:</div>
<div class="tag" id="zi_mean">释义:</div>
</div>
</xy-tab-content>
<xy-tab-content label="词语">
<div class="block">
<div class="tag" id="ci_key">词语:</div>
<div class="tag" id="ci_pinyin">拼音:</div>
<div class="tag" id="ci_mean">释义:</div>
<div class="tag" id="ci_same">近义词:</div>
<div class="tag" id="ci_reverse">反义词:</div>
<div class="tag" id="ci_cn_sen">中文例句:</div>
<div class="tag" id="ci_en">英文:</div>
<div class="tag" id="ci_yingbiao">英标:</div>
<div class="tag" id="ci_en_sen">英文例句:</div>
</div>
</xy-tab-content>
</xy-tab>
</xy-tab-content>
<xy-tab-content label="框选句子(双手)">
<div class="block">
<div class="tag" id="ju_key">句子:</div>
<div class="tag" id="ju_en">翻译:</div>
</div>
</xy-tab-content>
<xy-tab-content label="框选物体(双手)">
<div class="block">
<div class="tag" id="wu_key">标签:</div>
<div class="tag" id="wu_en">英文:</div>
<div class="tag" id="wu_mean">释义:</div>
</div>
</xy-tab-content>
</xy-tab>
</footer>
</div>
</body>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p"
crossorigin="anonymous"></script>
<!--主页面逻辑-->
<script type="module" src="js/index.js"></script>
</html>