Creating, Swapping and Combining Images with Python OpenCV

Creating, Swapping and Combining Images with Python OpenCV

Hi there! Today we are going to do some basic stuff in OpenCV and python. Today we are going to perform three tasks :

  • We are going to create our own image
  • We are going to swap some part of the two photo
  • Combine them side to side.

So let's start

Create your own image

Here is our Jupyter Notebook Code

image.png

You can watch the complete code here

Let's see the output

image.png

Swap faces and combines them

Here is our Jupyter Notebook Code

image.png

image.png

You can check the whole code here

It will take two images as input and detect faces and then swap them and output them in combined form

Here's how it looks like

image.png

Thank You!!