Modify labelImg.py to solve an error when naming the .xml file

A line was commented out because there was an error. When a box was drawn
around an object and then saved, the file had a termination
".xml.xml" instead of just ".xml".
This commit is contained in:
Sebastian Rivera 2018-05-15 12:07:11 +02:00 committed by darrenl
parent 5d59f6cfb2
commit 515a3f6606

View File

@ -768,7 +768,7 @@ class MainWindow(QMainWindow, WindowMixin):
# Can add differrent annotation formats here
try:
if self.usingPascalVocFormat is True:
annotationFilePath += XML_EXT
# annotationFilePath += XML_EXT
print ('Img: ' + self.filePath + ' -> Its xml: ' + annotationFilePath)
self.labelFile.savePascalVocFormat(annotationFilePath, shapes, self.filePath, self.imageData,
self.lineColor.getRgb(), self.fillColor.getRgb())