# ssdobjectdetector

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
                        ╰──GstSsdTensorDec
                            ╰──ssdobjectdetector

## Factory details

Authors: – Aaron Boxer , Marcus Edel

Classification: – `Tensordecoder/Video`

Rank – none

Plugin – tensordecoders

Package – GStreamer Bad Plug-ins

## Pad Templates

### `sink`

    video/x-raw:
            tensors: "tensorgroups\,\ ssd-mobilenet-v1-variant-1-out\=\(/uniquelist\)\{\ \(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\"\ \}\;"

Presence – always

Direction – sink

Object type – GstPad

### `src`

    video/x-raw:

Presence – always

Direction – src

Object type – GstPad

## Properties

### label-file

    “label-file” gchararray

Label file

Flags : Read / Write

Default value : NULL

### score-threshold

    “score-threshold” gfloat

Threshold for deciding when to remove boxes based on score

Flags : Read / Write

Default value : 0.3

### 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

The results of the search are