@@ -0,0 +1,805 @@
+import cv2%0Afrom scipy.ndimage import filters%0Afrom numpy import *%0A%0A%22%22%22%0AGaussian Blurring -- Preprocessing technique%0A%0AUsed to:%0A1) Reduce image noise%0A2) Reduce details%0A%0ARequires:%0A1) Image name%0A%22%22%22%0A%0Adef gaussian_blurring(imname, standard_deviation=5):%0A    %22%22%22%0A    Uses Gaussian blurring to blur an image%0A    %22%22%22%0A    # Loading the image%0A    im = cv2.imread(imname)%0A%0A    # Filtering the image%0A    filtered = zeros(im.shape)%0A    for i in range(3):%0A        filtered%5B:,:,i%5D = filters.gaussian_filter(im%5B:,:,i%5D, standard_deviation)%0A%0A    # Cleaning the data up%0A    filtered = uint8(filtered)%0A%0A    # Returning the filtered image%0A    return filtered%0A%0Aif __name__ == '__main__':%0A    imname = %22../images/IMG_0147.jpg%22%0A%0A    cv2.imshow(%22filtered%22, gaussian_blurring(imname))%0A    cv2.waitKey(0)%0A    cv2.destroyAllWindows()%0A

Add Gaussian blurring