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:
parent
de98e88dcb
commit
43f9166aff
@ -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):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user