Search code examples
pythonopencvblurry

Python - OpenCV clean blurred image


Is there a way I could clean a blurred image. I am using python 2.7.7. Suppose I have this image (Blurred):

Blurred image

Is there a way I clean this image to make it look like this?:

Cleaned image


Solution

  • No. And yes. If you know about blur function then you can partialy restore image. The simplest example - Wiener filter.

    And OpenCV has some more complicated deblur functions, for your case - out of focus image: https://docs.opencv.org/trunk/de/d3c/tutorial_out_of_focus_deblur_filter.html

    Try it but do not expect magic results.