Computer vision has come a long way. We can now recognize objects in order to generate a face-swapped video. This can be done by replacing one person's face with another person's face on a frame-by-frame basis. This process makes it difficult to detect whether a video is morphed or real.
In this chapter, we will look into building an application where an image of a face is placed on top of another image. We will also discuss the C++ toolkit containing machine learning (ML) algorithms called dlib and the Open Source Computer Vision Library (OpenCV).
OpenCV is a library that has C++, Python, and Java interfaces and supports Windows, Linux, macOS, iOS, and Android. OpenCV was designed for computational efficiency and with a focus on real-time applications. It is widely used across all vision-based applications...