<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hello<div class=""><br class=""></div><div class="">Yes you should be able to write an OpenCV application that captures with GStreamer and processes using CUDA. I have identified that one of the processing bottlenecks when using GStreamer video capture in OpenCV is that every buffer is copied. I’m working on a patch to remove this copy, it’s currently reviewed by the OpenCV team:</div><div class=""><br class=""></div><div class=""><a href="https://developer.ridgerun.com/wiki/index.php?title=RidgeRun_OpenCV_Fork#GStreamer_Video_Capture" class="">https://developer.ridgerun.com/wiki/index.php?title=RidgeRun_OpenCV_Fork#GStreamer_Video_Capture</a></div><div class=""><br class=""></div><div class="">Note how, for a 1080P video example, max framerate increased from 500fps to 1300fps. You’ll need to build OpenCV from source. There’s a link in that same wiki <a href="https://developer.ridgerun.com/wiki/index.php?title=Compiling_OpenCV_from_Source" class="">with instructions.</a> And yes, this applies to Python as well.</div><div class=""><br class=""></div><div class="">Please be aware that this is a work in progress and yet subject to fixes/improvements.</div><div class=""><br class=""></div><div class="">Hope it somehow helps!</div><div class="">Michael</div><div class=""><a href="http://www.ridgerun.com" class="">www.ridgerun.com</a></div><div class=""><br class=""></div><div class=""><div class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 20 Jan 2021, at 18:53, jinmc <<a href="mailto:jinmochong@gmail.com" class="">jinmochong@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hi!<br class="">I have a script that would do what I need that uses opencv, about object<br class="">detection.<br class="">But the problem is that it uses too much CPU (approximately 50%)<br class="">I want to use gstreamer with opencv, and on top of that use cuda<br class="">gpu-accelerated opencv to reduce CPU usage and use GPU instead.<br class="">If cuda usage is not possible would it still reduce CPU usage?<br class="">Would this be possible? Please give me some insight!<br class="">Also, I want to do everything in python, as the current legacy system is in<br class="">python.<br class="">Thanks!<br class=""><br class=""><br class=""><br class="">--<br class="">Sent from: <a href="http://gstreamer-devel.966125.n4.nabble.com/" class="">http://gstreamer-devel.966125.n4.nabble.com/</a><br class="">_______________________________________________<br class="">gstreamer-devel mailing list<br class=""><a href="mailto:gstreamer-devel@lists.freedesktop.org" class="">gstreamer-devel@lists.freedesktop.org</a><br class="">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel<br class=""></div></div></blockquote></div><br class=""></div></div></body></html>