Skip to content

tiovxdofviz

Marco Herrera edited this page Jul 8, 2022 · 2 revisions

TIOVX DOF Viz

tiovxdofviz is used to convert a Dof Flow Vector(VX_DF_IMAGE_U32) to RGB format for visualization.

Hierarchy

GObject
 ╰──GInitiallyUnowned
     ╰──GstObject
         ╰──GstElement
             ╰──GstBaseTransform
                 ╰──GstTIOVXSiso
                     ╰──GstTIOVXDofViz

Pad templates

sink

      application/x-dof-tiovx
                  width: [ 1, 8192 ]
                 height: [ 1, 8192 ]
      application/x-dof-tiovx(memory:batched)
                  width: [ 1, 8192 ]
                 height: [ 1, 8192 ]
           num-channels: [ 1, 16 ]

Availability – always

Direction – sink

Object type – GstPad

src

      video/x-raw
                 format: { (string)RGB }
                  width: [ 1, 8192 ]
                 height: [ 1, 8192 ]
      video/x-raw(memory:batched)
                 format: { (string)RGB }
                  width: [ 1, 8192 ]
                 height: [ 1, 8192 ]
           num-channels: [ 1, 16 ]

Availability – always

Direction – src

Object type – GstPad

Properties

confidence-threshold

Confidence threshold for dof visualization

Unsigned Integer. Range: 0 - 15 Default value : 9

in-pool-size

Number of buffers to allocate in input pool

Unsigned Integer. Range: 2 - 16 Default value : 2

name

The name of the object

String Default value : "tiovxdofviz0"

out-pool-size

Number of buffers to allocate in output pool

Flags : Read / Write

Unsigned Integer. Range: 2 - 16 Default value : 2

parent

The parent of the object

Flags : Read / Write

GstObject Default value : N/A

qos

Handle Quality-of-Service events Flags : Read / Write

Boolean Default value : false

target

TIOVX target to use by this element

Flags : Read / Write

Enum

Default value : DSP-1 (0) Enum "GstTIOVXDofVizTarget

(0): DSP-1 - DSP instance 1, assigned to C66_0 core

(1): DSP-2 - DSP instance 1, assigned to C66_1 core

Pipeline examples

Single dofviz

gst-launch-1.0 videotestsrc num-buffers=10 ! video/x-raw, width=1280, height=720, format=NV12 ! tiovxpyramid ! application/x-pyramid-tiovx, format=GRAY8 ! tee name=tee ! queue ! tiovxdof name=dof ! tiovxdofviz ! filesink location={} tee. ! tiovxdelay delay-size=1 ! dof.delayed_sink

Batched processing

gst-launch-1.0 videotestsrc num-buffers=10 ! "video/x-raw, height=1024, width=1024" ! tiovxpyramid ! "application/x-pyramid-tiovx, format=GRAY8, scale=0.5, levels=2" ! tee name=tee tee. ! queue ! tiovxdelay delay-size=1 ! mux_a.  tee. ! queue ! mux_b. videotestsrc num-buffers=10 pattern=ball ! "video/x-raw, height=1024, width=1024" ! tiovxpyramid ! "application/x-pyramid-tiovx, format=GRAY8, scale=0.5, levels=2" ! tee name=tee2 tee2. ! queue ! tiovxdelay delay-size=1 ! mux_a. tiovxmux name=mux_a ! dof.delayed_sink tee2. ! queue ! mux_b. tiovxmux name=mux_b ! dof.sink tiovxdof name=dof ! tiovxdofviz ! tiovxdemux name=demux demux. ! queue ! filesink location={} demux. ! queue !  filesink location={}