This project implements a pipeline to cartoonify images using OpenCV. The process involves applying various image processing techniques such as bilateral filtering, edge detection, and overlaying edges on the original image to create a cartoon-like effect.
- Converts any image into a cartoon-like version.
- Uses OpenCV for image processing.
- Includes steps like bilateral filtering, edge detection, and overlaying edges.
-
Read Input Image: Load the input image using OpenCV.
-
Convert to Grayscale: Convert the image to grayscale.
-
Apply Median Filter: Reduce noise in the grayscale image.
-
Apply Laplacian Filter: Detect edges in the image.
-
Thresholding: Create a binary edge mask.
-
Apply Bilateral Filter: Smooth the original image while preserving edges.
-
Overlay Edges: Combine the edge mask with the smoothed image to create the cartoon effect.
-
Save the Cartoonified Image: Save the final cartoonified image to disk.
-
Plot Original vs. Cartoonified Image: Display the original and cartoonified images side by side.
- Clone the repository:
git clone https://github.com/ranimeshehata/image-cartoonifying.git cd image-cartoonifying



