Efficient face detection and replacement in the creation of simple fake videos

Authors

DOI:

https://doi.org/10.15276/aait.06.2023.20

Keywords:

Deepfake, affine transformation, face detection, video processing, alpha channel, binary masks

Abstract

Face detection and facial recognition technologies are among the most intensively studied topics within the field of computer vision, owing to their vast application potential across a multitude of industries. These technologies have demonstrated practical applicability in varied contexts such as identifying suspicious individuals in crowded urban spaces, real-time recognition of smartphone owners, creating compelling deepfakes for entertainment applications, and specialized applications that modify the movements of facial features such as the lips or eyes. With the current state-of-the-art advancements in hardware and software technology, today's technological infrastructure provides more resources than are necessary for video streaming. As a result, simple face recognition systems can be implemented without the need for high-cost server instances that require specified pre-trained models. This abundance of resources is changing the landscape of face recognition, and the discussion within this paper will revolve around these emerging paradigms. The primary focus of this article is an in-depth analysis of the key concepts of face detection in streaming video data using prominent pre-trained models. The models under discussion include HRNet, RetinaFace, Dlib, MediaPipe, and KeyPoint R-CNN. Each of these models has its strengths and weaknesses, and the article discusses these attributes in the context of real-world case studies. This discussion provides valuable insights into the practical applications of these models and the trade-offs involved in their utilization. Moreover, this paper presents a comprehensive overview of image transformation techniques. It introduces an abstract method for affine image transformation, an important technique in image processing that changes the geometric properties of an image without affecting its pixel intensity. Additionally, the article discusses image transformation operations executed through the OpenCV library, one of the leading libraries in the field of computer vision, providing a highly flexible and efficient toolset for image manipulation. The culmination of this research is presented as a practical standalone system for image replacement in video. This system leverages the RetinaFace model for inference and employs OpenCV for affine transformations, demonstrating the concepts and technologies discussed in the paper. The work outlined in this article thereby advances the field of face detection and recognition, presenting an innovative approach that makes full use of contemporary hardware and software advances.

Downloads

Download data is not yet available.

Author Biographies

Oleksii I. Sheremet, Donbas State Engineering Academy, 39, Mashinobudivnykiv Blvd. Kramatorsk, Ukraine

Doctor of Engineering Sciences, Professor, Head of the Department of Electromechanical Systems of Automation and Electric Drive

Scopus ID: 57170410800

Oleksandr V. Sadovoi, Dnipro University of Technology, 19, Dmytra Yavornytskogo Ave. Dnipro, Ukraine

Doctor of Engineering Sciences, Professor of the Department of Electric Drive

Scopus Author ID: 57205432765

Denys V. Harshanov, Kharkiv National University of Radioelectronics, 14, Nauky Ave. Kharkiv, Ukraine

Student, Department of Computer Engineering and Control

Oleh S. Kovalchuk, Donbas State Engineering Academy, 39, Mashinobudivnykiv Blvd. Kramatorsk, Ukraine

Student, Department of Automation of Mechanical Engineering and Information Technology

Kateryna S. Sheremet, Donbas State Engineering Academy, 39, Mashinobudivnykiv Blvd. Kramatorsk, Ukraine

Department Engineering of the Department of Intelligent Decision Support Systems

Scopus Author ID: 57207768511

Yuliia V. Sokhina, Dniprovsky State Technical University, 2, Dniprobudivska, Str. Kamyanske, Ukraine

PhD in Engineering Sciences, Associate Professor of the Department of Electrical Engineering and
Electromechanics

Scopus Author ID: 57205445522

Downloads

Published

2023-09-30

How to Cite

[1]
Sheremet O.I.., Sadovoi O.V.., Harshanov D.V., Kovalchuk O.S.., Sheremet K.S., Sokhina Y.V. “Efficient face detection and replacement in the creation of simple fake videos”. Applied Aspects of Information Technology. 2023; Vol. 6, No. 3: 286–303. DOI:https://doi.org/10.15276/aait.06.2023.20.