From 409d2985dbbf560c8d4191f9d2bcd84d6442342b Mon Sep 17 00:00:00 2001 From: Zerohertz Date: Thu, 23 Mar 2023 20:28:21 +0900 Subject: [PATCH] :bug: Update: Bbox Coords --- saveData.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/saveData.py b/saveData.py index 4e69d4b..07ff36c 100644 --- a/saveData.py +++ b/saveData.py @@ -55,7 +55,7 @@ def saveData(target, brand, img): wr = csv.writer(f, delimiter=' ') for i in range(len(bbox)): x, y, width, height = bbox.iloc[i] - wr.writerow([0, x / mw, y / mh, width / mw, height / mh]) + wr.writerow([0, x / mw + mw // 2, y / mh + mh // 2, width / mw, height / mh]) if __name__ == "__main__": os.chdir('..')