semsegdatadescritption
semsegdatadescritption ¶
Module for SemSegClassInfo and SemSegDataDescription
Classes¶
SemSegClassInfo
dataclass
¶
Class for (target or output) class information (name and color of mask image)
Parameters:
-
color
(List[int]
) –Color as list of three uint8 values (rgb) or -1 as any value. e.g. [-1, 255, -1] will look for 255 in the g-channel and ignore r- and b-channel.
-
name
(str
) –Name of the class
SemSegDataDescription
dataclass
¶
Bases: InputImageDataDescription
, OutputImageDataDescription
DataDescription for SemSeg data
Parameters:
-
classes
(List[SemSegClassInfo]
) –List[SemSegClassInfo] Each entry is an initialized SemSegClassInfo, for which the name (str) and color (List[int]) must be present. The index in output array (third axis) is defined by the order of the classes list. Usually the color has to be a list of length 3 with uint8 values. The only exception is the usage of -1 as any value. e.g. [-1, 255, -1] will look for 255 in the g-channel and ignore r- and b-channel.
Functions¶
create_number_semseg_datadescription ¶
Creates a list of SemSegClassInfo for the number dataset