Skip to main content

Command Palette

Search for a command to run...

Creating, Swapping and Combining Images with Python OpenCV

Published
•1 min read•View as Markdown
Creating, Swapping and Combining Images with Python OpenCV
S

I am a learner who likes to get behind the new technologies of the world and integrate them for a more efficient workflow. Currently learning AWS, GitOps, Kubernetes, and much more...

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!!

11 views

More from this blog

Written Wisdom

35 posts

I'm a 22-year-old boy with a passion to learn about the DevOps Landscape. I love to explore things and deep dive into how these little pieces of code come together to form such state-of-the-art tools.