From 43f9166aff140753f8d061c19efc86115552d9b3 Mon Sep 17 00:00:00 2001 From: nkh Date: Tue, 8 Nov 2016 13:06:13 +0330 Subject: [PATCH] This fixes #18 where openning previous annotation files causes a bug in resizing bounding boxes, they were not rectangle anymore and could become deformed. --- libs/pascal_voc_io.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/pascal_voc_io.py b/libs/pascal_voc_io.py index 05ce8749..a54d1ed0 100644 --- a/libs/pascal_voc_io.py +++ b/libs/pascal_voc_io.py @@ -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):