Skip to content

ranimeshehata/Image-Cartoonifying

Repository files navigation

Image Cartoonifying

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.


Features

  • Converts any image into a cartoon-like version.
  • Uses OpenCV for image processing.
  • Includes steps like bilateral filtering, edge detection, and overlaying edges.

High-Level Pipeline

  1. Read Input Image: Load the input image using OpenCV.

  2. Convert to Grayscale: Convert the image to grayscale.

  3. Apply Median Filter: Reduce noise in the grayscale image.

  4. Apply Laplacian Filter: Detect edges in the image.

  5. Thresholding: Create a binary edge mask.

  6. Apply Bilateral Filter: Smooth the original image while preserving edges.

  7. Overlay Edges: Combine the edge mask with the smoothed image to create the cartoon effect.

  8. Save the Cartoonified Image: Save the final cartoonified image to disk.

  9. Plot Original vs. Cartoonified Image: Display the original and cartoonified images side by side.


Installation

  1. Clone the repository:
    git clone https://github.com/ranimeshehata/image-cartoonifying.git
    cd image-cartoonifying
    

Test Images

alt text

alt text

alt text

alt text

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors