Summer Program Task 4

Task 4.1: Create an image by yourself Using Python Code.

Code:

Output:

Task 4.2: Take 2 images crop some parts of both images and swap them.

Task 4.3: Take 2 images and combine them to form a single image. For example collage.

So In order to complete this task we have to take the two Images.

Image 1
Image 2

If the shape of both Images is the same then we don't have to do anything we have to just concatenate both the images. To do concatenation, we have the function “vconcat” & “hconcat” in OpenCV. Otherwise, we have to resize the images to make both images of the same shape.

Code:

Output:

Thank you !!!

GitHub Link: https://github.com/devanshu06/SP_TASK_4

--

--