Cartoonify Image Using Machine Learning

International Journal of Emerging Research in Science, Engineering, and Management

Vol. 2, Issue 3, pp. 4249, March 2026

https://doi.org/10.58482/ijersem.v2i3.6

This work is licensed under a Creative Commons Attribution 4.0 International License .

Cartoonify Image Using Machine Learning

J Vaishnavi, Nagari Daisy, Balasubramanyam Hemanth Kumar, R Arif, Vecham Deepika

Department of Mechanical Engineering, Siddartha Institute of Science and Technology, Puttur, India.

Abstract

A rise in interest in the ability to quickly generate digital content through the use of automated systems has created a strong need for efficient methods to create cartoony images. A hybrid machine learning and conventional cartoonification algorithm was provided to convert real-world images into appealing cartoony types of images, while maintaining all of the required image features such as edges, contours and colour blends. Unlike the popular use of Deep Learning-based approaches, such as Convolutional Neural Networks (CNNs), Neural Style Transfer (NST) and Generative Adversarial Networks (GANs), the approach does not require the computationally intensive and complex training datasets. The cartoonification pipeline was designed in modules consisting of an image preprocessing stage involving colour space changes, converting colour images to grey images, applying Median Blur Filters to reduce noise, performing Adaptive Threshold Edge Detection, Colour Quantisation Through K-Means Clustering and creating a cartoon-like effect using Bilateral Filtering to smooth the image edges. By the use of bitwise AND, combine the structural edges of the image with the Simplified Colour Regions to create the final cartoony image. Since the study and framework were independently validated and used to create consistently high-quality cartoony images with the same level of quality, the studies also demonstrated the ability of the system to perform efficiently and effectively across all image types and resolutions. The framework for the Cartoonification Pipeline was built and can run on the Desktop Computer platform; an Android mobile application was created using Kotlin that allows users to generate and use the cartoon-style images generated from their own digital images; the application demonstrates the efficiency, scalability, and performance of the cartoonification pipeline in real time and in resource-limited environments.

Keywords: Cartoon image generation, image processing, machine learning, K-Means clustering, bilateral filtering.

References

  1. Y. Dong, L. Li, and L. Zheng, “TSGAN: A Two-Stage Interpretable Learning Method for Image Cartoonization,” Neurocomputing, vol. 596, p. 127864, May 2024. https://doi.org/10.1016/j.neucom.2024.127864
  2. C. Tumer, E. Guvenoglu, and V. Tunali, “Robust Multi-Label Cartoon Character Classification on the Novel Kral Sakir Dataset Using Deep Learning Techniques,” Computers, Materials & Continua, vol. 85, no. 3, pp. 5135–5158, Jan. 2025. https://doi.org/10.32604/cmc.2025.067840
  3. H. Jeon, J. Shim, H. Kim, and E. Hwang, “A Photo Cartoonization Method Based on Text-to-Image Diffusion Model,” Neurocomputing, vol. 620, p. 129221, Dec. 2024. https://doi.org/10.1016/j.neucom.2024.129221
  4. Z. Qi, D. Pan, T. Niu, Z. Ying, and P. Shi, “Bridge the Gap Between Practical Application Scenarios and Cartoon Character Detection: A Benchmark Dataset and Deep Learning Model,” Displays, vol. 84, p. 102793, Jul. 2024. https://doi.org/10.1016/j.displa.2024.102793
  5. A. T. Hoang et al., “Machine Learning Supported Measurement and Control for Line Drawing and Shading of a Portrait Drawing Robot,” Measurement, vol. 262, p. 120022, Dec. 2025. https://doi.org/10.1016/j.measurement.2025.120022
  6. H. Chen, X. Wang, and F. Shao, “Blind Cartoon Image Quality Assessment Based on Local Structure and Chromatic Statistics,” Journal of Visual Communication and Image Representation, vol. 101, p. 104152, Apr. 2024. https://doi.org/10.1016/j.jvcir.2024.104152
  7. Y. Liu, Z. Qin, T. Wan, and Z. Luo, “Auto-Painter: Cartoon Image Generation from Sketch by Using Conditional Wasserstein Generative Adversarial Networks,” Neurocomputing, vol. 311, pp. 78–87, May 2018. https://doi.org/10.1016/j.neucom.2018.05.045
  8. Y. Tang, “ECGAN: Translate Real World to Cartoon Style Using Enhanced Cartoon Generative Adversarial Network,” Computers, Materials & Continua, vol. 76, no. 1, pp. 1195–1212, Jan. 2023. https://doi.org/10.32604/cmc.2023.039182
  9. T. Zhang, Z. Zhang, W. Jia, X. He, and J. Yang, “Generating Cartoon Images from Face Photos with Cycle-Consistent Adversarial Networks,” Computers, Materials & Continua, vol. 69, no. 2, pp. 2733–2747, Jan. 2021. https://doi.org/10.32604/cmc.2021.019305
  10. Z. Liang, Y. Zhuang, Y. Yang, and J. Xiao, “Retrieval-Based Cartoon Gesture Recognition and Applications via Semi-Supervised Heterogeneous Classifiers Learning,” Pattern Recognition, vol. 46, no. 1, pp. 412–423, Jul. 2012. https://doi.org/10.1016/j.patcog.2012.06.025
  11. M. Jalali, H. Behnam, and M. Shojaeifard, “Echocardiography Image Enhancement Using Texture-Cartoon Separation,” Computers in Biology and Medicine, vol. 134, p. 104535, May 2021. https://doi.org/10.1016/j.compbiomed.2021.104535
  12. F. Zhang, H. Zhao, Y. Li, Y. Wu, and X. Sun, “CBA-GAN: Cartoonization Style Transformation Based on the Convolutional Attention Module,” Computers & Electrical Engineering, vol. 106, p. 108575, Jan. 2023. https://doi.org/10.1016/j.compeleceng.2022.108575
  13. Z. Huang et al., “A Machine Learning Based Method for Tracking of Simultaneously Imaged Neural Activity and Body Posture of Freely Moving Maggot,” Biochemical and Biophysical Research Communications, vol. 727, p. 150290, Jun. 2024. https://doi.org/10.1016/j.bbrc.2024.150290
2026-03-31