In this issue I got this answer but it’s not clear, could you explain this answer, I cannot write anythig to old issue.
-
Deepstream-app demo cannot support dewarper with v4l2 source now. If you want to support it, you need to implement that in our open source code by yourself.
-
If you want to use deepstream_dewarper_test app, please add the patch below to test it on your end.
diff
diff --git a/deepstream_dewarper_test.c.bk b/deepstream_dewarper_test.c
index a7c39fa…179c630 100644
— a/deepstream_dewarper_test.c.bk
+++ b/deepstream_dewarper_test.c
@@ -119,6 +119,7 @@ cb_newpad (GstElement * decodebin, GstPad * decoder_src_pad, gpointer data)
/* Need to check if the pad created by the decodebin is for video and not
* audio. /
if (!strncmp (name, “video”, 5)) {
/ Link the decodebin pad only if decodebin has picked nvidia
* decoder plugin nvdec_*. We do this by checking if the pad caps contain
* NVMM memory features. */
@@ -132,6 +133,12 @@ cb_newpad (GstElement * decodebin, GstPad * decoder_src_pad, gpointer data)
gst_object_unref (bin_ghost_pad);
} else {
g_printerr (“Error: Decodebin did not pick nvidia decoder plugin.\n”);
-
GstPad *bin_ghost_pad = gst_element_get_static_pad (source_bin, "src");
-
if (!gst_ghost_pad_set_target (GST_GHOST_PAD (bin_ghost_pad),
-
decoder_src_pad)) {
-
g_printerr ("Failed to link decoder src pad to source bin ghost pad\n");
-
}
-
}gst_object_unref (bin_ghost_pad);
Also there is such a config BUT I couldn’t find focal length value, I have fx and fy datas from opencv but I don’t understand which data should I put for focal length, here is the txt:
[property]
#dewarp-dump-frames=10
output-width=640
output-height=480
num-batch-buffers=1
[surface0]
# 1=PushBroom, 2=VertRadCyl, 3=PerspectivePerspective
projection-type=3
width=640
height=480
focal-length=599.412594
#src-fov=180
#top-angle=30
#bottom-angle=-30
distortion=-0.55161198;0.35238808;-0.03057694;-0.00375653;-0.14300627
src-x0=314.90417722
src-y0=239.37037502
# 0=cudaAddressModeClamp, 1=cudaAddressModeBorder
#cuda-address-mode=0
ALSO distortion datas DO NOT calibrate in deepstream. Don’t know why.
I serached it and don’t get it focal length calculation in this , that’s why I am askig again? Do I need to divide them?
There is no update from you for a period, assuming this is not an issue anymore. Hence we are closing this topic. If need further support, please open a new one. Thanks
Is your source still the format of v4l2? We cannot support v4l2 source for dewarper in deepstream-app demo. If you want to support it, you need to implement that in our open source code by yourself.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.