Merge pull request #47 from rflynn/refactor-README
refactor README for simplicity and clarity
This commit is contained in:
commit
f7b688711e
77
README.md
77
README.md
@ -6,38 +6,47 @@ LabelImg is a graphical image annotation tool.
|
|||||||
|
|
||||||
It is written in Python and uses Qt for its graphical interface.
|
It is written in Python and uses Qt for its graphical interface.
|
||||||
|
|
||||||
The annotation file will be saved as an XML file. The annotation format is PASCAL VOC format, and the format is the same as [ImageNet](http://www.image-net.org/)
|
Annotations are saved as XML files in PASCAL VOC format, the format used by [ImageNet](http://www.image-net.org/).
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||

|
[Watch a demo video by author tzutalin](https://youtu.be/p0nR2YsCY_U)
|
||||||
|
|
||||||
[](https://www.youtube.com/watch?v=p0nR2YsCY_U&feature=youtu.be)
|
## Get it
|
||||||
|
|
||||||
## Build source and use it
|
### Download prebuilt binaries
|
||||||
|
|
||||||
|
* Windows
|
||||||
|
* [Download LabelImg 1.2.1 for Windows](https://raw.githubusercontent.com/tzutalin/LabelImg/gh-pages/windows/windows_v1.2.1.zip)
|
||||||
|
* [Download LabelImg 1.2 for Windows](https://raw.githubusercontent.com/tzutalin/LabelImg/gh-pages/windows/windows_v1.2.zip)
|
||||||
|
* Linux
|
||||||
|
* [Download LabelImg 1.2.1 for Linux](https://raw.githubusercontent.com/tzutalin/LabelImg/gh-pages/linux/linux_v1.2.1.zip)
|
||||||
|
* [Download LabelImg 1.2 for Linux](https://raw.githubusercontent.com/tzutalin/LabelImg/gh-pages/linux/linux_v1.2.zip)
|
||||||
|
* OS X
|
||||||
|
* Binaries for OS X are not yet available. Help would be appreciated. At present it must be [built from source](#os-x).
|
||||||
|
|
||||||
|
### Build from source
|
||||||
|
|
||||||
Linux/Ubuntu/Mac requires at least [Python 2.6](http://www.python.org/getit/) and has been tested with [PyQt
|
Linux/Ubuntu/Mac requires at least [Python 2.6](http://www.python.org/getit/) and has been tested with [PyQt
|
||||||
4.8](http://www.riverbankcomputing.co.uk/software/pyqt/intro).
|
4.8](http://www.riverbankcomputing.co.uk/software/pyqt/intro).
|
||||||
|
|
||||||
In order to build the resource and assets, you need to install pyqt4-dev-tools and lxml:
|
#### Ubuntu Linux
|
||||||
|
|
||||||
### Ubuntu
|
|
||||||
|
|
||||||
sudo apt-get install pyqt4-dev-tools
|
sudo apt-get install pyqt4-dev-tools
|
||||||
sudo pip install lxml
|
sudo pip install lxml
|
||||||
make all
|
make all
|
||||||
./labelImg.py
|
./labelImg.py
|
||||||
|
|
||||||
### OS X
|
#### OS X
|
||||||
|
|
||||||
brew install qt qt4
|
brew install qt qt4
|
||||||
brew install libxml2
|
brew install libxml2
|
||||||
make all
|
make all
|
||||||
./labelImg.py
|
./labelImg.py
|
||||||
|
|
||||||
### Windows
|
#### Windows
|
||||||
|
|
||||||
Need to download and setup [Python 2.6](https://www.python.org/downloads/windows/) or later and [PyQt4](https://www.riverbankcomputing.com/software/pyqt/download). Also, you need to install lxml.
|
Download and setup [Python 2.6 or later](https://www.python.org/downloads/windows/), [PyQt4](https://www.riverbankcomputing.com/software/pyqt/download) and [install lxml](http://lxml.de/installation.html).
|
||||||
|
|
||||||
Open cmd and go to [labelImg]
|
Open cmd and go to [labelImg]
|
||||||
|
|
||||||
@ -45,31 +54,16 @@ Open cmd and go to [labelImg]
|
|||||||
python labelImg.py
|
python labelImg.py
|
||||||
|
|
||||||
|
|
||||||
## Download the prebuilt binary directly
|
|
||||||
[http://tzutalin.github.io/labelImg/](http://tzutalin.github.io/labelImg/). However, there are only prebuilt binaries for Windows and Linux because I don't have Mac OS to do that. If someone can help me to write a script to build binary for Mac OS, I will appreciate that.
|
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
After cloning the code, you should run `$ make all` to generate the resource file.
|
|
||||||
|
|
||||||
You can then start annotating by running `$ ./labelImg.py`. For usage
|
### Steps
|
||||||
instructions you can see [Here](https://youtu.be/p0nR2YsCY_U)
|
|
||||||
|
|
||||||
At the moment annotations are saved as an XML file. The format is PASCAL VOC format, and the format is the same as [ImageNet](http://www.image-net.org/)
|
1. Build and launch using the instructions above.
|
||||||
|
2. Click 'Change default saved annotation folder' in Menu/File
|
||||||
|
3. Click 'Open Dir'
|
||||||
|
4. Click 'Create RectBox'
|
||||||
|
|
||||||
You can also see [ImageNet Utils](https://github.com/tzutalin/ImageNet_Utils) to download image, create a label text for machine learning, etc
|
The annotation will be saved to the folder you specify.
|
||||||
|
|
||||||
|
|
||||||
### General steps from scratch
|
|
||||||
|
|
||||||
* Build and launch: `$ make all; python labelImg.py`
|
|
||||||
|
|
||||||
* Click 'Change default saved annotation folder' in Menu/File
|
|
||||||
|
|
||||||
* Click 'Open Dir'
|
|
||||||
|
|
||||||
* Click 'Create RectBox'
|
|
||||||
|
|
||||||
The annotation will be saved to the folder you specify
|
|
||||||
|
|
||||||
### Create pre-defined classes
|
### Create pre-defined classes
|
||||||
|
|
||||||
@ -77,15 +71,13 @@ You can edit the [data/predefined_classes.txt](https://github.com/tzutalin/label
|
|||||||
|
|
||||||
### Hotkeys
|
### Hotkeys
|
||||||
|
|
||||||
* Ctrl + r : Change the defult target dir which saving annotation files
|
| | |
|
||||||
|
|----------|------------------------------------------|
|
||||||
* Ctrl + s : Save
|
| Ctrl + r | Change the default annotation target dir |
|
||||||
|
| Ctrl + s | Save |
|
||||||
* w : Create a bounding box
|
| w | Create a bounding box |
|
||||||
|
| d | Next image |
|
||||||
* d : Next image
|
| a | Previous image |
|
||||||
|
|
||||||
* a : Previous image
|
|
||||||
|
|
||||||
### How to contribute
|
### How to contribute
|
||||||
Send a pull request
|
Send a pull request
|
||||||
@ -93,3 +85,6 @@ Send a pull request
|
|||||||
### License
|
### License
|
||||||
[License](LICENSE.md)
|
[License](LICENSE.md)
|
||||||
|
|
||||||
|
### Related
|
||||||
|
1. [ImageNet Utils](https://github.com/tzutalin/ImageNet_Utils) to download image, create a label text for machine learning, etc
|
||||||
|
|
||||||
|
|||||||
BIN
demo/demo3.jpg
Normal file
BIN
demo/demo3.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 89 KiB |
Loading…
x
Reference in New Issue
Block a user