This guide explains how to convert a Kaggle Masati dataset into a CSV file that conforms to Visual Layer’s object annotation format.
class_id
: Represents the object class (e.g. 0 corresponds to “ship”).norm_cx
, norm_cy
: Normalized center coordinates (values between 0 and 1).norm_w
, norm_h
: Normalized width and height (values between 0 and 1).
filename
: The image file name.col_x
: The x‑coordinate (column) of the top‑left corner.row_y
: The y‑coordinate (row) of the top‑left corner.w
: Bounding box width (pixels).h
: Bounding box height (pixels).label
: The object label (e.g., “ship”).
filename | col_x | row_y | width | height | label |
---|---|---|---|---|---|
output_000001.png | 150 | 100 | 30 | 40 | ship |
output_000002.png | 200 | 80 | 25 | 35 | ship |
output_000003.png | 175 | 90 | 28 | 32 | ship |
filename
: Name of the image file.col_x
& row_y
: Top‑left pixel coordinates of the bounding box.w
& h
: Width and height of the bounding box in pixels.label
: Object label (“ship”).