How can I use GPU methods from OpenCV library in the sample kms OpenCv Sample?

146 views
Skip to first unread message

Zorro Zombi

unread,
Feb 8, 2017, 9:08:00 AM2/8/17
to kurento
How can I use GPU methods from OpenCV library in the sample kms OpenCv Sample? I tried method gpu::getCudaEnableDeviceCount() from plugin and got 0. But if I tried from simple cpp all ok I had 1. I built OpenCV library 2.4.13.2 with some flags and with WITH_CUDA=ON too. Have ideas? May be who did already try and got success?

Zorro Zombi

unread,
Feb 9, 2017, 4:01:59 AM2/9/17
to kurento
Seems it is GStreamer, I can call method with right functionality. Can I turn off GStreamer or it important part for Kurento? I tried update CMakeList with remove it but seems kms is using it (

Micael Gallego

unread,
Feb 9, 2017, 4:37:09 AM2/9/17
to kur...@googlegroups.com
KMS is based on GStreamer. You can't disable it.

What is exactly the problem? Can you share with all of us?

Micael Gallego
Profesor de la Escuela Técnica Superior de Ingeniería Informática URJC

On Thu, Feb 9, 2017 at 10:01 AM, Zorro Zombi <zz3...@gmail.com> wrote:
Seems it is GStreamer, I can call method with right functionality. Can I turn off GStreamer or it important part for Kurento? I tried update CMakeList with remove it but seems kms is using it (

--
You received this message because you are subscribed to the Google Groups "kurento" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kurento+unsubscribe@googlegroups.com.
To post to this group, send email to kur...@googlegroups.com.
Visit this group at https://groups.google.com/group/kurento.
To view this discussion on the web visit https://groups.google.com/d/msgid/kurento/dbc2d154-29d0-414b-a8a6-a9bf3a58cdef%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Zorro Zombi

unread,
Feb 9, 2017, 5:04:39 AM2/9/17
to kurento
Sure, the problem is the GStreamer default use old OpenCV which installed with ubuntu without support gpu or so old. The kms OpenCV plugin sample I built with new OpenCV 2.4.13.2 which I built with support Cuda and gpu. Now I should rebuild GStream with support last OpenCV if it is possible.

Zorro Zombi

unread,
Feb 9, 2017, 9:01:49 AM2/9/17
to kurento
Seems I fixed the main problem I rebuilt OpenCV with flag -D BUILD_SHARED_LIBS=ON and copied builded libraries to folder /usr/lib/x86_64-linux-gnu. It seems not nice but it is work. You can try it simple add to kms OpenCV plugin sample:

#include "opencv2/gpu/gpu.hpp"

....

cout << "count cuda devices:" << gpu::getCudaEnabledDeviceCount() << endl;

Now I have 1. We can close this question.
Reply all
Reply to author
Forward
0 new messages