Skip to content

Commit b28429a

Browse files
committed
Adding tool for image labeling
1 parent a93dc96 commit b28429a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+8505
-0
lines changed

labelImg/.gitignore

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
resources/icons/.DS_Store
2+
3+
resources.py
4+
5+
.idea*
6+
labelImg.egg-info*
7+
8+
*.pyc
9+
.*.swp
10+
11+
build/
12+
dist/
13+
14+
tags
15+
cscope*
16+
.ycm_extra_conf.py
17+
.subvimrc
18+
.vscode
19+
*.pkl

labelImg/.travis.yml

+86
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
# vim: set ts=2 et:
2+
3+
# run xvfb with 32-bit color
4+
# xvfb-run -s '-screen 0 1600x1200x24+32' command_goes_here
5+
6+
matrix:
7+
include:
8+
9+
10+
# Python 2.7 + QT4
11+
- os: linux
12+
dist: trusty
13+
sudo: required
14+
language: generic
15+
python: "2.7"
16+
env:
17+
- QT=4
18+
- CONDA=4.2.0
19+
addons:
20+
apt:
21+
packages:
22+
- cmake
23+
#- python-qt4
24+
#- pyqt4-dev-tools
25+
- xvfb
26+
before_install:
27+
# ref: https://www.continuum.io/downloads
28+
- curl -O https://repo.continuum.io/archive/Anaconda2-4.2.0-Linux-x86_64.sh
29+
# ref: http://conda.pydata.org/docs/help/silent.html
30+
- /bin/bash Anaconda2-4.2.0-Linux-x86_64.sh -b -p $HOME/anaconda2
31+
- export PATH="$HOME/anaconda2/bin:$PATH"
32+
# ref: http://stackoverflow.com/questions/21637922/how-to-install-pyqt4-in-anaconda
33+
- conda create -y -n labelImg-py2qt4 python=2.7
34+
- source activate labelImg-py2qt4
35+
- conda install -y pyqt=4
36+
- conda install -y lxml
37+
- make qt4py2
38+
- xvfb-run make testpy2
39+
40+
41+
# Python 3 + QT5
42+
- os: linux
43+
dist: trusty
44+
sudo: required
45+
language: generic
46+
python: "3.5"
47+
env:
48+
- QT=5
49+
- CONDA=4.2.0
50+
addons:
51+
apt:
52+
packages:
53+
- cmake
54+
- xvfb
55+
before_install:
56+
# ref: https://www.continuum.io/downloads
57+
- curl -O https://repo.continuum.io/archive/Anaconda3-4.2.0-Linux-x86_64.sh
58+
# ref: http://conda.pydata.org/docs/help/silent.html
59+
- /bin/bash Anaconda3-4.2.0-Linux-x86_64.sh -b -p $HOME/anaconda3
60+
- export PATH="$HOME/anaconda3/bin:$PATH"
61+
# ref: http://stackoverflow.com/questions/21637922/how-to-install-pyqt4-in-anaconda
62+
- conda create -y -n labelImg-py3qt5 python=3.5
63+
- source activate labelImg-py3qt5
64+
- conda install -y pyqt=5
65+
- conda install -y lxml
66+
- make qt5py3
67+
- xvfb-run make testpy3
68+
69+
# Pipenv Python 3 + QT5 - Build .app
70+
- os: osx
71+
language: generic
72+
python: "3.7"
73+
env:
74+
- PIPENV_VENV_IN_PROJECT=1
75+
- PIPENV_IGNORE_VIRTUALENVS=1
76+
install:
77+
- pip3 install pipenv
78+
- pipenv install pyqt5 lxml
79+
- pipenv run pip install pyqt5==5.13.2 lxml
80+
- pipenv run make qt5py3
81+
- rm -rf build dist
82+
- pipenv run python setup.py py2app
83+
- open dist/labelImg.app
84+
85+
script:
86+
- exit 0

