Ask Your Question

Kreace's profile - activity

2020-09-21 01:18:12 -0500 received badge  Enthusiast
2020-09-20 13:08:06 -0500 commented question VSCode autocompletion with OpenCV (from source)

For python, I have "pylinter" install but it doesn't work or maybe I don't know how to use it. But thanks for the advice

2020-09-20 04:42:55 -0500 asked a question VSCode autocompletion with OpenCV (from source)

VSCode autocompletion with OpenCV (from source) Hello, I have a problem concerning OpenCV auto-completion. I'm using VSC

2020-09-18 03:03:51 -0500 received badge  Supporter (source)
2020-09-18 03:03:48 -0500 marked best answer OpenCV GPU without compiling ?

Hello, i'm pretty new to OpenCV. I would like to use my GPU (Nvidia Geforce GTX 970) to run a Yolov3 (and 4) Neural Net. It works without any problems with my CPU but as you may already understand it's slow.

So I changed theses two lines in my code : (python3 script)

    self.net.setPreferableBackend(cv2.dnn.DNN_BACKEND_CUDA)
    self.net.setPreferableTarget(cv2.dnn.DNN_TARGET_CUDA)

1- I understood that "setPreferableTarget" set the hardware on which the neural network will be compute but what does "setPreferableBackend" do ? What is a Backend?

I tried to run my script and I get this warning :

[ WARN:0] global ../modules/dnn/src/dnn.cpp (1363) setUpNet DNN module was not built with CUDA backend; switching to CPU

2- I understood that means that OpenCV wasn't install with CUDA support, am I right here?

3- Isn't there any other way to install OpenCV with CUDA other than compile it from source? I installed OpenCV with sudo apt-get install libopencv-dev so i thought that maybe there is a way to do it like that, i don't know.

Thank you for taking the time to read me and thank you in advance for answering me, tell me if you need some additional information.

2020-09-18 03:03:48 -0500 received badge  Scholar (source)
2020-09-18 03:03:46 -0500 commented answer OpenCV GPU without compiling ?

It worked fine with opencv 4.4.0!

2020-09-17 07:48:54 -0500 commented answer OpenCV GPU without compiling ?

I'm trying to get a clean new installation with Ubuntu 20.04 I have install CUDA 11.0 like you but I don't know how to d

2020-09-15 09:54:49 -0500 commented answer OpenCV GPU without compiling ?

I wanted to use ROS2 in my program so I decided to take the latest version (ROS2 Foxy Fitzroy) and they provide binary p

2020-09-15 03:43:57 -0500 commented answer OpenCV GPU without compiling ?

Yes i found it too but it's for Ubuntu 18.04, I'm using Ubuntu 20.04 so i don't know if it's up to date

2020-09-14 10:36:15 -0500 asked a question OpenCV GPU without compiling ?

OpenCV GPU without compiling ? Hello, i'm pretty new to OpenCV. I would like to use my GPU (Nvidia Geforce GTX 970) to r