Skip to content

Open CV

K.M.H.Mubin edited this page Jul 8, 2019 · 2 revisions

OpenCV

OpenCV is a cross-platform library using which we can develop real-time computer vision applications. It mainly focuses on image processing, video capture and analysis including features like face detection and object detection.

OpenCV uses machine learning algorithms to search for faces within a picture. Because faces are so complicated, there isn’t one simple test that will tell you if it found a face or not. Instead, there are thousands of small patterns and features that must be matched. The algorithms break the task of identifying the face into thousands of smaller, bite-sized tasks, each of which is easy to solve. These tasks are also called classifiers.

Computer Vision: Computer Vision can be defined as a discipline that explains how to reconstruct, interrupt, and understand a 3D scene from its 2D images, in terms of the properties of the structure present in the scene. It deals with modelling and replicating human vision using computer software and hardware.

Features of OpenCV Library

Using OpenCV library, you can −

  • Read and write images

  • Capture and save videos

  • Process images (filter, transform)

  • Perform feature detection

  • Detect specific objects such as faces, eyes, cars, in the videos or images.

  • Analyze the video, i.e., estimate the motion in it, subtract the background, and track objects in it.

OpenCV was originally developed in C++. In addition to it, Python and Java bindings were provided. OpenCV runs on various Operating Systems such as Windows, Linux, OSx, FreeBSD, Net BSD, Open BSD, etc.

Before we install the open cv in our working environment we need to install

Install OpenCV 4:

We are going to use pip install method.

Open CMD as administrator.

Use command:

 ` **pip install opencv-python**`

Install OpenCV using Pip

Fig: install OpenCV

Now check the OpenCV version

Use command:

`**import cv2**`

`**print(cv2.__version__)**`

Checking OpenCV version

Fig: Checking OpenCV version

Clone this wiki locally