<div dir="ltr"><div><div><div><div><div><div>Hi,<br><br></div>Due to an issue in opencv4tegra, I can not capture from my UVC webcam using OpenCV. To get round this problem, I'm trying to use GStreamer and its Python bindings to capture jpeg images from the webcam.<br><br></div>To do that, I adapt<a href="https://gist.githubusercontent.com/willpatera/7984486/raw/54b71f20b6a055839e44d59663ee4783042305cf/gst-appsink-opencv.py"> this tutorial</a> with a custom pipeline.<br></div>Currently my pipeline looks like this :<br><br></div>v4l2src ! image/jpeg,width=1920,height=1080 ! jpegdec ! videoconvert ! appsink name=sink caps=video/x-raw, format=(string){BGR, GRAY8}; video/x-bayer,format=(string){rggb,bggr,grbg,gbrg}<br><br></div><div>(The function that convert gstreamer to opencv array is exactly the same as in the tutorial)<br></div><div><br></div>It works (maybe the colors are not the good ones, but I'm not sure), but I'm wondering if there is a way to retrieve the jpeg images directly from gstreamer ? By this way, I will decode them using OpenCV and I hope that it could, at least, limits processing.<br><br></div>Thank you in advance.<br clear="all"><div><div><div><div><div><div><div><br>-- <br><div class="gmail_signature"><div dir="ltr">Damien Picard<br><a href="http://www.editions-eni.fr/livres/gwt-google-web-toolkit-developpez-des-applications-internet-riches-ria-en-java/.97a1a26e7d5be94763fc45ac2a1e961a.html" target="_blank">Expert GWT</a><br>Mob : 06 11 51 47 78</div></div>
</div></div></div></div></div></div></div></div>