Skip to content

Cartoonize images using OpenCV and k-means algorithm of machine learning in python.

Notifications You must be signed in to change notification settings

Sudarshana2000/cartoonization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Cartoonization

A simple tool that can give your pictures a nice cartoonic effect! This image processing project used some important python libraries, opencv and machine learning model to give images a cartoonish look.

Using OpenCV, the image is smoothened with bilateral filter and transformed to HSV color space. The edges are extracted to superimpose them later. On the other hand, k-means clustering (ML) and histogram equalization accomplishes the task of effectively spreading the most frequent intensity value to give the planar cartoonish spread. Finally, the preserved edges are superimposed to get the cartoonish look.

Requirements

opencv-python
numpy
scipy

Real Image

Real image

Cartoonized Image

Cartoonized image

About

Cartoonize images using OpenCV and k-means algorithm of machine learning in python.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages