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.
- 🖼️ 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.
- Python
- Flask
- OpenCV
- NumPy
-
Run the Flask application:
python app.py
-
Open a web browser and go to
http://127.0.0.1:5000/
. -
Upload an image to see it cartoonized.
Enjoy transforming your images into cartoons! 🖼️✨
Happy Coding! 🎉