Difference between revisions of "CUDA ISP for NVIDIA Jetson/Examples/GStreamer usage"
(→cudashift) |
(→cudashift) |
||
Line 29: | Line 29: | ||
GST_DEBUG=WARNING,*shift*:LOG gst-launch-1.0 -ve v4l2src io-mode=userptr ! 'video/x-bayer, bpp=10, format=rggb' ! cudashift shift=5 ! fakesink | GST_DEBUG=WARNING,*shift*:LOG gst-launch-1.0 -ve v4l2src io-mode=userptr ! 'video/x-bayer, bpp=10, format=rggb' ! cudashift shift=5 ! fakesink | ||
</source> | </source> | ||
+ | <br> | ||
+ | <br><br> | ||
+ | [[File:Shiftpipeline.jpg|800px|frameless|center|CUDA ISP library ]] | ||
+ | <br> | ||
+ | <br><br> | ||
=== cudadebayer === | === cudadebayer === |
Revision as of 13:40, 15 March 2023
CUDA ISP for NVIDIA Jetson | |
---|---|
CUDA ISP for NVIDIA Jetson Basics | |
|
|
Getting Started | |
|
|
User Manual | |
|
|
GStreamer | |
|
|
Examples | |
|
|
Performance | |
|
|
Contact Us | |
|
Contents
General
CUDA ISP provides three different GStreamer elements to apply the different algorithms to raw image data coming from a camera sensor. The 3 elements are:
- cudashift
- cudadebayer
- awb
In the following sections you can see examples on how to use this elements.
cudashift
- Input:
- Bayer 10/12/14/16
- Output
- Bayer 8
- Property
- shift: number of bits to shift right per pixel.
GST_DEBUG=WARNING,*shift*:LOG gst-launch-1.0 -ve v4l2src io-mode=userptr ! 'video/x-bayer, bpp=10, format=rggb' ! cudashift shift=5 ! 'video/x-bayer, bpp=8, format=rggb' ! cudadebayer ! 'video/x-raw, format=RGBA' ! fakesink
The following pipeline recieves a bayer 10 image from a camera sensor, applies a shifting with value 5 and outputs a bayer 8 image.
GST_DEBUG=WARNING,*shift*:LOG gst-launch-1.0 -ve v4l2src io-mode=userptr ! 'video/x-bayer, bpp=10, format=rggb' ! cudashift shift=5 ! fakesink
Error creating thumbnail: Unable to save thumbnail to destination
cudadebayer
gst-launch-1.0 -ve v4l2src io-mode=userptr ! 'video/x-bayer, bpp=10, width=3840, height=2160' ! cudadebayer ! fakesink
gst-launch-1.0 -ve v4l2src io-mode=userptr ! 'video/x-bayer, bpp=10, width=3840, height=2160' ! cudadebayer ! 'video/x-raw, format=I420' ! fakesink
gst-launch-1.0 -ve v4l2src io-mode=userptr ! 'video/x-bayer, bpp=10, width=3840, height=2160' ! cudadebayer ! queue ! videoconvert ! 'video/x-raw' ! videoscale ! 'video/x-raw, width=640, height=480' ! ximagesink display=localhost:10.0 sync=false
GST_DEBUG=WARNING,*debayer*:LOG gst-launch-1.0 -ve v4l2src io-mode=userptr ! 'video/x-bayer, bpp=10, format=rggb' ! cudashift shift=5 ! 'video/x-bayer, bpp=8, format=rggb' ! cudadebayer ! 'video/x-raw, format=RGBA' ! fakesink
cudaawb
gst-launch-1.0 -ve v4l2src io-mode=userptr ! 'video/x-bayer, bpp=10, width=3840, height=2160' ! cudashift shift=0 ! cudadebayer ! cudaawb ! queue ! videoconvert ! 'video/x-raw' ! videoscale ! 'video/x-raw, width=640, height=480' ! ximagesink display=localhost:10.0 sync=false