Skip to content

Commit

Permalink
Add bounding box detection example
Browse files Browse the repository at this point in the history
  • Loading branch information
wkentaro committed Jun 14, 2018
1 parent a441700 commit ee23064
Show file tree
Hide file tree
Showing 9 changed files with 296 additions and 0 deletions.
Binary file added examples/bbox_detection/.readme/annotation.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions examples/bbox_detection/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Bounding Box Detection Example


## Usage

```bash
labelme data_annotated --labels labels.txt --nodata --autosave
```

![](.readme/annotation.jpg)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
65 changes: 65 additions & 0 deletions examples/bbox_detection/data_annotated/2011_000003.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"flags": {},
"shapes": [
{
"label": "person",
"line_color": null,
"fill_color": null,
"points": [
[
188,
108
],
[
313,
107
],
[
313,
329
],
[
191,
329
]
]
},
{
"label": "person",
"line_color": null,
"fill_color": null,
"points": [
[
499,
85
],
[
365,
85
],
[
365,
335
],
[
499,
335
]
]
}
],
"lineColor": [
0,
255,
0,
128
],
"fillColor": [
255,
0,
0,
128
],
"imagePath": "2011_000003.jpg",
"imageData": null
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
111 changes: 111 additions & 0 deletions examples/bbox_detection/data_annotated/2011_000006.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
{
"flags": {},
"shapes": [
{
"label": "person",
"line_color": null,
"fill_color": null,
"points": [
[
400,
82
],
[
447,
82
],
[
447,
117
],
[
400,
117
]
]
},
{
"label": "person",
"line_color": null,
"fill_color": null,
"points": [
[
95,
103
],
[
238,
103
],
[
238,
330
],
[
95,
330
]
]
},
{
"label": "person",
"line_color": null,
"fill_color": null,
"points": [
[
301,
111
],
[
174,
111
],
[
174,
281
],
[
301,
281
]
]
},
{
"label": "person",
"line_color": null,
"fill_color": null,
"points": [
[
254,
290
],
[
370,
290
],
[
370,
115
],
[
254,
115
]
]
}
],
"lineColor": [
0,
255,
0,
128
],
"fillColor": [
255,
0,
0,
128
],
"imagePath": "2011_000006.jpg",
"imageData": null
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
88 changes: 88 additions & 0 deletions examples/bbox_detection/data_annotated/2011_000025.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
{
"flags": {},
"shapes": [
{
"label": "bus",
"line_color": null,
"fill_color": null,
"points": [
[
85,
24
],
[
435,
26
],
[
438,
373
],
[
88,
374
]
]
},
{
"label": "bus",
"line_color": null,
"fill_color": null,
"points": [
[
0,
100
],
[
107,
101
],
[
107,
290
],
[
0,
291
]
]
},
{
"label": "car",
"line_color": null,
"fill_color": null,
"points": [
[
407,
168
],
[
500,
168
],
[
500,
268
],
[
407,
268
]
]
}
],
"lineColor": [
0,
255,
0,
128
],
"fillColor": [
255,
0,
0,
128
],
"imagePath": "2011_000025.jpg",
"imageData": null
}
22 changes: 22 additions & 0 deletions examples/bbox_detection/labels.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
__ignore__
_background_
aeroplane
bicycle
bird
boat
bottle
bus
car
cat
chair
cow
diningtable
dog
horse
motorbike
person
potted plant
sheep
sofa
train
tv/monitor

0 comments on commit ee23064

Please sign in to comment.