Image blurring is achieved by convolving the image with a low-pass filter kernel. It is useful for removing noise. It actually removes high frequency content (e.g: noise, edges) from the image resulting in edges being blurred when this is filter is applied.
This is done by convolving the image with a normalized box filter. It simply takes the average of all the pixels under kernel area and replaces the central element with this average. This is done by the function cv2.blur() or cv2.boxFilter(). Check the docs for more details about the kernel. We should specify the width and height of kernel.
A 3x3 normalized box filter would look like this: K = 1/9 [1 1 1, 1 1 1, 1 1 1]
- Copy the script in your code
- Replace 'Original.jpg' with your image file name
- Download required packages (stated in Requirement.txt)
- Run the code