<div dir="ltr"><div><div><div><div><div>Thnx! these were the eye openers I was looking for :)<br><br></div>I updated gstreamer and found the wonky use of capitals and lowercase<br></div>x-es and Y-s with gst-inspect-1.0 and it works ! Oh and you even <br></div>quoted the entire working chain haha I should read ahead next time :)<br><br></div>Ok I'll check out this standard perspective, but it doesn't seem to pop up:<br></div><div><br>gst-inspect-1.0 perspective<br>No such element or plugin 'perspective'<br><br><br></div><div>or you meant one has to turn this on manually when compiling?<br><br></div><div>Jos<br></div><div><div><div><div><div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 2, 2017 at 8:47 AM, Antonio Ospite <span dir="ltr"><<a href="mailto:ao2@ao2.it" target="_blank">ao2@ao2.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wed, 1 Feb 2017 14:27:54 -0800 (PST)<br>
josvanr <<a href="mailto:josvanr@gmail.com">josvanr@gmail.com</a>> wrote:<br>
<br>
> Hello!<br>
><br>
<br>
Hi,<br>
<span class="gmail-"><br>
> I'm trying to de-perspective the images from my webcam with the frei0r<br>
> perspective filter. I'm trying this:<br>
><br>
> gst-launch -v v4l2src device=/dev/webcam1<br>
> !  video/x-raw-yuv,width=1600,<wbr>height=1200 !  ffmpegcolorspace<br>
> !  frei0r-filter-perspective, top-left-X=0, top-left-Y=0,<br>
> top-right-X=0.1, top-right-Y=0.1, bottom-left-X=0.2, bottom-left-Y=1,<br>
> bottom-right-X=0.8, bottom-right-Y=1 ! ffmpegcolorspace ! xvimagesink<br>
><br>
<br>
</span>Apart from the fact that you should really update to GStreamer 1.x,<br>
there are a couple of issues in the pipeline:<br>
<br>
 1. extra commas in the part referring to the frei0r-filter-perspective<br>
    element and its properties, remove them;<br>
<br>
 2. the X properties apparently need to be spelled with a lower case 'x'<br>
    (e.g. top-left-x instead of top-left-X and so on), not sure why this<br>
    is tho.<br>
<span class="gmail-"><br>
> There are no error massages, but there doesn't seem to be any<br>
> perspectiving going on.<br>
<br>
</span>gst-launch-1.0 does give errors, update if you can.<br>
<span class="gmail-"><br>
> I'm not sure this is the way to invoke the filter. How do I find out<br>
> how to do that?<br>
<br>
</span>gst-inspect-1.0 frei0r-filter-perspective<br>
<span class="gmail-"><br>
> I can remember looking at the sources a couple of years ago and thats<br>
> how i came up with these parameters.  But not sure if this is<br>
> correct.....<br>
<br>
</span>This pipeline seems to work here:<br>
<br>
  gst-launch-1.0 -v \<br>
    videotestsrc ! \<br>
    videoconvert ! \<br>
    frei0r-filter-perspective \<br>
      top-left-x=0 \<br>
      top-left-Y=0 \<br>
      top-right-x=0.1 \<br>
      top-right-Y=0.1 \<br>
      bottom-left-x=0.2 \<br>
      bottom-left-Y=1 \<br>
      bottom-right-x=0.8 \<br>
      bottom-right-Y=1 ! \<br>
    videoconvert ! \<br>
    autovideosink<br>
<br>
and BTW there is also a standard "perspective" element in GStreamer 1.x<br>
which accepts a "matrix" property, IIRC it can only be set via source<br>
code and not via gst-launch-1.0 but it's a more convenient form if you<br>
are reusing a perspective matrix created by some other means (e.g.<br>
OpenCV), check out "gst-inspect-1.0 perspective", and<br>
<a href="https://git.ao2.it/experiments/gstreamer.git/blob/HEAD:/c/gst-perspective-example/gst-perspective-example.c" rel="noreferrer" target="_blank">https://git.ao2.it/<wbr>experiments/gstreamer.git/<wbr>blob/HEAD:/c/gst-perspective-<wbr>example/gst-perspective-<wbr>example.c</a><br>
<br>
Ciao ciao,<br>
   Antonio<br>
<span class="gmail-HOEnZb"><font color="#888888"><br>
--<br>
Antonio Ospite<br>
<a href="https://ao2.it" rel="noreferrer" target="_blank">https://ao2.it</a><br>
<a href="https://twitter.com/ao2it" rel="noreferrer" target="_blank">https://twitter.com/ao2it</a><br>
<br>
A: Because it messes up the order in which people normally read text.<br>
   See <a href="http://en.wikipedia.org/wiki/Posting_style" rel="noreferrer" target="_blank">http://en.wikipedia.org/wiki/<wbr>Posting_style</a><br>
Q: Why is top-posting such a bad thing?<br>
</font></span></blockquote></div><br></div></div></div></div></div></div></div></div></div>