• Hardware Platform (Jetson / GPU)
xavier • DeepStream Version
6.0 • JetPack Version (valid for Jetson only)
4.6 • TensorRT Version
TRT 8.0.1 • NVIDIA GPU Driver Version (valid for GPU only)
10.2
I have two video sources one is 360 camera and another one is a 180 fisheye camera.
I like to apply nvvideoconvert’s src-crop property to 360 camera only.
What I did was
/* create nv dewarper element */
nvvideoconvert = gst_element_factory_make ("nvvideoconvert", NULL);
g_object_set (G_OBJECT (nvvideoconvert), "src-crop", "0:0:500:500", NULL);
if (!nvvideoconvert) {
g_printerr ("Failed to create nvvideoconvert element. Exiting.\n");
return -1;
}
No can’t because my video source is as shown in the below picture.
Left is 360 image and right is one of fisheyes images.
I need to crop 360 image at the source before inference.
Crop 360 first, then dewrap and infer.
I am using dewrap sample.
So I need to crop at source.
All the parameters for configuration file given for deepstream-app are here.
But don’t have src-crop property.
How can I set the parameter in config file?
from your post, there is only one video, the left part is 360 images, the right part is fisheyes image, after decoding video, using “src-crop”, “0:0:500:500” will crop the 360 images.
please debug like this, gst-launch-1.0 filesrc location=blueCar.jpeg ! jpegdec ! ‘video/x-raw,format=I420’ ! nvvideoconvert src-crop=“0:0:500:500” ! jpegenc ! filesink location=7.jpeg
This command gst-launch-1.0 filesrc location=blueCar.jpeg ! jpegdec ! ‘video/x-raw,format=I420’ ! nvvideoconvert src-crop=“0:0:500:500” ! jpegenc ! filesink location=7.jpeg, how can I add inference in the command? Any sample?