<div dir="auto">Thank you very much!<div dir="auto">You have good day today!</div><div dir="auto"><br></div><div dir="auto">Thanks</div><div dir="auto">Sincerely</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">2023년 3월 3일 (금) 오후 9:10, Marianna Smidth Buschle <<a href="mailto:msb@qtec.com">msb@qtec.com</a>>님이 작성:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<p>You will have to write a small python app for that, you should be
able to find some tutorials on that.<br>
(fx
<a href="https://lifestyletransfer.com/how-to-use-gstreamer-appsink-in-python/" target="_blank" rel="noreferrer">https://lifestyletransfer.com/how-to-use-gstreamer-appsink-in-python/</a>)<br>
</p>
<p>If your camera only provides YUYV, you will have to convert to
BGR (opencv expects BGR).</p>
<p>So something like: <br>
</p>
<pre style="padding:1.6em;margin:0px 0px 1.6em;box-sizing:inherit;overflow:auto;font-family:"Courier 10 Pitch",Courier,monospace;font-size:0.9375rem;background:rgb(238,238,238);line-height:1.6;max-width:100%;color:rgb(85,85,85);font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial"><code style="padding:0px;margin:0px;box-sizing:inherit;font-family:Monaco,Consolas,"Andale Mono","DejaVu Sans Mono",monospace;font-size:0.9375rem">"v4l2src ! videoconvert ! \
capsfilter caps=video/x-raw,format=BGR ! \
appsink emit-signals=True"</code></pre>
<p>Alternatively if you have gstreamer enabled in opencv you can do
something like:</p>
<pre style="font-family:Menlo,Monaco,"Courier New",monospace;font-size:12.025px;margin:0px 0px 18px;background-color:rgb(245,245,245);padding:2px;color:rgb(51,51,51);border-radius:4px;display:block;line-height:18px;border:1px solid rgb(136,136,136);white-space:pre-wrap;word-break:break-all;clear:both;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial"><code style="font-family:Menlo,Monaco,"Courier New",monospace;font-size:12px;padding:0px;color:inherit;border-radius:3px;background-color:transparent;border:0px;clear:both"><span style="color:rgb(0,0,0)">cv2</span><span style="color:rgb(102,102,0)">.</span><span style="color:rgb(102,0,102)">VideoCapture</span><span style="color:rgb(102,102,0)">(</span><span style="color:rgb(0,136,0)">'videotestsrc ! video/x-raw,framerate=20/1 ! videoscale ! videoconvert ! appsink'</span><span style="color:rgb(102,102,0)">,</span><span style="color:rgb(0,0,0)"> cv2</span><span style="color:rgb(102,102,0)">.</span><span style="color:rgb(0,0,0)">CAP_GSTREAMER</span><span style="color:rgb(102,102,0)">)</span></code></pre>
<p><a href="https://answers.opencv.org/question/202017/how-to-use-gstreamer-pipeline-in-opencv/" target="_blank" rel="noreferrer">https://answers.opencv.org/question/202017/how-to-use-gstreamer-pipeline-in-opencv/</a></p>
<p><br>
</p>
<p>> But I have no idea how to make the pipe string that should
go to the gst-launch-1.0</p>
<p>Google is your friend ;P<br>
</p>
<p><br>
</p>
<p>Best Regards</p>
<p>Marianna<br>
</p>
<div>On 02.03.2023 13.00,
<a href="mailto:gstreamer-devel-request@lists.freedesktop.org" target="_blank" rel="noreferrer">gstreamer-devel-request@lists.freedesktop.org</a> wrote:<br>
</div>
<blockquote type="cite">
<pre>Message: 3
Date: Thu, 2 Mar 2023 10:54:00 +0900
From: H Jumogehn <a href="mailto:jumogehn@gmail.com" target="_blank" rel="noreferrer"><jumogehn@gmail.com></a>
To: <a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" rel="noreferrer">gstreamer-devel@lists.freedesktop.org</a>
Subject: pipe string wanted
Message-ID:
<a href="mailto:CAJp4miLc=p96bDn90HRWs3sb+36ZGvfz_ELXkm1MQOwOhwcjyg@mail.gmail.com" target="_blank" rel="noreferrer"><CAJp4miLc=p96bDn90HRWs3sb+36ZGvfz_ELXkm1MQOwOhwcjyg@mail.gmail.com></a>
Content-Type: text/plain; charset="utf-8"
Hello,
I?d like to use gstreamer to capture video images(RGB/BGR), frames(RGB/BGR)
from my V4L2 camera.
The output of v4l2-ctl is shown below:
$ vl42ctl -d /dev/video0 --all
Driver Info (not using libv4l2):
Driver name : basa
Card type : FPD1-0103
Bus info : PCI:0000:09:00.0
Driver version: 5.4.143
Capabilities : 0x84200001
Video Capture
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x04200001
Video Capture
Streaming
Extended Pix Format
Priority: 2
Video input : 0 (FPD1-0103: ok)
Format Video Capture:
Width/Height : 1920/1080
Pixel Format : 'YUYV'
Field : None
Bytes per Line : 3840
Size Image : 4147232
But I have no idea how to make the pipe string that should go to the
gst-launch-1.0
Could you suggest to me a good gstreamer pipe string for my camera?
I?d like to use as much H/W accellerations as possible that the Nvidia
RTX2080 provides.
The source would be the camera above.
The sink should be the appsink. But with the gst-launch-1.0 the sink can be
fakesink.
The application that receives data from the appsink must receive RGB or BGR
data and upon this data opencv will be used and applied to process many
vision algorithms.
Thank you!</pre>
</blockquote>
<pre cols="72">--
Best regards / Med venlig hilsen
“Marianna Smidth Buschle”</pre>
</div>
</blockquote></div>