tags

Tags are used to provide information about a certain data file, which may be specified in the tags entry in the JSON file.

How to use?

In VisionAI format, the semantic segmentation RLE format are using tags information to indicate every pixel belonging class.

When your data not included segmentation, it is not necessary to provide tags information.

Schema

Example

"tags": {
    "7fbac044-c160-11ed-afa1-0242ac120002": {
        "ontology_uid": "",
        "type": "semantic_segmentation_RLE",
        "tag_data": {
            "vec": [{
                "type": "values",
                "val": ["background", "car", "sky", "vegetation"],
                "name": ""
            }]
        }
    }
}

The RLE format value in the VisionAI format is a compressed representation of the pixel-wise information in an image. For example, if the mask pixels from left to right are "car, car, car, sky, sky, sky, sky", the corresponding RLE value will be

#3V1#4V2

In this example, the numbers "3" and "4" represent the counts of consecutive pixels for the "car" and "sky" classes, respectively. The class numbers are indicated by "V1" and "V2", which are defined in the values.

tags {}

tag_data {}


Use Case

semantic segmentation

To describe a semantic segmentation dataset with one camera sensor:

  • sensor: camera (#camera1)

  • ontology

    • background

    • person

    • bicycle

    • car

    • motorcycle

    • airplane

    • bus

    • train

    • truck

    • boat

    • trafficlight

Example Code

Last updated