simaaiboxcreator
This section describes a GStreamer plugin named simaaiboxcreator.
Brief Description
This plugin is an aggregator plugin designed to process a bounding box. The plugin takes the softmax and sigmoid outputs and transforms the coordinates to create a set of BBOX structures. These structures, representing bounding boxes with associated class IDs, scores, and coordinates, are then available for further processing.
Config JSON Parameters
width: frame width height: frame height num_boxes: total data len (100) num_classes: total number of classes (92) car_only: Enable to detect cars only
{
"version": 0.1,
"node_name": "bbox",
"memory": {
"cpu": 0,
"next_cpu": 0
},
"system": {
"out_buf_queue": 1,
"debug": 0,
"dump_data": 1
},
"params": {
"width": 1280,
"height": 720,
"num_boxes": 100,
"num_classes": 92,
"car_only": 1
},
"buffers": {
"input": [
{
"name": "sigmoid",
"size": 1600,
"order": 0,
"offset": 0,
"copy_bytes": 1600
},
{
"name": "softmax2d",
"size": 36800,
"order": 1,
"offset": 0,
"copy_bytes": 36800
}
],
"output": {
"size": 2400
}
}
}
Example Usage
1typedef struct { unsigned int x1; // top-left unsigned int y1; unsigned int w; // width and height unsigned int h; float score; unsigned int class_id; // channel in heatmap } BBOX;
gst-inspect-1.0
Output
1Plugin Details:
2Name simaaiboxcreator
3Description
4Filename
5Version
6License LGPL
7Source module gst-plugins-sima
8Binary package
9Origin URL https://bitbucket.org/sima-ai/gst-plugins-sima
10
11simaaiboxcreator: SiMa.ai simaaiboxcreator element
12
131 features:
14+-- 1 elements
Note
Please refer to simaaiboxcreator’s README file for more information.