Skip to content

Dranixia/Blur_Detection_Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Blur Detection with Haar Wavelet Transform

Requirements

Install these using the following command:

$ pip install -r requirements.txt

Usage

To run the python script with the sample images uploaded to this repo.

python blur_wavelet.py -i images/blur

Configuration of edge threshold

The paper defines two parameters in order to configure the algorithm. The first is threshold. It is used to select if a pixel of Haar transform image is considered as Edge Point. Default value is 35. If you select a smaller threshold, it is more likely an image to be classified as blur.

The default threshold is 35. You can define it by adding the parameter in the call:

python blur_wavelet.py -i images/noblur --threshold 25

Configuration of decision threshold

In the paper it is called MinZero. If Per is smaller than MinZero the image is classified as blur. The default value is 0.001 . In order to configure the MinZero threshold, run the script with the flag -d

python blur_wavelet.py -i images/noblur -d 0.005

Save results as .JSON

In order to save the output as .JSON, run the script with the flag -s SAVE_PATH.json .

python blur_wavelet.py -i images/blur -s output.json

Sources

Dataset

The sample images have been taken from this image dataset.

Paper

This algorithm is based entirely on this paper

About

Semester Project on Signal Processing @cs UCU 2021

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages