Update README and add clean in Makefile

This commit is contained in:
tzutalin 2016-10-22 10:27:50 +08:00
parent 616435d8a2
commit a550ee426d
2 changed files with 14 additions and 9 deletions

View File

@ -4,3 +4,5 @@ all: resources.py
%.py: %.qrc %.py: %.qrc
pyrcc4 -o $@ $< pyrcc4 -o $@ $<
clean: $(shell git clean -fd)

View File

@ -20,13 +20,15 @@ The annotation file will be saved as an XML file. The annotation format is PASCA
Requires at least [Python 2.6](http://www.python.org/getit/) and has been tested with [PyQt 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: In order to build the resource and assets, you need to install pyqt4-dev-tools and lxml:
```
$ sudo apt-get install pyqt4-dev-tools
$ sudo pip install lxml
$ make all
$ ./labelImg.py
```
`$ sudo apt-get install pyqt4-dev-tools` Mac requires "$ brew install libxml2" when installing lxml
`$ make all`
`$ ./labelImg.py`
* Windows * Windows
@ -34,9 +36,10 @@ Need to download and setup [Python 2.6](https://www.python.org/downloads/windows
Open cmd and go to [labelImg] Open cmd and go to [labelImg]
`$ pyrcc4 -o resources.py resources.qrc` ```
$ pyrcc4 -o resources.py resources.qrc
`$ python labelImg.py` $ python labelImg.py
```
## Usage ## Usage
After cloning the code, you should run `$ make all` to generate the resource file. After cloning the code, you should run `$ make all` to generate the resource file.