labelImg/CONTRIBUTING.rst

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
TzuTa Lin
2+
[LabelMe](http://labelme2.csail.mit.edu/Release3.0/index.php)
3+
Ryan Flynn

labelImg/HISTORY.rst

+110
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
History
2+
=======
3+
4+
1.8.2 (2018-12-02)
5+
------------------
6+
7+
* Fix pip depolyment issue
8+
9+
10+
1.8.1 (2018-12-02)
11+
------------------
12+
13+
* Fix issues
14+
* Support zh-Tw strings
15+
16+
17+
1.8.0 (2018-10-21)
18+
------------------
19+
20+
* Support drawing sqaure rect
21+
* Add item single click slot
22+
* Fix issues
23+
24+
1.7.0 (2018-05-18)
25+
------------------
26+
27+
* Support YOLO
28+
* Fix minor issues
29+
30+
31+
1.6.1 (2018-04-17)
32+
------------------
33+
34+
* Fix issue
35+
36+
1.6.0 (2018-01-29)
37+
------------------
38+
39+
* Add more pre-defined labels
40+
* Show cursor pose in status bar
41+
* Fix minor issues
42+
43+
1.5.2 (2017-10-24)
44+
------------------
45+
46+
* Assign different colors to different lablels
47+
48+
1.5.1 (2017-9-27)
49+
------------------
50+
51+
* Show a autosaving dialog
52+
53+
1.5.0 (2017-9-14)
54+
------------------
55+
56+
* Fix the issues
57+
* Add feature: Draw a box easier
58+
59+
60+
1.4.3 (2017-08-09)
61+
------------------
62+
63+
* Refactor setting
64+
* Fix the issues
65+
66+
67+
1.4.0 (2017-07-07)
68+
------------------
69+
70+
* Add feature: auto saving
71+
* Add feature: single class mode
72+
* Fix the issues
73+
74+
1.3.4 (2017-07-07)
75+
------------------
76+
77+
* Fix issues and improve zoom-in
78+
79+
1.3.3 (2017-05-31)
80+
------------------
81+
82+
* Fix issues
83+
84+
1.3.2 (2017-05-18)
85+
------------------
86+
87+
* Fix issues
88+
89+
90+
1.3.1 (2017-05-11)
91+
------------------
92+
93+
* Fix issues
94+
95+
1.3.0 (2017-04-22)
96+
------------------
97+
98+
* Fix issues
99+
* Add difficult tag
100+
* Create new files for pypi
101+
102+
1.2.3 (2017-04-22)
103+
------------------
104+
105+
* Fix issues
106+
107+
1.2.2 (2017-01-09)
108+
------------------
109+
110+
* Fix issues

labelImg/LICENSE

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Copyright (c) <2015-Present> Tzutalin
2+
3+
Copyright (C) 2013 MIT, Computer Science and Artificial Intelligence Laboratory. Bryan Russell, Antonio Torralba, William T. Freeman
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6+
7+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8+
9+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

labelImg/MANIFEST.in

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
include CONTRIBUTING.rst
2+
include HISTORY.rst
3+
include LICENSE
4+
include README.rst
5+
6+
include resources.qrc
7+
8+
recursive-include data *
9+
recursive-include icons *
10+
recursive-include libs *
11+
12+
recursive-exclude build-tools *
13+
recursive-exclude tests *
14+
recursive-exclude * __pycache__
15+
recursive-exclude * *.py[co]

labelImg/Makefile

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# ex: set ts=8 noet:
2+
3+
all: qt5 test
4+
5+
test: testpy3
6+
7+
testpy2:
8+
python -m unittest discover tests
9+
10+
testpy3:
11+
python3 -m unittest discover tests
12+
13+
qt4: qt4py2
14+
15+
qt5: qt5py3
16+
17+
qt4py2:
18+
pyrcc4 -py2 -o libs/resources.py resources.qrc
19+
20+
qt4py3:
21+
pyrcc4 -py3 -o libs/resources.py resources.qrc
22+
23+
qt5py3:
24+
pyrcc5 -o libs/resources.py resources.qrc
25+
26+
clean:
27+
rm -rf ~/.labelImgSettings.pkl *.pyc dist labelImg.egg-info __pycache__ build
28+
29+
pip_upload:
30+
python3 setup.py upload
31+
32+
long_description:
33+
restview --long-description
34+
35+
.PHONY: all

0 commit comments

Comments
 (0)