Install OpenCV with Anaconda - Tutorial Kart
Install OpenCV with Anaconda
Install OpenCV Python with Anaconda
Anaconda is a good tool for Python application development. If you have anaconda installed, working with OpenCV becomes easier. You may follow: Install Anaconda tutorial if Anaconda is not installed yet.
To install OpenCV Python with Anaconda, use following pip command.
$ pip install opencv-python
Output
$ pip install opencv-python Collecting opencv-python
Downloading opencv_python-3.4.0.12-cp36-cp36m-manylinux1_x86_64.whl (24.9MB) 100% |????????????????????????????????| 24.9MB 35kB/s
Requirement already satisfied: numpy>=1.11.3 in /usr/lib/anaconda3/lib/python3.6/site-packages (from Installing collected packages: opencv-python Successfully installed opencv-python-3.4.0.12
OpenCV package for Python is successfully installed.
Following is a simple program to verify the OpenCV Python package. We shall use methods of cv2 to read and display an image.
example.py
import cv2 img = cv2.imread('/home/img/python.png') cv2.imshow('image',img) cv2.waitKey(0) cv2.destroyAllWindows()
When you run the above example, the following image would be displayed in a separate window.
Conclusion
In this Python OpenCV Tutorial, we learned how to install OpenCV with Anaconda.
OpenCV Python Tutorial
OpenCV Python Tutorial OpenCV - Setup with Anaconda OpenCV - Read and Display Image OpenCV - Save Image OpenCV - Get Image Shape/Dimensions OpenCV - Rezise Image - Upscale, Downscale OpenCV - Read Image with Transparency Channel
Image Processing
OpenCV - Edge Detection OpenCV - Gaussian Blur
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related searches
- how to install opencv using pip
- pip install opencv windows
- pip install opencv contrib
- how to install opencv windows
- windows install opencv python
- how to install opencv for python
- install opencv windows 10
- install opencv python on windows
- install opencv on windows 10
- install opencv windows
- install opencv python windows 10
- pip install opencv python