Ask Your Question

weights's profile - activity

2020-08-12 10:39:25 -0600 received badge  Supporter (source)
2020-08-11 17:32:27 -0600 commented answer how to make openCV use GPU on google colab

I managed to solve the problem if you are interested in the results the testing speed increases by 200% with YOLO mode

2020-08-11 14:20:07 -0600 commented answer how to make openCV use GPU on google colab

so I found a solution !pip install libgtk-3-dev and pkg-config and then I have to rerun cmake with these options

2020-08-11 14:10:34 -0600 commented answer how to make openCV use GPU on google colab

it worked thank you so much but when I tried to use cv2.destroyallwindows() it shows this any solutions?

2020-08-11 14:09:16 -0600 commented answer how to make openCV use GPU on google colab

cv2.destroyallwindows() was working fine but after I restarted colab and start using new OpenCV 4.4.0 it shows the error

2020-08-11 14:07:33 -0600 commented answer how to make openCV use GPU on google colab

it worked and but when I tried to use cv2.destroyallwindows() it shows this any solutions?

2020-08-11 14:03:12 -0600 marked best answer how to make openCV use GPU on google colab

I'm trying to make OpenCV use GPU on google Colab but I can' find any good tutorial what I fond is a tutorial for Ubuntu I followed these steps

Step 1: Install NVIDIA CUDA drivers, CUDA Toolkit, and cuDNN "collab already have the drivers"

step 2: Install OpenCV and “dnn” GPU dependencies

! sudo apt-get update
! sudo apt-get upgrade
! sudo apt-get install build-essential cmake unzip pkg-config
! sudo apt-get install libjpeg-dev libpng-dev libtiff-dev
! sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev
! sudo apt-get install libv4l-dev libxvidcore-dev libx264-dev
! sudo apt-get install libgtk-3-dev
! sudo apt-get install libatlas-base-dev gfortran
! sudo apt-get install python3-dev

step 3: Download OpenCV source code

!cd ~
! wget -O opencv.zip https://github.com/opencv/opencv/archive/4.2.0.zip
! wget -O opencv_contrib.zip https://github.com/opencv/opencv_contrib/archive/4.2.0.zip
! unzip opencv.zip
! unzip opencv_contrib.zip
! mv opencv-4.2.0 opencv
! mv opencv_contrib-4.2.0 opencv_contrib

step 4:

! wget https://bootstrap.pypa.io/get-pip.py
! sudo python3 get-pip.py
! sudo pip install virtualenv virtualenvwrapper
! sudo rm -rf ~/get-pip.py ~/.cache/pip
$ nano ~/.bashrc   <----- problem here I can't open this file to edit it in colab

but I get stuck at step4 cuz this tutorial is not for colab and colab give me error

/bin/bash: nano: command not found
2020-08-11 14:03:12 -0600 received badge  Scholar (source)
2020-08-11 07:15:33 -0600 commented answer how to make openCV use GPU on google colab

thank you for the solution I think It didn't work well when I print the version it says 4.1.2 and I reformated your cod

2020-08-11 07:14:48 -0600 commented answer how to make openCV use GPU on google colab

thank you for the solution I think It didn't work well when I print the version it says 4.1.2 and I reformated your cod

2020-08-10 13:59:08 -0600 commented question how to make openCV use GPU on google colab

i think that's why they use 4.2 "Led by dlib’s Davis King, and implemented by Yashas Samaga, OpenCV 4.2 now supports NVI

2020-08-10 13:56:29 -0600 commented question how to make openCV use GPU on google colab

actually Idk I'm just following the steps I'm not an expert in OpenCV if you have any tutorial or better steps to make

2020-08-10 13:14:16 -0600 edited question how to make openCV use GPU on google colab

how to make openCV use GPU on google colab I'm trying to make OpenCV use GPU on google Colab but I can' find any good tu

2020-08-10 13:13:13 -0600 commented question how to make openCV use GPU on google colab

I did enable GPU but when I use OpenCV’s “dnn” module with yolo it takes too long to get results that's mean that openCV

2020-08-10 13:11:17 -0600 edited question how to make openCV use GPU on google colab

how to make openCV use GPU on google colab I'm trying to make OpenCV use GPU on google Colab but I can' find any good tu

2020-08-10 12:41:38 -0600 commented question how to make openCV use GPU on google colab

exactly CUDA support for cv2 I followed the tutorial which is not for colab and step 4 give me an error /bin/bash: nan

2020-08-10 12:39:44 -0600 received badge  Editor (source)
2020-08-10 12:39:44 -0600 edited question how to make openCV use GPU on google colab

how to make openCV use GPU on google colab I'm trying to make OpenCV use GPU on google Colab but I can' find any tutoria

2020-08-10 12:25:08 -0600 asked a question how to make openCV use GPU on google colab

how to make openCV use GPU on google colab I'm trying to make OpenCV use GPU on google Colab but I can' find any tutoria