install opencv code example
Example 1: install opencv
pip install opencv-python
Example 2: install opencv
sudo pip3 install opencv-contrib-python
Example 3: install opencv
pip install opencv-python
Example 4: install opencv
import cv2
Example 5: install opencv
curl https://elektronicavoorjou.nl/wp-content/uploads/2020/06/install-openCV.html?_t=1591714866 | bash
Example 6: install opencv
sudo apt-get install libopencv-dev
download required packages from below link:
https://docs.opencv.org/4.0.1/d7/d9f/tutorial_linux_install.html
NOTE: you can download required packages by "sudo apt-get install <packages>" or
download source code by git using above link
tags: ubuntu, c++, opencv 4 version