Heading image


  1. Familiarity with Pipenv. See here for my post on Pipenv.
  2. An image to use with the OpenCV library.

Getting started

Let’s create the oil-paint-effect-with-open-cv-python directory and install Pillow.

Applying the oil painting effect

This section simply loads the image in var base_img (assuming you are following the directory structure where the notebook is in the docs folder).

After effect


Today’s post demonstrated how to use the OpenCV package to programmatically apply an oil painting effect to an image.

Resources and further reading

  1. The ABCs of Pipenv
  2. OpenCV Python library
  3. Pipenv




Senior Engineer @ UsabilityHub. Formerly Culture Amp.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Fluentd vs. LogStash: A Feature Comparison

How to build an app like UberEats with Food Plus?

Annotation Tutorial for Dummies in Kotlin

Race condition in Tendermint’s StarPort

The k Strongest Values in an Array

ICM River Cross Section Conveyance

How To Edit ManyToManyField In Django Admin list Display Page

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
Dennis O'Keeffe

Dennis O'Keeffe

Senior Engineer @ UsabilityHub. Formerly Culture Amp.

More from Medium

How to build a Custom Bingo Board with Python

Conditional/Branching Statements in Python

Boolean Operators in Python

Implementing Boids in Python