Git Product home page Git Product logo

label-annotation-voc-pascal's Introduction

LabelImg

Build Status

LabelImg is a graphical image annotation tool.

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

Demo video

Build source and use it

Linux/Ubuntu/Mac requires at least Python 2.6 and has been tested with PyQt 4.8.

In order to build the resource and assets, you need to install pyqt4-dev-tools and lxml:

Ubuntu

sudo apt-get install pyqt4-dev-tools
sudo pip install lxml
make all
./labelImg.py

OS X

brew install qt qt4
brew install libxml2
make all
./labelImg.py

Windows

Need to download and setup Python 2.6 or later and PyQt4. Also, you need to install lxml.

Open cmd and go to [labelImg]

pyrcc4 -o resources.py resources.qrc
python labelImg.py

Download the prebuilt binary directly

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

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 instructions you can see Here

At the moment annotations are saved as an XML file. The format is PASCAL VOC format, and the format is the same as ImageNet

You can also see ImageNet Utils to download image, create a label text for machine learning, etc

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

You can edit the data/predefined_classes.txt to load pre-defined classes

Hotkeys

  • Ctrl + r : Change the defult target dir which saving annotation files

  • Ctrl + s : Save

  • w : Create a bounding box

  • d : Next image

  • a : Previous image

How to contribute

Send a pull request

License

License

label-annotation-voc-pascal's People

Contributors

google1234 avatar manhcuogntin4 avatar nkhdiscovery avatar rflynn avatar tzutalin avatar williemaddox avatar xunchangqing avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

label-annotation-voc-pascal's Issues

How to draw free flow line or polygon?

In this tool how can i draw a polygon or line so that i can annotate lane information in that. If it is not there than where I have to make the changes so that i can draw line and polygons and save that annotation data into pascal voc format..

sources ImportError: No module named resources

hi @manhcuogntin4
I 'm trying to use this tool on mac os 10.12.5.
I followed the intallation instructions and finally run this command "python ./labelImg.py"
But I got this error : "ImportError: No module named resources"
Do you know how to solve this?
Thank you !

Change the Hotkeys

Hi,

thank you for this greet work.
please i want to know how could i change the Hotkeys (specially create RectBox)?
I searched in the code but i can't find it.
Note that: i am using the ubuntu version if these matters.

Thanks in advance,

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.