This fixes #18 where openning previous annotation files causes a bug in resizing bounding boxes, they were not rectangle anymore and could become deformed.

This commit is contained in:
nkh 2016-11-08 13:06:13 +03:30
parent de98e88dcb
commit 43f9166aff

View File

@ -118,7 +118,7 @@ class PascalVocReader:
ymin = rect[1]
xmax = rect[2]
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))
def parseXML(self):