Skip to content

About

Cartoon-style image generator using OpenCV and K-Means clustering for colour quantisation.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

14 Commits

Folders and files

Repository files navigation

Cartoonizer Graphics

Web-Java Version(VibeCoded)

Before & After


How It Works

The application performs colour quantisation using the following steps:

  1. The image is reshaped into a 2D array of pixel values.
  2. User inputs K value, K-Means clustering groups similar colours.
  3. Each pixel is replaced with its cluster centroid (the average color of the cluster).
  4. The reduced colour palette produces a cartoon-style effect.

This reduces colour complexity while preserving major visual structures.


🛠️ Tech Stack

  • Python
  • OpenCV
  • NumPy
  • Tkinter
  • K-Means Clustering

For Windows Executable

About

Cartoon-style image generator using OpenCV and K-Means clustering for colour quantisation.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages