Blurred Image Detection and Correction

Опубликовано: 26 Июль 2026
на канале: Yusuf Taha Kara
260
7

https://github.com/yusuftahakara19/Blurred...

Blurred Image Detection and Correction

Image Blurriness Detection Algorithm:
The algorithm used for image blurriness detection in this app calculates the Laplacian variance. Laplacian is an operator used to capture the sharpness and edge information of an image. A high Laplacian variance indicates that the image is clear and edges are distinct, while a low variance indicates that the image is blurry or not sharp. The algorithm converts the image to a Mat data type using the OpenCV library and then applies the Laplacian operation to calculate the variance. If the variance is lower than a specific threshold value, the image is considered to be blurry.

Image Correction Algorithm
For image correction, this code uses two operations: noise reduction and sharpening.

Noise Reduction:
Noise refers to unwanted pixel values in an image that can negatively affect its clarity. In this code, Gaussian blur is used for noise reduction.

Correcting:
Correcting enhances the edges in an image, making it look more clear. For Correcting, a kernel matrix is used. This kernel matrix emphasizes the edges around the central pixel and sharpens the image.

These algorithms are common and straightforward methods for detecting image blurriness and correcting images.