ssdtensordec

This element can parse per-buffer inference tensor meta data generated by an upstream inference element

Example launch command:

Test image file, model file (SSD) and label file can be found here : https://gitlab.collabora.com/gstreamer/onnx-models

GST_DEBUG=ssdtensordec:5
gst-launch-1.0 multifilesrc location=onnx-models/images/bus.jpg !
jpegdec ! videoconvert ! onnxinference execution-provider=cpu model-file=onnx-models/models/ssd_mobilenet_v1_coco.onnx !
ssdtensordec label-file=onnx-models/labels/COCO_classes.txt ! videoconvert ! autovideosink

Hierarchy

GObject
    ╰──GInitiallyUnowned
        ╰──GstObject
            ╰──GstElement
                ╰──GstBaseTransform
                    ╰──ssdtensordec

Factory details

Authors: – Aaron Boxer , Marcus Edel

Classification:Tensordecoder/Video

Rank – secondary

Plugin – tensordecoders

Package – GStreamer Bad Plug-ins

Pad Templates

sink

video/x-raw:
        tensors: "tensorgroups\,\ ssd-mobilenet-v1-variant-1-out\=\(/set\)\{\ \(caps\)\"tensor/strided\\\,\\\ tensor-id\\\=\\\(string\\\)generic-variant-1-out-count\\\,\\\ dims\\\=\\\(int\\\)\\\<\\\ \\\[\\\ 0\\\,\\\ 2147483647\\\ \\\]\\\ \\\>\\\,\\\ dims-order\\\=\\\(string\\\)row-major\\\,\\\ type\\\=\\\(string\\\)float32\"\,\ \(caps\)\"tensor/strided\\\,\\\ tensor-id\\\=\\\(string\\\)ssd-mobilenet-v1-variant-1-out-scores\\\,\\\ dims\\\=\\\(int\\\)\\\<\\\ \\\[\\\ 0\\\,\\\ 2147483647\\\ \\\]\\\,\\\ 0\\\ \\\>\\\,\\\ dims-order\\\=\\\(string\\\)row-major\\\,\\\ type\\\=\\\(string\\\)float32\"\,\ \(caps\)\"tensor/strided\\\,\\\ tensor-id\\\=\\\(string\\\)ssd-mobilenet-v1-variant-1-out-boxes\\\,\\\ dims\\\=\\\(int\\\)\\\<\\\ \\\[\\\ 0\\\,\\\ 2147483647\\\ \\\]\\\,\\\ 0\\\,\\\ 4\\\ \\\>\\\,\\\ dims-order\\\=\\\(string\\\)row-major\\\,\\\ type\\\=\\\(string\\\)float32\"\,\ \(caps\)\"tensor/strided\\\,\\\ tensor-id\\\=\\\(string\\\)ssd-mobilenet-v1-variant-1-out-classes\\\,\\\ dims\\\=\\\(int\\\)\\\<\\\ \\\[\\\ 0\\\,\\\ 2147483647\\\ \\\]\\\,\\\ 0\\\ \\\>\\\,\\\ dims-order\\\=\\\(string\\\)row-major\\\,\\\ type\\\=\\\(string\\\)float32\"\ \}\;"

Presencealways

Directionsink

Object typeGstPad


src

video/x-raw:

Presencealways

Directionsrc

Object typeGstPad


Properties

label-file

“label-file” gchararray

Label file

Flags : Read / Write

Default value : NULL

Since : 1.24


score-threshold

“score-threshold” gfloat

Threshold for deciding when to remove boxes based on score

Flags : Read / Write

Default value : 0.3

Since : 1.24


size-threshold

“size-threshold” gfloat

Threshold for deciding when to remove boxes based on proportion of the image

Flags : Read / Write

Default value : 0.9

Since : 1.26


The results of the search are