Skip to main content

Cartoonify an Image with OpenCV Using Python

  • Conference paper
  • First Online:
Smart Technologies in Data Science and Communication

Abstract

This article describes a technique for generating cartoon-like images from digital pictures. The method used today is different from how things were done in the past. This study focuses on the various tactics used during the process that, when used layer by layer, provide a product that is well balanced. We usually research how to combine several functions in a specific way to provide a filtered and composite outcome. Various functions’ mathematical foundations and mechanisms have also been discussed. This article provides examples of a variety of cartooning techniques. Any of the methods given here can be used to turn any type of obtained photograph into a cartoon, including pictures of people, mountains, trees, flora and fauna, etc.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 189.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 249.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Gatys LA, Ecker AS, Bethge M (2016) A neural algorithm of artistic style

    Google Scholar 

  2. Gatys LA, Ecker AS, Bethge M (2016) Image style transfer using convolutional neural networks

    Google Scholar 

  3. Johnson J, Alahi A, Fei-Fei L (2016) Perceptual losses for real-time style transfer and super-resolution

    Google Scholar 

  4. Li C, Wand M (2016) Precomputed real-time texture synthesis with markovian generative adversarial networks

    Google Scholar 

  5. Ulyanov D, Lebedev V, Vedaldi A, Lempitsky V (2016) Texture networks: feed-forward synthesis of textures and stylized images

    Google Scholar 

  6. Li Y, Wang N, Liu J, Hou X (2017) Demystifying neural style transfer

    Google Scholar 

  7. Dumoulin V, Shlens J, Kudlur M A learned representation for artistic style, 2017 Summary We used computer vision algorithms to turn a typical image into a comic in the preceding demonstration. We’re going to have a lot of fun with computer vision techniques. The cartoonie image function is then called after we check what we pressed on the keyboard. The sketch mode attribute has distinct values in the two calls, resulting in two different outputs (we mentioned what the output will look like earlier in this post)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Puppala Ramya .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2023 The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Ramya, P., Ganesh, P., Mouli, K., Akhil, V.N.S. (2023). Cartoonify an Image with OpenCV Using Python. In: Ogudo, K.A., Saha, S.K., Bhattacharyya, D. (eds) Smart Technologies in Data Science and Communication. Lecture Notes in Networks and Systems, vol 558. Springer, Singapore. https://doi.org/10.1007/978-981-19-6880-8_4

Download citation

Publish with us

Policies and ethics