Skip to content
This repository was archived by the owner on Feb 29, 2024. It is now read-only.

Commit 7b67c2c

Browse files
shortcut c
1 parent dd6f703 commit 7b67c2c

File tree

2 files changed

+1
-20
lines changed

2 files changed

+1
-20
lines changed

README.rst

-11
Original file line numberDiff line numberDiff line change
@@ -119,17 +119,6 @@ Open the Anaconda Prompt and go to the `labelImg <#labelimg>`__ directory
119119
python labelImg.py
120120
python labelImg.py [IMAGE_PATH] [PRE-DEFINED CLASS FILE]
121121
122-
.. code::
123-
124-
conda create -n labelimg python=3.5
125-
pip install PyQt5==5.10.1 lxml pyinstaller
126-
# You may delete C:~/.labelImgSettings.pkl
127-
pyrcc5 -o libs/resources.py resources.qrc
128-
python labelImg.py
129-
python labelImg.py [IMAGE_PATH] [PRE-DEFINED CLASS FILE]
130-
pyinstaller --hidden-import=xml --hidden-import=xml.etree --hidden-import=xml.etree.ElementTree --hidden-import=lxml.etree --hidden-import=PyQt5.sip -D -F -n labelImg -c "./labelImg.py" -p ./libs -p ./ --paths C:\Users\Administrator\Anaconda3\envs\labelimg\Lib\site-packages\PyQt5\Qt\bin
131-
132-
133122
Get from PyPI but only python3.0 or above
134123
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
135124
This is the simplest (one-command) install method on modern Linux distributions such as Ubuntu and Fedora.

labelImg.py

+1-9
Original file line numberDiff line numberDiff line change
@@ -157,14 +157,6 @@ def __init__(self, defaultFilename=None, defaultPrefdefClassFile=None, defaultSa
157157
self.addFlags(getStr('useDifficult'))
158158
self.addFlags(getStr('useTruncated'))
159159

160-
# *
161-
# * dhzs 2017-12-2 add copy button
162-
# *
163-
self.copy_prev_button = QPushButton('Copy the previous label')
164-
self.copy_prev_button.setShortcut('c')
165-
self.copy_prev_button.clicked.connect(self.copyPreviousBoundingBoxes)
166-
listLayout.addWidget(self.copy_prev_button)
167-
168160
# Add some of widgets to listLayout
169161
listLayout.addWidget(self.flagGroupBox)
170162
listLayout.addWidget(self.editButton)
@@ -244,7 +236,7 @@ def __init__(self, defaultFilename=None, defaultPrefdefClassFile=None, defaultSa
244236
'Ctrl+u', 'open', getStr('openDir'))
245237

246238
copyPrevBounding = action(getStr('copyPrevBounding'), self.copyPreviousBoundingBoxes,
247-
'Ctrl+v', 'paste', getStr('copyPrevBounding'))
239+
'c', 'paste', getStr('copyPrevBounding'))
248240

249241
changeSavedir = action(getStr('changeSaveDir'), self.changeSavedirDialog,
250242
'Ctrl+r', 'open', getStr('changeSavedAnnotationDir'))

0 commit comments

Comments
 (0)