Heading image

Prerequisites

  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).

Original
After effect

Summary

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

Lessons Learnt with Kotlin: Extension Functions

Data sync for cross platform apps

two phones syncing data

Scrape reviews from TripAdvisor user profiles using python and selenium

Using interoperability for horizontal competition and data portability

Reverse Shell Cheat-sheet

Math in Unity - Calculating Angles

Getting Started with Pygame

What’s the difference between an LMS and an LCMS

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

Python-P01-Teach Me Python !

How Python Evolved as a Programming Language

Analysis of High Pitched Data

Python Template & Concept of Do while loop in Python.