Skip to content

Commit

Permalink
fixing possible floats
Browse files Browse the repository at this point in the history
  • Loading branch information
Cartucho committed Dec 7, 2018
1 parent 29a5277 commit 6cc71b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extra/convert_gt_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
top = bndbox.find('ymin').text
right = bndbox.find('xmax').text
bottom = bndbox.find('ymax').text
new_f.write(obj_name + " " + left + " " + top + " " + right + " " + bottom + '\n')
new_f.write(obj_name + " %d %d %d %d\n" % (left, top, right, bottom))
# 2. move old file (xml format) to backup
os.rename(tmp_file, "backup/" + tmp_file)
print("Conversion completed!")

0 comments on commit 6cc71b7

Please sign in to comment.