forked from drainingsun/ybat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkbat.html
107 lines (89 loc) · 4.1 KB
/
kbat.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Kbat - KITTI BBox Annotation Tool</title>
<link href="kbat.css" rel="stylesheet">
<script src="canvas.min.js"></script>
<script src="jszip.min.js"></script>
<script src="filesaver.min.js"></script>
<script src="kbat.js"></script>
</head>
<body>
<div class="container" id="container">
<div class="left">
<form action="">
<label for="images">Images:</label>
<input type="file" id="images" name="images[]" accept="image/jpeg, image/png" multiple />
<input type="button" name="cropImages" id="cropImages" value="Crop&Save" />
<br />
<label for="imageSearch">Search:</label>
<input type="text" id="imageSearch" name="imageSearch" />
<label for="imageList"></label><select name="imageList" id="imageList" size="10" multiple></select>
<div id="imageInformation"></div>
<hr />
<label for="classes">Classes:</label>
<input type="file" id="classes" name="classes" accept="text/plain" />
<label for="classList"></label><select name="classList" id="classList" size="10" multiple></select>
<div id="bboxInformation"></div>
<hr />
<label for="bboxes">Bboxes:</label>
<input type="file" id="bboxes" name="bboxes[]" accept="text/plain, application/zip" disabled multiple />
<input type="button" name="restoreBboxes" id="restoreBboxes" value="Restore" disabled />
<hr />
<input type="button" name="saveBboxes" id="saveBboxes" value="Save KITTI" />
<div>
<label for="Occluded">Occluded:</label>
<select name="occluded" id="occluded" disabled="disabled">
<option value="0">fully visible</option>
<option value="1">partly occluded</option>
<option value="2">largely occluded</option>
<option value="3">unknown</option>
</select>
</div>
<div>
<label for="Truncated">Truncated:</label>
<input type="number" id="truncated" name="truncated" step="0.01" min="0.0" max="1.0" value="0.0" disabled="disabled">
</div>
<hr />
<input type="button" name="saveBboxesYOLO" id="saveBboxesYOLO" value="Save YOLO" />
<hr />
<div id="voc">
<label for="vocFolder">Voc folder:</label>
<input type="text" id="vocFolder" name="vocFolder" value="data" />
<input type="button" name="saveVocBboxes" id="saveVocBboxes" value="Save VOC" />
<input type="button" name="saveCocoBboxes" id="saveCocoBboxes" value="Save COCO" />
</div>
<div id="coco">
</div>
<hr />
<div id="description">
SHORTCUTS:
<ul>
<li>
Mouse WHEEL - zoom in/out image
</li>
<li>
Mouse RIGHT BUTTON - pan image
</li>
<li>
Arrows LEFT and RIGHT - cycle images
</li>
<li>
Arrows Up and DOWN - cycle classes
</li>
<li>
Key DELETE - remove selected Bbox
</li>
</ul>
<p>Version: 0.2.5 | Copyright © 2018-2019 Draining Sun. | Modify by Crack 2021</p>
</div>
</form>
</div>
<div class="right" id="right">
<canvas id="canvas"></canvas>
<canvas id="hiddenCanvas"></canvas>
</div>
</div>
</body>
</html>