How to import opencv in python?

First of all we should know what is opencv?
OpenCV (Open Source Computer Vision) is a library of programming functions mainly aimed at real-time computer vision. In simple language it is a library used for Image Processing. It is mainly used to do all the operation related to images.
From openCV you can do can whatever you want to do from images. OpenCV helps in manipulation of images. Like read an image, write an image, convert colored to gray, binary, HSV etc.
Application of opencv
- Video analysis
- Object detection
- Machine learning
- Shape analysis
- 3D reconstruction
- Building GUI
- Face and object recognition
How to install opencv?
- Open the command prompt
- Rum the following command
- pip install opencv-python
pip install opencv-python
- Successfully install opencv on your system.

You can use opencv by just importing it in your python script.
syntax:-
import opencv
This is how we can install and use opencv in python.
Subscribe
Login
Please login to comment
0 Discussion