forked from darkecology/roostui
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
194 lines (160 loc) · 4.17 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
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
187
188
189
190
191
192
193
194
<html>
<head>
<title>Roost Detection Visualization</title>
</head>
<style>
html {
font-family: sans-serif;
}
#instructions, #controls, #filtering, #plot, #info {
padding: 5px;
display:inline-block;
vertical-align: middle;
}
div.tooltip {
position: absolute;
display: inline-block;
//text-align: center;
//width: 200px;
//height: 120px;
padding: 2px;
font: 12px sans-serif;
background: white;
border: 0px;
border-radius: 8px;
z-index: 100;
}
div.tooltip::after {
content: " ";
position: absolute;
top: 50%;
right: 100%; /* To the left of the tooltip */
margin-top: -10px;
border-width: 10px;
border-style: solid;
border-color: transparent white transparent transparent;
}
/* #controls { */
/* width: 300px; */
/* } */
/* #filtering { */
/* // width: 500px; */
/* } */
ul {
margin-top: 5px;
padding-left: 15px;
}
#instructions {
width: 260px;
}
#plot {
width:400px;
height:100px;
}
#comment_div {
width: 340px;
}
#comment {
width: 300px;
}
#viewer {
position: relative;
align: center;
}
#img1, #svg1 {
position: absolute;
left: 0px;
top: 0px;
width: 600px;
height: 600px;
}
#img2, #svg2 {
position: absolute;
left: 600px;
top: 0px;
width: 600px;
height: 600px;
}
/* Unfiltered */
.bbox > rect {
stroke-width: 3;
pointer-events: all;
}
.bbox > text {
stroke: #ffffff;
fill: #ffffff;
}
/* Unfiltered + selected */
.bbox.selected > rect {
fill: orange;
fill-opacity: 0.7;
}
/* Filtered, selected */
.bbox.filtered.selected {
opacity: 0.7;
}
/* Filtered, unselected */
.bbox.filtered {
opacity: 0.45;
}
input[type="radio"]{
margin: 0 2px 0 2px;
}
#mapper {
margin: 0 0 0 10px;
}
</style>
<body>
<div id="instructions">
<ul>
<li>up/down for days</li>
<li>left/right for frames</li>
<li>hover on box or use tab/shift-tab to select for labeling</li>
</ul>
<input id="export" type="button" value="Export"></input><strong>(REQUIRED TO SAVE)</strong>
</div>
<div id="controls">
<label for="datasets">Dataset:</label>
<select id="datasets">
<option disabled selected>Select dataset</option>
</select> <br/>
<label for="batches">Batch:</label>
<select id="batches"></select> <br/>
<label for="dateSelect">Date:</label>
<select id="dateSelect"></select> <br/>
<label for="timeSelect">Time:</label>
<select id="timeSelect"> </select> <br/>
<label for="dayNotes">Notes for day:</label>
<input id="dayNotes"> </input> <br/>
</div>
</div>
<div id="filtering">
<strong>Track filtering</strong>:<br/>
<ul>
<li>At least <input type="number" min="1" max="10" step="1" id="detections_min" value="2"/> detections</li>
<li>At least <input type="number" min="1" max="10" step="1" id="high_quality_detections_min" value="2"/> detections with
score at least <input type="number" min="-1" max="1" step="0.05" value="0.05" id="score_min"/></li>
<li>Average score at least <input type="number" min="-1" max="1" step="0.05" value="-1" id="avg_score_min"/></li>
</ul>
</div>
<div id="plot">
</div>
<div id="labeltip" class="tooltip" style="visibility: hidden;">
<div id="labels">
</div>
Notes: <br>
<input type="text" id="notes"></input>
<br>
<span id="mapper"></span>
<span id="delete_track"></span>
</div>
<!-- </div> -->
<div id="viewer">
<img id="img1"/>
<svg id="svg1"/>
<img id="img2"/>
<svg id="svg2"/>
</div>
</body>
<script type="module" src="./dist/demo.js"></script>
</html>