When using the classic FFT method to detect blurry images, clear images with sparse textures are often classified as blurry, while blurry images with rich textures are classified as clear.
To address this difficulty, we propose an improved version of the ESFFT fuzzy detection method, with the core idea of only considering the frequency response intensity near the texture.
numpy_demo.py is a demo file based on numpy, through which you can reproduce the effect shown in the above figure.
pip install matplotlib==3.5
pip install opencv-python
pip install numpy