Using cameraundistort plugin with calculated distortion coefficient

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Using cameraundistort plugin with calculated distortion coefficient

yasoua

I need someone please to explain to me how can i use distortion coefficient
already calculated using a specific python code  ( dist [[7.33183864e+03
1.52395233e-01 2.53983049e+00 2.20587897e+00
  2.61869010e-06]] ) with cameraundistort plugin.

I have seen the following example pipeline in the documentation :
 
gst-launch-1.0 -v v4l2src ! videoconvert ! cameraundistort settings="???" !
autovideosink

But i dindn't get what kind of argument i should give to settings , is this
where i should put my calculated distortion coefficient or my matrix?

Thanks in advance



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Using cameraundistort plugin with calculated distortion coefficient

yasoua
After some reaserches , i found this method to implement setting property for
cameraundistort plugin:

$DIST_COEFF="{\"k1\":7.33183864e+03,\"k2\":1.52395233e-01,\"p1\":2.53983049e+00,\"p2\":2.20587897e+00,\"k3\":2.61869010e-06}"

$gst-launch-1.0 filesrc location=ChessUOledS_It2.JPG   ! jpegdec !
videoconvert  ! cameraundistort settings="$DIST_COEFF" !  videoconvert  !
imagefreeze !  autovideosink

I want to make sure that is correct, if it is correct why i get the
following error when i run the pipeline :

Définition du pipeline à PAUSED...
Le pipeline est en phase de PREROLL…
Caught SIGSEGV
Spinning.  Please run 'gdb gst-launch-1.0 2728080' to continue debugging,
Ctrl-C to quit, or Ctrl-\ to dump core.
ERREUR : de l’élément
/GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstXvImageSink:autovideosink0-actual-sink-xvimage :
Output window was closed
Information de débogage supplémentaire :
xvimagesink.c(554): gst_xv_image_sink_handle_xevents ():
/GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstXvImageSink:autovideosink0-actual-sink-xvimage
ERREUR : le pipeline refuse de passer en phase de préparation.
Définition du pipeline à NULL…




Could someone help me please.







--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel