How to Apply a Gaussian Blur using Python

Whether you’re reducing the noise in an image simply targeting an interesting visual effect, the Gaussian Blur technique is a great one to have in your arsenal. With the free-to-use API below, you can easily implement this service into your applications with zero hassle using ready-to-run Python code examples to structure your API call.

To begin, first install the SDK by running the following command:

Next, add the imports and call the function with the below snippet. When structuring your request parameters, you’ll need to first include your image file path (of course) for the operation, and then specify the radius and sigma of the Gaussian operation:

That’s all there is to it! If you’re unfamiliar with how sigma impacts this operation, I recommend trying out different values on your images until you find the right balance.

To authenticate your API call, simply visit our website and register a free account. This provides a free-tier API key with a limit of 800 API calls per month (and no commitments).

--

--

There’s an API for that. Cloudmersive is a leader in Highly Scalable Cloud APIs.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Cloudmersive

There’s an API for that. Cloudmersive is a leader in Highly Scalable Cloud APIs.