Semantic Segmentation (png images)

Export archive directory and file structure

1
project_folder
2
|-- label_classes.json
3
|-- dataset1_name
4
|-- image1.png
5
|-- image2.png
6
|-- ...
7
|-- dataset2_name
8
|-- image1.png
9
|-- image2.png
10
|-- ...
11
|-- ...
Copied!

label_classes.json structure

The file contains the definition of all label classes and corresponding pixel values of the images
1
[
2
{
3
"png_index": 1,
4
"class_name": "bedclothes",
5
"color": "#4df3ce",
6
"class_type": "object"
7
},
8
{
9
"png_index": 2,
10
"class_name": "building",
11
"color": "#4c4ffc",
12
"class_type": "object"
13
},
14
{...},
15
{...}
16
]
Copied!

The Label Class object

Attributes

png_index integer Pixel index
class_name string The name of the class
color string Associated with the label class color, in format #RRGGBBAA
class_type string Class type, "object" or "background"

Image description

All the images contain a single channel and are stored as 8-bit pixels, black and white. 0 - is a background.
Can’t find what you are looking for in our documentation? Get in contact with me, Herbert Janssen, community manager here at Hasty by emailing [email protected] if you have any questions or need help.
Last modified 1yr ago