Real-time face swapping makes webcam impersonation easier
Terminator Deepfakes By What The Future Newsroom · August 13, 2024 · 4 min read

Real-time face swapping makes webcam impersonation easier

Deep-Live-Cam has drawn attention because it can use a single photo to place someone’s face onto a live webcam feed. The results are not flawless, but the tool shows how remote impersonation is becoming easier with free software and ordinary hardware.

A viral open source project called Deep-Live-Cam is putting a familiar deepfake concern into a more immediate setting: the live video call. With one photo and free software, a user can apply another person’s face to a webcam feed while the image follows the webcam user’s pose, lighting, and expressions.

“Real-time face swapping lowers the barrier for webcam impersonation and fraud, making remote identity and video-call trust less secure.”Why it scores Terminator

The software is not perfect, and the source makes clear that some limits remain. But its sudden popularity shows a practical shift. Face swapping is moving from slow, specialized work toward tools that more people can try at home on a regular PC.

What Deep-Live-Cam Does

Deep-Live-Cam takes a face from a single image and maps it onto live webcam video. The face then moves with the person using the webcam, matching changes in angle, expression, and light closely enough to make the result compelling in short example clips.

The project has been in development since late last year. It gained broad attention after example videos circulated online showing a person imitating Elon Musk and Republican Vice Presidential candidate J.D. Vance, among others, in real time.

That attention briefly pushed the project to No. 1 on GitHub’s trending repositories list. It was No. 4 as of the source article’s writing, and it is available to download for free.

The immediate issue is not that Deep-Live-Cam has solved deception perfectly. The issue is that the barrier is dropping. A person no longer needs an elaborate production process to attempt a live visual impersonation; the source image can be as simple as a photo taken from social media.

Why Video-Call Trust Is Under Pressure

Remote identity has often relied on what feels obvious: if someone appears on a video call, people tend to treat the face as evidence. Real-time face swapping weakens that assumption. It makes the screen less reliable as a simple proof of who is on the other end.

Illustrator Corey Brickley reacted to an example video on X by writing, “Weird how all the major innovations coming out of tech lately are under the Fraud skill tree,” and later, “Nice remember to establish code words with your parents everyone.” The second comment points to a practical response mentioned in the source: using a safe word shared among friends and family to confirm identity.

The concern is broader than celebrity imitation. The source notes that someone could use a photo from social media to impersonate an ordinary person to someone who is not fully familiar with that person’s appearance and behavior.

Even then, the deception still has constraints. The impersonator may need to approximate mannerisms, voice, hair, clothing, and body structure. Tools for voice cloning and video image-to-image AI synthesis exist, but the source says those techniques have not yet reached reliable photorealistic real-time implementations.

Deepfakes Are Not New, But The Setting Is Changing

Face swapping has a longer history. The term “deepfake” originated in 2017 from a Reddit user called “deepfakes,” a name combining “deep learning” and “fakes.” The source describes early uses involving pornography that swapped a performer’s face with that of a celebrity.

At that time, the technology was expensive and slow, and it did not work in real time. Deep-Live-Cam illustrates how much that context has changed. The same broad idea is now appearing in a live webcam workflow, using free software and a regular PC.

The risks are not theoretical. The source points to an alleged heist in Hong Kong covered in February, where someone impersonated a company’s CFO over a video call and walked off with over $25 million dollars. It also notes that audio deepfakes have been tied to financial fraud or extortion schemes.

That makes real-time video impersonation a trust problem for everyday communication, not only a media problem. If the technology becomes easier to install and improves in quality, people may need more than a face on a screen before acting on sensitive requests.

How The Software Works

Deep-Live-Cam combines several existing software packages behind a new interface. The project is itself a fork of an earlier project called “roop.” Its process begins by detecting faces in both a source image and a target image, such as a frame from live video.

After detection, a pre-trained AI model called “inswapper” performs the face swap. Another model, GFPGAN, improves the result by enhancing facial details and correcting artifacts created during the swapping process.

The inswapper model was developed by a project called InsightFace. According to the source, it can estimate how a face from a provided photo might appear from different angles and with different expressions because it was trained on a vast dataset containing millions of facial images of thousands of individuals under varied angles, lighting, and expressions.

During training, the underlying neural network learned to infer three-dimensional facial structure from a two-dimensional image. It also learned to separate identity-specific features from pose-specific features. That separation lets the system combine one person’s identity with another person’s pose, expression, and lighting.

Where This May Go Next

Deep-Live-Cam is not the only project in this area. Another GitHub project, facefusion, uses the same face-swapping AI model with a different interface.

These tools are still not as simple as a one-click install. The source says many depend on a nested web of Python and deep learning libraries such as PyTorch. That complexity limits casual use today, but open source projects can become easier to install as developers build on each other’s work.

The clearest takeaway is practical: webcam video is becoming easier to manipulate in real time. Deep-Live-Cam may be imperfect, but it shows why visual presence alone is a weaker form of verification than it used to be.

← Back to the wire

Read next