Difference between revisions of "GstCUDA - Example - opencvwarp"

From RidgeRun Developer Connection
Jump to: navigation, search
(Demo example)
(Examples)
Line 7: Line 7:
  
 
== Examples ==
 
== Examples ==
 +
The following two examples will provide an introduction to the element and its capabilities. Both examples were tested on both '''Nvidia Jetson TX1''' and '''TX2''' connected to a display via HDMI and using a webcam as input video source.
  
 
=== Demo example ===
 
=== Demo example ===

Revision as of 10:13, 4 September 2020


Previous: Example: opencv Index Next: Example - opencvfilter


Nvidia-preferred-partner-badge-rgb-for-screen.png



This page is under construction.

Introduction

Examples

The following two examples will provide an introduction to the element and its capabilities. Both examples were tested on both Nvidia Jetson TX1 and TX2 connected to a display via HDMI and using a webcam as input video source.

Demo example

This example is meant to show the element capabilities. The image will be rotated in three-dimensional space and projected back to the image plane.

By running the following pipeline:

gst-launch-1.0 v4l2src ! nvvidconv ! opencvwarp demo=true ! queue ! nvvidconv ! autovideosink

you should get the result shown in the following image.

Custom example

Element properties

  • name

Name of the object.
Type: String
Flags: readable, writable
Default: "opencvwarp0"

  • parent

The parent of the object.
Type: GstObject
Flags: readable, writable

  • qos

Handle Quality-of-Service events.
Type: Boolean
Flags: readable, writable
Default: false

  • m00

Coefficient 0,0 (row, column) of the transform matrix.
Type: Double
Range: -1,797693e+308 - 1,797693e+308 Flags: readable, writable
Default: 1

  • m01

Coefficient 0,1 (row, column) of the transform matrix.
Type: Double
Range: -1,797693e+308 - 1,797693e+308 Flags: readable, writable
Default: 0

  • m02

Coefficient 0,2 (row, column) of the transform matrix.
Type: Double
Range: -1,797693e+308 - 1,797693e+308 Flags: readable, writable
Default: 0

  • m10

Coefficient 1,0 (row, column) of the transform matrix.
Type: Double
Range: -1,797693e+308 - 1,797693e+308 Flags: readable, writable
Default: 0

  • m11

Coefficient 1,1 (row, column) of the transform matrix.
Type: Double
Range: -1,797693e+308 - 1,797693e+308 Flags: readable, writable
Default: 1

  • m12

Coefficient 1,2 (row, column) of the transform matrix.
Type: Double
Range: -1,797693e+308 - 1,797693e+308 Flags: readable, writable
Default: 0

  • m20

Coefficient 2,0 (row, column) of the transform matrix.
Type: Double
Range: -1,797693e+308 - 1,797693e+308 Flags: readable, writable
Default: 0

  • m21

Coefficient 2,1 (row, column) of the transform matrix.
Type: Double
Range: -1,797693e+308 - 1,797693e+308 Flags: readable, writable
Default: 0

  • m22

Coefficient 2,2 (row, column) of the transform matrix.
Type: Double
Range: -1,797693e+308 - 1,797693e+308 Flags: readable, writable
Default: 1

  • demo

Put the element in demo mode to showcase it's capabilities. In this mode the incoming image will be rotated in the 3D space and projected back to the image plane. Will override the transformation matrix.
Type: Boolean
Flags: readable, writable
Default: false


Previous: Example: opencv Index Next: Example - opencvfilter