An Effective Cartoonifying of an Image using Machine Learning

Suryansh Tomar, Nandini Upadhyay, Guru Prasad M S, N Divyashree, Vinayak Mamgain, Mangey Ram · 2023

Cartoonifying an image is the process of transforming a regular photograph into a cartoon-style image. This research paper proposes a method to cartoonify images using OpenCV, a popular open-source computer vision library using Python. The proposed method involves several steps, including edge detection, color quantization, and image smoothing. The edge detection step is used to extract edges from the input image. Then, in the color quantization step, the image palette is reduced to a fixed number of colors using the k-means clustering algorithm. Finally, the image is smoothed using a bilateral filter to create a cartoon-like effect. The proposed method is evaluated on several images, and the results show that the proposed method produces high-quality cartoon images with reduced noise and better visual appeal compared to existing methods. This method has potential applications in various fields, such as entertainment, advertising, and digital art, and can be easily integrated into existing applications.

Read the paper · More papers on PaperTik