Skip to content

A Python Script to create Cartoon effects on a given Image file using OpenCV.

License

Notifications You must be signed in to change notification settings

projjal1/Image-Cartoonizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Image-Cartoonizer

A Python Script to create Cartoon effects on a given Image file using OpenCV.
This project is an implementation of Bilateral Filters, Upscaling and Downscaling the image to create blur effects on the image.
Next to preserve edges from being decomposed we apply median blur to maintain a vivid color spectrum.
Lastly, we merge two images to generate a cartoonized effect.

Requirements

  • Python 3.5+
  • OpenCv 2
Usage :  python script.py -i [path-to-image]  

Point to Note:

This script might not work on some JPEG image files due to inconsistency in the alpha-channels. This is due to varying color channels when taken from high-end devices or modified version from LightRoom, Photoshop, etc.

Attribution

[Tejas Rama](https://highontechs.com/computer-vision/cartooning-an-image-with-opencv/)

Samples

Original Image Cartoonified Image

About

A Python Script to create Cartoon effects on a given Image file using OpenCV.

Topics

Resources

License

Stars

Watchers

Forks

Languages