OpenCV
is a open-source library for computer vision, machine learning, and
image processing. It is widely used for image recognition or identification of faces and
objects.
It has been developed using C but it also supports different programming
languages like java and python.
Applications of OpenCV:
1. Image processing –Different image processing techniques can be applied
using opencv . it can generate a new by changing its shape, colour, or
extract something useful from the given one and write into a new
image…Images can be converted into grayscale or be rotated,inverted, or
get the pixel value of images.,etc
2. Face Detection- you can detect the no of faces in an image or a video
footage. As we can see the image all the faces are being detected. Like
this in a cctv footage you can detect faces.
3. Face Recognition -You can do face detection using OpenCV and then
train the model using ML to recognize a person.
4. Object Detection
Create an object detection algorithm to detect objects from images or
videos.
Why OpenCV ?
There are other options available for these used cases but why we prefer
OpenCV
OpenCV is an open source library. Hence is free of cost.
Speed: It Can process 30 frames per second in real time image
processing.
Whereas Matlab can process only 4 frames per second.
OpenCV requires less system resources to run.
It is portable and can run on any device that runs on C.
Working:
OpenCV in python uses Numpy. Numpy as you know is a highly optimized
library for numerical operations. All OpenCV array structures are converted to
form Numpy arrays. This make it easier to integrate it with other libraries (like
Scipy and matplotlib) as well.
Like in this image you can see that each and every pixel is converted into
numbers …Similarly for a coloured image there will be 3 layers RGB
Pixel value of image is used to convert images into numbers.