Jump to content

Spherical Video PTZ/User Guide/Quick Start Guide: Difference between revisions

no edit summary
mNo edit summary
No edit summary
Line 20: Line 20:
'''2.''' This example demonstrates the use of the Spherical Video PTZ engine to convert equirectangular images into rectilinear format. This command processes example_image.jpg, converting it from an equirectangular format to a rectilinear view. But you can use any other reference image as long as it is equirectangular. Run the example as:
'''2.''' This example demonstrates the use of the Spherical Video PTZ engine to convert equirectangular images into rectilinear format. This command processes example_image.jpg, converting it from an equirectangular format to a rectilinear view. But you can use any other reference image as long as it is equirectangular. Run the example as:
<syntaxhighlight lang=bash line>
<syntaxhighlight lang=bash line>
cd $LIBPANORAMA_PATH
cd $LIBPANORAMA_PATH/libpanorama
./builddir/examples/equirectangular_to_rectilinear_npp $SAMPLES/example_image.jpg  
./builddir/examples/equirectangular_to_rectilinear $SAMPLES/example_image.jpg  
</syntaxhighlight>
</syntaxhighlight>


Line 34: Line 34:
** Up: <code>8</code>
** Up: <code>8</code>
** Down: <code>2</code>
** Down: <code>2</code>
'''4.''' press the <code>Esc</code> key to exit the program


=== Spherical Video PTZ Engine  ===
=== Spherical Video PTZ Engine  ===
Line 60: Line 62:
To pan a test video source 90 degrees, you can use the following pipeline:
To pan a test video source 90 degrees, you can use the following pipeline:
<syntaxhighlight>
<syntaxhighlight>
gst-launch-1.0 videotestsrc ! rrpanoramaptz pan=90 ! fakesink
gst-launch-1.0 videotestsrc ! rrpanoramaptz zoom=2 ! fakesink
</syntaxhighlight>
</syntaxhighlight>


264

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.