diff --git a/README.rst b/README.rst index 0c4dad44..2f80483c 100644 --- a/README.rst +++ b/README.rst @@ -48,7 +48,7 @@ Ubuntu Linux ^^^^^^^^^^^^ Python 2 + Qt4 -.. code:: +.. code:: shell sudo apt-get install pyqt4-dev-tools sudo pip install lxml @@ -58,7 +58,7 @@ Python 2 + Qt4 Python 3 + Qt5 (Recommanded) -.. code:: +.. code:: shell sudo apt-get install pyqt5-dev-tools sudo pip3 install -r requirements/requirements-linux-python3.txt @@ -67,10 +67,10 @@ Python 3 + Qt5 (Recommanded) python3 labelImg.py [IMAGE_PATH] [PRE-DEFINED CLASS FILE] macOS -^^^^ +^^^^^ Python 2 + Qt4 -.. code:: +.. code:: shell brew install qt qt4 brew install libxml2 @@ -80,7 +80,7 @@ Python 2 + Qt4 Python 3 + Qt5 (Recommanded) -.. code:: +.. code:: shell brew install qt # Install qt-5.x.x by Homebrew brew install libxml2 @@ -99,7 +99,7 @@ Python 3 + Qt5 (Recommanded) This can avoid a lot of the QT / Python version issues, and gives you a nice .app file with a new SVG Icon in your /Applications folder. You can consider this script: build-tools/build-for-macos.sh -.. code:: +.. code:: shell brew install python3 pip install pipenv @@ -122,20 +122,20 @@ and `install lxml `__. Open cmd and go to the `labelImg <#labelimg>`__ directory -.. code:: +.. code:: shell pyrcc4 -o resources.py resources.qrc python labelImg.py python labelImg.py [IMAGE_PATH] [PRE-DEFINED CLASS FILE] Windows + Anaconda -^^^^^^^ +^^^^^^^^^^^^^^^^^^ Download and install `Anaconda `__ (Python 3+) Open the Anaconda Prompt and go to the `labelImg <#labelimg>`__ directory -.. code:: +.. code:: shell conda install pyqt=5 pyrcc5 -o resources.py resources.qrc @@ -144,7 +144,7 @@ Open the Anaconda Prompt and go to the `labelImg <#labelimg>`__ directory Get from PyPI ~~~~~~~~~~~~~~~~~ -.. code:: +.. code:: shell pip install labelImg labelImg @@ -154,7 +154,7 @@ I tested pip on Ubuntu 14.04 and 16.04. However, I didn't test pip on macOS and Use Docker ~~~~~~~~~~~~~~~~~ -.. code:: +.. code:: shell docker run -it \ --user $(id -u) \ @@ -177,7 +177,7 @@ Usage ----- Steps (PascalVOC) -~~~~~ +~~~~~~~~~~~~~~~~~ 1. Build and launch using the instructions above. 2. Click 'Change default saved annotation folder' in Menu/File @@ -192,7 +192,7 @@ The annotation will be saved to the folder you specify. You can refer to the below hotkeys to speed up your workflow. Steps (YOLO) -~~~~~ +~~~~~~~~~~~~ 1. In ``data/predefined_classes.txt`` define the list of classes that will be used for your training. @@ -278,3 +278,4 @@ Related 3. `Generating the PASCAL VOC TFRecord files `__ 4. `App Icon based on Icon by Nick Roach (GPL)` __ + diff --git a/build-tools/build-for-macos.sh b/build-tools/build-for-macos.sh index cf389cc9..dfe926b7 100755 --- a/build-tools/build-for-macos.sh +++ b/build-tools/build-for-macos.sh @@ -1,9 +1,9 @@ #!/bin/sh brew install python@2 -pip install --upgrade virtualenv +pip install --upgrade virtualenv -# clonde labelimg source +# clone labelimg source rm -rf /tmp/labelImgSetup mkdir /tmp/labelImgSetup cd /tmp/labelImgSetup @@ -27,4 +27,4 @@ mv "/tmp/labelImgSetup/labelImg-master/dist/labelImg.app" /Applications deactivate cd ../ rm -rf /tmp/labelImgSetup -echo 'DONE' \ No newline at end of file +echo 'DONE'