Научные статьиM.H.Sayidova, S.U.Pulatova2025
Automatic Red Eye Remover using OpenCV
Primbetov Abbaz
Современная наука и исследования · 449-478 · 2026
Аннотация
Red-eye is a common issue in flash photography that occurs when the camera flash reflects off the subject's retina, resulting in a red or orange coloration in the eyes. Manual removal of red-eye can be time-consuming and tedious, especially when dealing with a large number of images. This paper presents an automatic red- eye removal technique using OpenCV (Open Source Computer Vision Library). The proposed method utilizes image processing algorithms to detect and correct red-eye artifacts in digital images. We discuss the process of red-eye detection, the techniques used for accurate localization, and the algorithm for removing the red- eye effect. The experimental results demonstrate the effectiveness of the proposed method in automatically and efficiently eliminating red-eye artifacts from photographs. Finally, we discuss potential applications and future directions for research in automatic red-eye removal using OpenCV. 1 INTRODUCTION utilizing the functionalities offered by the OpenCV library. By leveraging the computational power and versatility of OpenCV, we can develop an efficient When you are in a dark room, your pupils are and accurate solution for eliminating red-eye effects dilated (enlarged) to let in more light to help you see from photographs. better. The flash on most cameras is very close to the lens. When you take a picture with the flash on, the light from the flash passes through the enlarged pupil to the back of the eyeball and back out through the 2 Red-Eye Detection and pupil into the lens of the camera. The back of the Localization eyeball is called the fundus. It is red in color because of an ample supply of blood in the fundus. Red-eye detection and localization play a crucial In recent years, computer vision and image role in automatically identifying the presence and processing techniques have made significant location of red-eye artifacts within digital images. advancements, offering powerful tools to tackle Accurate detection and localization are essential for various image enhancement tasks. OpenCV (Open effectively removing the red-eye effect and restoring Source Computer Vision Library) is a widely used the natural appearance of the subject's eyes. In this open-source library that provides a comprehensive section, we will discuss the underlying mechanisms suite of algorithms and functions for image and methodologies used in red-eye detection and processing and analysis. Leveraging the capabilities localization. of OpenCV, researchers and developers have The first step is to detect eyes automatically. We developed automated methods to detect and rectify use the standard OpenCV Haar detector red-eye artifacts in digital images. (haarcascade_eye.xml) for eyes for finding the eyes. The objective of this paper is to present an Sometimes it makes sense to run a face detector first automatic red-eye remover using OpenCV. We aim and then detect the eyes inside the face region. To to explore the techniques and algorithms employed in keep things simple, we are run the eye detector red-eye detection, localization, and removal while directly on the image. Skipping the face detector works when the input image is a portrait shot, or you have a closeup of the eyes. Next, we need to find the part of the pupil that is affected by the red eyes. There are many different ways of finding something red. One thing to note is that our color is not just red, it is bright red! You could Figure 2. Left: Red channel. Center: Blue convert the image to HSV color space and threshold channel. Right: Green channel. based on hue and brightness. In this post, we have used a simpler heuristic. We say that he red channel A combination of the green and blue channels can be should be greater than a threshold and also the sum of used to come up with a plausible red channel. For green and blue channels. For the purpose of a proof- of-concept system, the heuristic is adequate, but if you want to build automatic red-eye reduction for a commercial software package, you would need to gather thousands of images red eyes to come up with something better. example, we can create a red channel which is the average of the green and blue channels in the image. However, doing this may give the pupil a slight tinge which may look ok, but not great. Notice the purple tinge in the center image. Figure 3. Left: Red eye. Center: Fixed by replacing Figure 1: Left: Color-based pupil mask. Center: red channel. Right: Fixed by replacing all channels. Pupil mask with holes filled. Right: Dilated pupil mask That brings us to an important question. What should be the color of the pupil? The pupil is an opening in The mask created in the previous step will most the eye, and the inside of the eye is completely dark. likely have holes. The left image in the figure above shows the raw mask obtained using color processing. The pupils should, therefore, be colorless (grayscale) and dark. Instead of replacing only the red channel in 3 Red-Eye Re
Доказательный фрагмент
«Red-eye is a common issue in flash photography that occurs when the camera flash reflects off the subject's retina, resulting in a red or orange coloration in the eyes.»
Образец извлечения
Демо-превьюRed-eye is a common issue in flash photography that occurs when the camera flash reflects off the subject's retina, resulting in a red or orange coloration in the eyes. Полный текст публикации CiteX не хранит — доступ к первоисточнику открывается по DOI согласно лицензии издателя и выбранному плану.
- Цитирований
- 0
- Тип
- Журнал
- Страна
- Узбекистан
- Ключевые слова
- OpenCV(Open Source Computer Vision Library), image classification, OpenCV(Open Source Computer Vision Library
Смежные источники
Общество и инновацииKhosiyat MAMATKULOVA2024
Диссертации и авторефератыYusupov Kuanıshbay Baltabayevich2026
Научные статьиI.B.Yangiboyev, E.X.Berdanov +22025