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:
parent
5d59f6cfb2
commit
515a3f6606
@ -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())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user