rename functions
This commit is contained in:
parent
12dadc67cd
commit
08db03a36d
12
labelImg.py
12
labelImg.py
@ -1064,7 +1064,7 @@ class MainWindow(QMainWindow, WindowMixin):
|
|||||||
self.paintCanvas()
|
self.paintCanvas()
|
||||||
self.addRecentFile(self.filePath)
|
self.addRecentFile(self.filePath)
|
||||||
self.toggleActions(True)
|
self.toggleActions(True)
|
||||||
self.showXmlBoundingBoxes(filePath)
|
self.showBoundingBoxFromAnnotationFile(filePath)
|
||||||
|
|
||||||
self.setWindowTitle(__appname__ + ' ' + filePath)
|
self.setWindowTitle(__appname__ + ' ' + filePath)
|
||||||
|
|
||||||
@ -1077,7 +1077,7 @@ class MainWindow(QMainWindow, WindowMixin):
|
|||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def showXmlBoundingBoxes(self, filePath):
|
def showBoundingBoxFromAnnotationFile(self, filePath):
|
||||||
if self.defaultSaveDir is not None:
|
if self.defaultSaveDir is not None:
|
||||||
basename = os.path.basename(
|
basename = os.path.basename(
|
||||||
os.path.splitext(filePath)[0])
|
os.path.splitext(filePath)[0])
|
||||||
@ -1500,10 +1500,10 @@ class MainWindow(QMainWindow, WindowMixin):
|
|||||||
|
|
||||||
def copyPreviousBoundingBoxes(self):
|
def copyPreviousBoundingBoxes(self):
|
||||||
currIndex = self.mImgList.index(self.filePath)
|
currIndex = self.mImgList.index(self.filePath)
|
||||||
prevFilePath = self.mImgList[currIndex - 1]
|
if currIndex - 1 >= 0:
|
||||||
|
prevFilePath = self.mImgList[currIndex - 1]
|
||||||
self.showXmlBoundingBoxes(prevFilePath)
|
self.showBoundingBoxFromAnnotationFile(prevFilePath)
|
||||||
self.saveFile()
|
self.saveFile()
|
||||||
|
|
||||||
def togglePaintLabelsOption(self):
|
def togglePaintLabelsOption(self):
|
||||||
for shape in self.canvas.shapes:
|
for shape in self.canvas.shapes:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user