Images Processing with python
Hello Guys !!
In this article we are going to learn about the Images Processing with the help of python
but before that we need to learn about what is images processing and how to install their library or how to use it . So lets see about the Images 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
For the refernce I am giving GitHub Link for betterment of learning .
https://github.com/Ingole712521/T-LW.git
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 .
Firstly we are going to arrange the image in vertical
In the above image you can see the images are successfully arrange in vertical side
Second we are going to arrange the images horizontal side
In the above images you can see that both image are arrange in horizontal way successfully
Task 3 :-
Crop the images and Swapping both the images
In this case i have taken a two different images ,
Image 1 before cropping
Image 2 before cropping
After Cropping
Team Member
- Gaurav Pagare
- Omkar Patil
- Nivedita Shinde
- Gracy Yadav
Thanks for reading this articles ????