Image Processing using Python and OpenCV

Hello Guys !!

In this article we are going to learn about the Image Processing with the help of python

But before that we need to learn what is image processing , how to install their library and how to use it . So let’s see what is Image Processing

What is Image Processing?

It is important to know what exactly image processing is and what is its role in the bigger picture before diving into its how’s. Image Processing is most commonly termed as ‘Digital Image Processing’ and the domain in which it is frequently used is ‘Computer Vision’. Don’t be confused — we are going to talk about both of these terms and how they connect. Both Image Processing algorithms and Computer Vision (CV) algorithms take an image as input; however, in image processing, the output is also an image, whereas in computer vision the output can be some features/information about the image.

Why do we need it?

The data that we collect or generate is mostly raw data, i.e. it is not fit to be used in applications directly due to a number of possible reasons. Therefore, we need to analyze it first, perform the necessary pre-processing, and then use it.

For instance, let’s assume that we were trying to build a cat classifier. Our program would take an image as input and then tell us whether the image contains a cat or not. The first step for building this classifier would be to collect hundreds of cat pictures. One common issue is that all the pictures we have scraped would not be of the same size/dimensions, so before feeding them to the model for training, we would need to resize/pre-process them all to a standard size.

What is OpenCV ??

OpenCV is a huge open-source library for computer vision, machine learning, and image processing. OpenCV supports a wide variety of programming languages like Python, C++, Java, etc. It can process images and videos to identify objects, faces, or even the handwriting of a human

Github Link —

Install OpenCV

To install OpenCV on your system, run the following pip command :

Also install Numpy

Command :- pip install Numpy

After installing required libraries , then open jupyter notebook or Visual studio code or anything in which you are comfortable

Task 1 :-

Create a code customized images

Task 2 :-

Collage of Images , in this case I am using the two images .

Task 3 :-

Crop the image and do swapping

Image before cropping

Image after cropping

Team Member

  1. Gaurav Pagare
  2. Nehal Ingole
  3. Nivedita Shinde
  4. Gracy Yadav

Thanks for reading this article🎇🎇