-
-
Notifications
You must be signed in to change notification settings - Fork 531
Supported Output Formats
A .zip package containing files in YOLO format
example of file in YOLO format
Schema:
label_index rel_rect_center_x rel_rect_center_y rel_rect_width rel_rect_height
Where:
label_index
- index of the selected label
rel_rect_center_x
- horizontal position of the centre of the rect in relation to overall image width, value between [0, 1]
rel_rect_center_y
- vertical position of the centre of the rect in relation to overall image height, value between [0, 1]
rel_rect_width
- rect width in relation to overall image width, value between [0, 1]
rel_rect_height
- rect height in relation to overall image height, value between [0, 1]
Example:
1 0.404528 0.543963 0.244094 0.727034
2 0.610236 0.494751 0.188976 0.437008
1 0.754921 0.791339 0.354331 0.413386
A .zip package containing files in Pascal VOC XML format
example of file in Pascal VOC XML format
Schema:
<annotation>
<folder>{ project_name }</folder>
<filename>{ image_name }</filename>
<path>{ /project_name/file_name }</path>
<source>
<database>Unspecified</database>
</source>
<size>
<width>{ image_width }</width>
<height>{ image_height }</height>
<depth>3</depth>
</size>
<object>
<name>{ label_name }</name>
<pose>Unspecified</pose>
<truncated>Unspecified</truncated>
<difficult>Unspecified</difficult>
<bndbox>
<xmin>{ rect_left }</xmin>
<ymin>{ rect_top }</ymin>
<xmax>{ rect_right }</xmax>
<ymax>{ rect_bottom }</ymax>
</bndbox>
</object>
</annotation>
Where:
project_name
- user-defined project name
image_name
- name of the photo file
label_name
- selected label name
rect_left
- absolute horizontal distance between the left edge of the image and the left edge of the rect in pixels
rect_top
- absolute vertical distance between the top edge of the image and the top edge of the rect in pixels
rect_right
- absolute horizontal distance between the left edge of the image and the right edge of the rect in pixels
rect_bottom
- absolute vertical distance between the top edge of the image and the bottom edge of the rect in pixels
image_width
- absolute image width in pixels
image_height
- absolute image height in pixels
Example:
<annotation>
<folder>my-project-name</folder>
<filename>000007.jpg</filename>
<path>/my-project-name/000007.jpg</path>
<source>
<database>Unspecified</database>
</source>
<size>
<width>1280</width>
<height>960</height>
<depth>3</depth>
</size>
<object>
<name>kiwi</name>
<pose>Unspecified</pose>
<truncated>Unspecified</truncated>
<difficult>Unspecified</difficult>
<bndbox>
<xmin>208</xmin>
<ymin>486</ymin>
<xmax>497</xmax>
<ymax>718</ymax>
</bndbox>
</object>
<object>
<name>banaba</name>
<pose>Unspecified</pose>
<truncated>Unspecified</truncated>
<difficult>Unspecified</difficult>
<bndbox>
<xmin>643</xmin>
<ymin>118</ymin>
<xmax>1178</xmax>
<ymax>799</ymax>
</bndbox>
</object>
</annotation>
Single CSV file
example of CSV file
Schema:
label_name,rect_left,rect_top,rect_width,rect_height,image_name,image_width,image_height
Where:
label_name
- selected label name
rect_left
- absolute horizontal distance between the left edge of the image and the left edge of the rect in pixels
rect_top
- absolute vertical distance between the top edge of the image and the top edge of the rect in pixels
rect_width
- absolute rect width in pixels
rect_height
- absolute rect height in pixels
image_width
- absolute image width in pixels
image_height
- absolute image height in pixels
Example:
banana,491,164,530,614,000000.jpg,1280,960
banana,462,245,466,353,000001.jpg,1280,960
banana,542,477,587,375,000001.jpg,1280,960
banana,636,109,561,695,000007.jpg,1280,960
kiwi,198,477,317,251,000007.jpg,1280,960
kiwi,558,423,219,222,000008.jpg,1280,960
kiwi,758,360,252,236,000008.jpg,1280,960