Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Commit

Permalink
🐛 Update: Bbox Coords
Browse files Browse the repository at this point in the history
  • Loading branch information
Zerohertz committed Mar 23, 2023
1 parent ba49c77 commit 409d298
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion saveData.py
Original file line number Diff line number Diff line change
Expand Up @@ -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('..')
Expand Down

0 comments on commit 409d298

Please sign in to comment.