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 4314719 commit f6b2b58
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/2)/mw, (y+mh/2)/mh, width/mw, height/mh])
wr.writerow([0, (x+width/2)/mw, (y+height/2)/mh, width/mw, height/mh])

if __name__ == "__main__":
os.chdir('..')
Expand Down

0 comments on commit f6b2b58

Please sign in to comment.