Labels acquisition format
Edge Impulse Exporter Format (info.labels
)
info.labels
)The Edge Impulse Exporter acquisition format provides a simple and intuitive way to store files and associated labels (info.labels
). Folders containing data in this format will take the following structure:
The subdirectories contain files in any Edge Impulse-supported format (see above). Each file represents a sample and is associated with its respective labels in the info.labels
file.
The info.labels
file (can be located in each subdirectory or at the folder root) provides detailed information about the labels. The file follows a JSON format, with the following structure:
version
: Indicates the version of the label format.files
: A list of objects, where each object represents a supported file format and its associated labels.path
: The path or file name.category
: Indicates whether the image belongs to the training or testing set.label
(optional): Provides information about the labeled objects.type
: Specifies the type of label -unlabeled
,label
,multi-label
label
(optional): The actual label or class name of the sample.labels
(optional): The labels in the multi-label format:label
: Label for the given period.startIndex
: Timestamp in milliseconds.endIndex
: Timestamp in milliseconds.
metadata
(Optional): Additional metadata associated with the image, such as the site where it was collected, the timestamp or any useful information.boundingBoxes
(Optional): A list of objects, where each object represents a bounding box for an object within the image.label
: The label or class name of the object within the bounding box.x
,y
: The coordinates of the top-left corner of the bounding box.width
,height
: The width and height of the bounding box.
Edge Impulse Object Detection Labeling Format (bounding_boxes.labels
)
bounding_boxes.labels
)Looking for more object detection formats?
The Edge Impulse object detection acquisition format provides a simple and intuitive way to store images and associated bounding box labels. Folders containing data in this format will take the following structure:
The subdirectories contain image files in JPEG or PNG format. Each image file represents a sample and is associated with its respective bounding box labels in the bounding_boxes.labels
file.
The bounding_boxes.labels
file in each subdirectory provides detailed information about the labeled objects and their corresponding bounding boxes. The file follows a JSON format, with the following structure:
version
: Indicates the version of the label format.files
: A list of objects, where each object represents an image and its associated labels.path
: The path or file name of the image.category
: Indicates whether the image belongs to the training or testing set.(optional)
label
: Provides information about the labeled objects.type
: Specifies the type of label (e.g., a single label).label
: The actual label or class name of the object.
(Optional)
metadata
: Additional metadata associated with the image, such as the site where it was collected, the timestamp or any useful information.boundingBoxes
: A list of objects, where each object represents a bounding box for an object within the image.label
: The label or class name of the object within the bounding box.x
,y
: The coordinates of the top-left corner of the bounding box.width
,height
: The width and height of the bounding box.
bounding_boxes.labels
example:
Edge Impulse Multi-labels Labeling Format (structured_labels.labels
)
structured_labels.labels
)Want to learn more about Multi-labels feature?
See the dedicated documentation page: Multi-labels (Time-series)
If you want to use the Ingestion API, you need to use the structured_labels.labels
format:
The structure and organization are designed to provide clear, index-based labeling for various segments of a data file.
The file structured_labels.labels
follows this structure:
version
: Indicates the version of the label format.type
: Specifies the type of labeling method - usestructured-labels
.structuredLabels
: This is an object that maps file names to arrays of labels. Where each key represents the name of a file, and its value is an array of objects, each containing:startIndex
andendIndex
(milliseconds): These keys define the start and end of the segment within the file that the label applies to, allowing for precise segmentation of data. Note that no missing values are allowed. e.g. the next segment after"endIndex": 300
needs to be"startIndex": 301
label
: A string that represents the label assigned to the range betweenstartIndex
andendIndex
.
structured_labels.labels
example:
You can have a look at this tutorial for a better understanding: Ingest multi-label data with Edge Impulse API.
Last updated