Dewarper is not calibrating

In this issue I got this answer but it’s not clear, could you explain this answer, I cannot write anythig to old issue.

  1. 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.

  2. If you want to use deepstream_dewarper_test app, please add the patch below to test it on your end.


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:


# 1=PushBroom, 2=VertRadCyl, 3=PerspectivePerspective
# 0=cudaAddressModeClamp, 1=cudaAddressModeBorder

ALSO distortion datas DO NOT calibrate in deepstream. Don’t know why.

Please refer to this topic:

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.