An open API service indexing awesome lists of open source software.

https://github.com/nirbhaykr87/imagecartoonizer

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!
https://github.com/nirbhaykr87/imagecartoonizer

clustering-algorithm flask python

Last synced: about 2 months ago
JSON representation

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!

Awesome Lists containing this project

README

        

# 📸 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:
```bash
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](https://img.shields.io/badge/author-Nirbhay--Kumar-blue)
[![LinkedIn](https://img.shields.io/badge/LinkedIn-Connect-blue)](https://www.linkedin.com/in/nirbhaykrmuj/)

Happy Coding! 🎉