add dataset-visualiser.py

This commit is contained in:
Alex Bezdieniezhnykh
2024-06-19 02:28:50 +03:00
parent 165d609d01
commit 6c50dd19b7
5 changed files with 41 additions and 6 deletions
+1 -1
View File
@@ -105,7 +105,7 @@ def read_bbox_oriented(width, height, s):
if c_x > 1 or c_y > 1 or c_w > 1 or c_h > 1:
print('Values are out of bounds')
else:
yolo_lines.append(f'1 {c_x} {c_y} {c_w} {c_h}\n')
yolo_lines.append(f'2 {c_x} {c_y} {c_w} {c_h}\n')
return yolo_lines