Skip to content

This Flask app lets users upload images and convert them into cartoonized versions using edge detection and color quantization. The process involves reading the image, detecting edges, reducing colors with k-means clustering, and blending for a cartoon effect. Try it out by running the app and uploading an image!

Notifications You must be signed in to change notification settings

nirbhaykr87/ImageCartoonizer

Repository files navigation

📸 Image Cartoonizer

This Flask application allows users to upload an image and convert it into a cartoonized version. The process involves edge detection and color quantization to create a cartoon effect.

Features

  • 🖼️ Image Upload: Users can upload an image file.
  • 🌟 Edge Detection: Detects edges in the image using adaptive thresholding.
  • 🎨 Color Quantization: Reduces the number of colors in the image using k-means clustering.
  • ✨ Cartoonization: Combines edge detection and color quantization to produce a cartoonized image.

Prerequisites

  • Python
  • Flask
  • OpenCV
  • NumPy

Running the App

  1. Run the Flask application:

    python app.py
  2. Open a web browser and go to http://127.0.0.1:5000/.

  3. Upload an image to see it cartoonized.

Enjoy transforming your images into cartoons! 🖼️✨


author LinkedIn

Happy Coding! 🎉

About

This Flask app lets users upload images and convert them into cartoonized versions using edge detection and color quantization. The process involves reading the image, detecting edges, reducing colors with k-means clustering, and blending for a cartoon effect. Try it out by running the app and uploading an image!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages