-
Notifications
You must be signed in to change notification settings - Fork 0
/
swimming_cleaner.html
186 lines (164 loc) · 6.96 KB
/
swimming_cleaner.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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- 上述3个meta标签*必须*放在最前面,任何其他内容都*必须*跟随其后! -->
<meta name="description" content="Prometheus - Recognition and definition.">
<meta name="author" content="github.com/xfarmer">
<link rel="icon" href="prometheus.ico">
<title>Swimming cleaner - Prometheus</title>
<!-- Bootstrap core CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet"/>
<link href="css/prometheus.css" rel="stylesheet">
<link href="css/font-awesome.min.css" rel="stylesheet">
<link href="css/toastr.min.css" rel="stylesheet">
<script src="js/jquery/3.2.1/jquery.min.js"></script>
<script src="js/highstock.min.js"></script>
<script src="js/toastr.min.js"></script>
<script src="js/prometheus.js"></script>
<script src="js/swimming_cleaner.js"></script>
</head>
<body>
<div class="alert alert-success alert-dismissable fade" id="markingInfo">
<button type="button" class="close" data-dismiss="alert">×</button>
指定操作成功提示信息。
</div>
<div class="container" style="margin-top: 20px; margin-bottom: 30px">
<h4>选择文件 -> 开始标注</h4>
<h5>注意:显示的数据按行读取,显示数据为gyro y(第5列)</h5>
<input type="file" id="files" name="files[]" size="10" multiple/>
<br/>
<div class="panel panel-primary">
<div class="panel-heading">文件标注列表</div>
<div class="list-group" id="fileList">
<!--<button type="button" class="list-group-item list-group-item-action">Example</button>-->
</div>
</div>
<h5>标注进度:</h5>
<div class="progress" id="markProgress">
<div class="progress-bar progress-bar-success" role="progressbar"
aria-valuenow="60" aria-valuemin="0" aria-valuemax="100"
style="width: 0;">
0%
</div>
</div>
<hr>
<form class="form-horizontal">
<div class="form-group">
<label for="dataAxisSelector" class="col-sm-1 control-label">Data Axis</label>
<div class="col-sm-1">
<select class="form-control" id="dataAxisSelector" onchange="onAxisSelected(this.value)">
<option value="0">ts</option>
<option value="1">ax</option>
<option value="2">ay</option>
<option value="3">az</option>
<option value="4">wx</option>
<option value="5">wy</option>
<option value="6">wz</option>
<option value="7">mx</option>
<option value="8">my</option>
<option value="9">mz</option>
</select>
</div>
</div>
</form>
<div id="markingChart" style="height: 450px; min-width: 300px"></div>
<div id="navigatorChart" style="height: 200px; min-width: 300px"></div>
<hr>
<div class="panel panel-primary" id="labelResultPanel">
<div class="panel-heading" style="text-align: center; font-weight: bold; font-size: 1.5em">Data information
</div>
<div class="panel-body">
本条数据标记结果,标记完成后通过下方的按钮导出为csv文件。
</div>
<table class="table table-hover table-striped table-bordered" id="markTable">
<thead>
<tr>
<!--<th>序号</th>-->
<th>泳池长度</th>
<th>游泳泳姿</th>
<th>游泳趟数</th>
<th>划水次数</th>
</tr>
</thead>
<tbody>
<tr id="labelResultRow">
<th>
<input class="form-control" id="inputPoolLen" type="text" value="100">
</th>
<th>
<select id="swimmingStyle" class="form-control">
<option value="0">非游泳</option>
<option value="1">自由泳</option>
<option value="2">蛙泳</option>
<option value="3">仰泳</option>
<option value="4">蝶泳</option>
<option value="99">转身</option>
</select>
</th>
<th>
<input class="form-control" id="inputTrips" type="text" value="100">
</th>
<th>
<input class="form-control" id="inputStrokes" type="text" value="100">
</th>
</tr>
</tbody>
</table>
</div>
<button type="button" class="btn btn-success" id="markSubmit" onclick="onLabelSubmit();">提交标注</button>
<button type="button" class="btn btn-danger" id="markInvalid" onclick="onLabelInvalid()">标注为无效数据</button>
<hr>
<br/>
<button type="button" class="btn btn-success" onclick="generateResult()">生成标注结果</button>
<button type="button" class="btn btn-primary" onclick="exportData()">导出</button>
<button type="button" class="btn btn-info" onclick="copyData()">复制</button>
<br/>
<br/>
<label for="labelResultsTxt"></label>
<textarea class="form-control" readonly="readonly" rows="10" id="labelResultsTxt"></textarea>
<hr>
<script type="text/javascript">
$(function () {
$('#markingChart').hide();
$('#navigatorChart').hide();
$('#markingInfo').hide();
$('#labelResultRow').hide();
$('#markSubmit').hide();
$('#markInvalid').hide();
});
document.getElementById('files').addEventListener('change', handleFileSelection, false);
toastr.options = {
"closeButton": false,
"debug": false,
"newestOnTop": false,
"progressBar": false,
"positionClass": "toast-top-center",
"preventDuplicates": false,
"onclick":null,
"showDuration": "300",
"hideDuration": "1000",
"timeOut": "2000",
"extendedTimeOut": "1000",
"showEasing": "swing",
"hideEasing": "linear",
"showMethod": "fadeIn",
"hideMethod": "fadeOut"
}
</script>
</div> <!-- /container -->
</body>
<!-- Footer -->
<footer class="footer navbar navbar-inverse navbar-fixed-bottom">
<div class="container">
<!-- Copyright -->
<div class="footer-copyright text-center" style="color: #ffffff; margin-top: 10px;">Copyright © 2018-2020:
<a href="https://github.com/xfarmer"> xfarmer@github</a> All Rights Reserved.
</div>
<!-- Copyright -->
</div>
</footer>
<Footer -->
<script src="js/bootstrap/3.3.7/bootstrap.min.js"></script>
</html>