README.md 1.5 KB
Newer Older
K
Kentaro Wada 已提交
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
labelme: Image Annotation Tool with Python
==========================================

Labelme is a graphical image annotation tool inspired by <http://labelme.csail.mit.edu>.

It is written in Python and uses Qt for its graphical interface.


Dependencies
------------

- [PyQt4](http://www.riverbankcomputing.co.uk/software/pyqt/intro)


Installation
------------

On Ubuntu:

```bash
$ sudo apt-get install python-qt4 qt4-dev-tools

$ sudo pip install labelme
```

On OS X:

```bash
$ brew install qt qt4

$ pip install labelme
```


Usage
-----

K
Kentaro Wada 已提交
38 39
**Annotation**

K
Kentaro Wada 已提交
40 41 42 43 44 45 46
```bash
$ labelme  # Open GUI
```

The annotations are saved as a [JSON](http://www.json.org/) file. The
file includes the image itself.

K
Kentaro Wada 已提交
47 48
**Visualization**

K
Kentaro Wada 已提交
49 50 51
To view the json file quickly, you can use utility script:

```bash
K
Kentaro Wada 已提交
52 53 54 55 56 57 58 59 60 61
$ labelme_draw_json _static/IMG_6319.json
```

**Convert to Dataset**

To convert the json to set of image and label, you can run following:


```bash
$ labelme_json_to_dataset _static/IMG_6319.json
K
Kentaro Wada 已提交
62 63 64 65 66 67
```


Sample
------

K
Kentaro Wada 已提交
68 69 70 71
- [Original Image](https://github.com/wkentaro/labelme/blob/master/_static/IMG_6319.jpg)
- [Screenshot](https://github.com/wkentaro/labelme/blob/master/_static/IMG_6319_screenshot.png)
- [Generated Json File](https://github.com/wkentaro/labelme/blob/master/_static/IMG_6319.json)
- [Visualized Json File](https://github.com/wkentaro/labelme/blob/master/_static/IMG_6319_draw_json.png)
K
Kentaro Wada 已提交
72 73 74 75 76


Screencast
----------

K
Kentaro Wada 已提交
77
<img src="https://github.com/wkentaro/labelme/raw/master/_static/screencast.gif" width="70%"/>