1

Gaussian Blurring

Unsolved
Computer Vision

Difficulty: 2 | Problem written by mesakarghm
Problem reported in interviews at

Apple
Facebook
Google
Netflix

Gaussian Blurring uses the Gaussian filter to blur the input image.

In this problem, you are given a NuPy 2D array representing a grayscale image. Your task is to read the input image from the given NumPy array, blur the image using Gaussian Blur with radius 5, and return the blurred image as a NumPy array. You can use the image processing library Pillow to perform the blurring operation. 

Sample Input:
<class 'numpy.ndarray'>
img_array: [[ 1 7 9 13 12] [11 21 61 81 91] [ 5 66 6 5 5]]

Expected Output:
<class 'numpy.ndarray'>
[[13 13 13 13 14] [13 13 13 13 14] [14 14 14 14 14]]

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Quia harum fugiat, distinctio vero error consectetur nisi, modi quidem quae dolores aperiam qui? Eveniet dolorum explicabo quam omnis quo illo velit voluptas odio repellat.

Dolore voluptatibus aspernatur eveniet nobis officiis quae, sequi ducimus soluta expedita nemo cum accusantium odit perspiciatis, ratione optio repellat? Quod quaerat eligendi blanditiis ipsum saepe, adipisci animi deserunt quo dolorum rerum ut.

Nihil vel obcaecati dolorum, neque fuga alias eveniet architecto ratione tempore maxime doloremque quae, tempora laudantium a quam soluta mollitia, quod magnam impedit et illo vero, voluptate ratione at maiores nobis ut saepe dicta inventore aliquid quae expedita? Ex molestias excepturi odit dolorem, consectetur eveniet unde ipsum recusandae dicta libero inventore. Ipsum voluptatibus consequuntur enim voluptatem exercitationem delectus esse quaerat obcaecati nobis ad, quam amet porro fugit pariatur sunt, nisi non commodi modi corrupti consequatur nulla?

This is a premium feature.
To access this and other such features, click on upgrade below.

Ready.

Input Test Case

Please enter only one test case at a time
numpy has been already imported as np (import numpy as np)