Blur image detection is essential for computer vision system to avoid misinterpretation of the image. I build blur detection script on python using focus measure and Convolutional Neural Network. This work is my project in Jakarta Smart City as Data Science Trainee. The sample dataset originated from here
- Run this on command prompt:
python detectBlur.py
- Choose your image from dialog appeared.
- After a few seconds, the blur detection result will be printed in command prompt and json file.
- To change the blur detection, edit method variable in detectBlur.py in the line below if name == 'main':. Currently, there are two method, which are 'cnn' and 'tenengrad'. (Next update will require specifying the method as an argument in command prompt)