What Is Opencv?
What Is Opencv?
What Is 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 modeling and replicating human vision using computer
software and hardware.
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 the python and numpy.
Underneath the heading at the top that says Python Releases for Windows, click on the link for the
Latest Python 3 Release - Python 3.x.x.
Scroll to the bottom and select either Windows x86-64 executable installer for 64-bit or Windows x86
executable installer for 32-bit.
Once the download is finished, simply run it by double-clicking on the downloaded file. A dialog should
appear that looks something like this:
Fig: Install successful
After install python successfully now we can check the python in Command Prompt(CMD).
First we need to check whether numpy package is install or not. To check this Open CMD then type
Python
Import numpy
If the result is like this picture that means our pc don’t have numpy package. So we need to install the
package.
Install Opencv 4:
We are going to use pip install method.
Use command:
import cv2
print(cv2.__version__)