Elena' s AI Blog

Super-girls don't cry in face-swaps

18 Mar 2024 (updated: 17 Aug 2026) / 34 minutes to read

Elena Daehnhardt


Pica AI, Web app: Me with a White Horse, touched to add a smile and colour


TL;DR:
  • Use InsightFace Bot on Discord for instant face swaps (50 free credits, 3 per swap). For Python: detect faces with CascadeClassifier, resize and mask with an ellipse, blend with cv2.seamlessClone. Note: cv2 shape[:2] returns (height, width) — not (width, height).

📚 This post is part of the "AI Image Generation in Practice" series

Series: AI Image Generation in Practice (Part 9 of 10)

Previous: Part 2 — Mastering Midjourney Prompts for Stunning Images

Next: Part 10 — Cool Wallpaper with QR code for iPhone

Introduction: AI Face Swapping Explained

The superhero image on the front page of this blog — the one where I appear to be flying over great falls in a cape — is not a photograph. It is a face swap: my face, placed by an AI bot into a Midjourney-generated scene, in seconds.

Face-swapping replaces one person’s face in an image or video with another’s, using computer vision algorithms to detect, align, and blend facial features seamlessly. It has legitimate uses in film production, marketing, and creative projects — and obvious risks when misused.

In this post I cover three approaches, from easiest to most involved:

  1. Mobile apps and web tools — zero setup, good enough for fun
  2. InsightFace Bot on Discord + Midjourney — my favourite workflow for quality results
  3. Python with OpenCV — when you want to understand (or control) what is happening under the hood

I also include the research papers and GitHub repositories worth knowing, and a note on the ethical side of the technology.

Face Swap Tools and Apps

There are several ways to get started with face swapping:

  • Mobile Apps: many popular mobile apps allow you to do face swaps, like Face Swap Live, YouCam Perfect, and HelloFace. These apps are easy to use and often come with pre-loaded celebrity faces you can swap yours with.

  • Online Tools: many websites offer free face-swapping tools. These websites typically work by uploading your photos and letting the website’s AI do the face-swapping magic. Some popular options include Pica AI and Face Swapper.

I have tried Pica AI web app, which is very effortless in creating face-swaps, and challenged it with my photo with glasses. Interestingly, Pica AI did not mind my glasses in the original image and produced quite a good result.

Pica AI:  Elena with a White Horse

Pica AI, Web app: Me with a White Horse

I am thinking twice before cutting my hair (I have a scheduled appointment with my hairdresser). The messy bun looks nice :)

Pica AI:  Elena with a new hair up-do

Face Swapper, Web app: Me with an up-do

  • Software Programs: Software programs that offer more features and control over face swapping are available for more advanced face swapping.
    1. Snapchat offers a variety of face filters, including face-swapping lenses, that allow you to swap your face with a friend or a celebrity.
    2. FaceApp is known for its advanced face-swapping and transformation features. It can change your age, gender, and more.

There are so many applications and online services that I could spend my weekend searching.

Further, I want to try my favourite tools and share my face-swap secrets with you. We will use Midjourney to generate endless scene possibilities and the InsightFaceSwap bot, which works instantly and flawlessly.

Ultimately, we will explore fantastic Python libraries that you can use to develop your face-detection or face-swapping applications.

Face Swapping with Midjourney, Step by Step

🔒 Subscribe to keep reading.

Coding Face Swaps with Python and OpenCV

🔒 Subscribe to keep reading.

Benefits, risks, and responsibility

🔒 Subscribe to keep reading.

Conclusion: Face-Swapping Approaches Compared

🔒 Subscribe to keep reading.

References

🔒 Subscribe to keep reading.

Subscribe to unlock the full article ❤️

I keep most of the site completely open. A few unusually detailed tutorials need a free subscriber login so I can keep publishing this kind of work.

The form below signs you up for the newsletter. It does not log you into the app — log in afterwards (same email) to unlock this article and download your subscriber gifts. New subscribers get an inbox mail: Set a password to unlock articles.

desktop bg dark

About Elena

Elena, a PhD in Computer Science, simplifies AI concepts and helps you use machine learning.

Citation
Elena Daehnhardt. (2024) 'Super-girls don't cry in face-swaps', daehnhardt.com, 18 March 2024. Available at: https://daehnhardt.com/blog/2024/03/18/ai-face-swaps-open-cv-face-detection/
All Posts