Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

How to download opencv contrib from command line?


Asked by Jazmine Roy on Dec 08, 2021 FAQ



In order to download OpenCV_contrib you must open the command line tool and clone the repository by executing the following command: If you do not have git installed in your system then you can click on the above link and clone it from the website.
Similarly,
The opencv_contrib folder contains extra modules which you will install along with OpenCV. Installing OpenCV_contrib is not a mandatory step. In the final step of this tutorial, we will use one of the modules of OpenCV to run a sample code which will verify the installation.
Keeping this in consideration, Now it’s time to run that command line magic :). Open Windows PowerShell/ Command Prompt and go to the windows folder. Type python main.py and press Enter. The script will create a new batch script: installOpenCV_modified.bat. First, make sure that runScript.bat file is NOT present in the directory.
Likewise,
Check the manual build section if you wish to compile the bindings from source to enable additional modules such as CUDA. If you have previous/other manually installed (= not installed via pip) version of OpenCV installed (e.g. cv2 module in the root of Python's site-packages), remove it before installation to avoid conflicts.
Next,
You can install OpenCV using two different ways: Install OpenCV using Ubuntu repository. Install OpenCV through the source. If you want to install the latest stable version of the OpenCV library on your system then, using the source method you can install it. Open the terminal by pressing ‘Ctrl+Alt+t’ and start the installation ...