Image Processing Using “PYTHON”

Punna Abhilash
2 min readJun 12, 2021

Have you ever wondered what is the back-end process that goes on while you are editing, filtering or performing any kind of operations on images?

Well! It is natural that everyone would like to go deep-dive into things and understand them better. So I came up with an cool task that would give you all a clear idea on the magics that come out of photo editing apps.

1. Create image by yourself Using Python Code

Here I created my custom image using few functions available in CV2 module

code for creating custom image

Output:

custom image

2. Take 2 image crop some part of both image and swap it.

code for cropping and swapping images
Image 1
image 2
Cropped images

Output:

swapped image1
swapped image2

3. Take 2 images and combine them to form single image. For example collage.

code for combining images
Images for combining

Output:

Vertical and horizontal combined images

I hope I have provided with proper code and output examples. Hoping you all to be safe.

THANK YOU !!😊

GitHub Url: https://github.com/PUNNAABHILASH/lw-SummerProgram-2021

--

--