This fixes #18 where openning previous annotation files causes a bug …
This commit is contained in:
darrenl 2016-11-08 18:11:41 +08:00 committed by GitHub
commit 930d111eb8

View File

@ -118,7 +118,7 @@ class PascalVocReader:
ymin = rect[1] ymin = rect[1]
xmax = rect[2] xmax = rect[2]
ymax = rect[3] ymax = rect[3]
points = [(xmin,ymin), (xmin,ymax), (xmax, ymax), (xmax, ymin)] points = [(xmin, ymin), (xmax, ymin), (xmax, ymax), (xmin, ymax)]
self.shapes.append((label, points, None, None)) self.shapes.append((label, points, None, None))
def parseXML(self): def parseXML(self):