-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
78 lines (73 loc) · 3.15 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Image Annotator</title>
<link href="index.css" rel="stylesheet">
<script src="./assets/canvas.min.js"></script>
<script src="./assets/jszip.min.js"></script>
<script src="./assets/filesaver.min.js"></script>
<script src="index.js"></script>
</head>
<body>
<div class="container" id="container">
<div class="left">
<div id="image-annotator">Image Annotator</div>
<form action="">
<div class="flexa">
<div class="getImage">
<label for="images">Images:</label>
<input type="file" id="images" name="images[]" accept="image/jpeg, image/png" multiple />
</div>
<label for="imageList"></label>
<select name="imageList" class="select-sim" id="imageList" size="1" multiple>
<option class="placeholder" value="">Select Images</option>
</select>
<div id="imageInformation"></div>
<div class="getLabel">
<label for="classes">Labels:</label>
<input type="file" id="classes" name="classes" accept="text/plain" />
</div>
<label for="classList"></label>
<select name="classList" class="select-sim" id="classList" size="1" multiple>
<option class="placeholder" value="">Select Labels</option>
</select>
<div id="bboxInformation"></div>
<div class="afterImage">
<input type="button" name="restoreBboxes" id="restoreBboxes" value="Restore" disabled />
<input type="button" name="download" id="download" value="Download Image" />
</div>
<div class="afterImage">
<input type="button" name="cropImages" id="cropImages" value="Crop & Save" />
<input type="button" name="JSON Data" id="saveCocoBboxes" value="JSON Data" />
</div>
<div id="description">
<h3>SHORTCUTS:</h3>
<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>
</div>
</div>
</form>
</div>
<div class="right" id="right">
<canvas id="canvas"></canvas>
<canvas id="hiddenCanvas"></canvas>
</div>
</div>
</body>
</html>