/Cartoon-Images

An image processing project for images cartoonization

Primary LanguageJupyter Notebook

Cartoon-Images

An image processing project for images cartoonization

Available at http://imagecartoonizer.pythonanywhere.com/

Cartoon Poster

Traditional Image Processing Method

1. Here are few examples of image quantization using K-means algorithm on different images :

  • Drake's face :
Image to process K = 5 K = 9 K = 12 K = 15 K = 19 Best Image (K = 7)
drake's face drake's face (k=5) drake's face (k=9) drake's face (k=12) drake's face (k=15) drake's face (k=19) drake's face (k=7)

  • Japan landscape :
Image to process K = 5 K = 9 K = 12 K = 15 K = 19 Best Image (K = 9)
japan landscape japan landscape (k=5) japan landscape (k=9) japan landscape (k=12) japan landscape (k=15) japan landscape (k=19) japan landscape (k=9)

  • A burger :
Image to process K = 5 K = 9 K = 12 K = 15 K = 19 Best Image (K = 15)
burger burger (k=5) burger (k=9) burger (k=12) burger (k=15) burger (k=19) burger (k=15)

  • Taylor Swift's face :
Image to process K = 5 K = 9 K = 12 K = 15 K = 19 Best Image (K = 19)
Taylor Swift's face Taylor Swift's face (k=5) Taylor Swift's face (k=9) Taylor Swift's face (k=12) Taylor Swift's face (k=15) Taylor Swift's face (k=19) Taylor Swift's face (k=19)

2. Here are few examples of edge enhancement on quantized images :

  • Drake's face :
Image to process line size = 5 line size = 7 line size = 9 line size = 11 Best Image (line size = 9)
drake's face drake's face (ls=5) drake's face (ls=9) drake's face (ls=7) drake's face (ls=11) drake's face (ls=9)

  • Japan landscape :
Image to process line size = 5 line size = 7 line size = 9 line size = 11 Best Image (line size = 5)
japan landscape japan landscape (ls=5) japan landscape (ls=9) japan landscape (ls=7) japan landscape (ls=11) japan landscape (ls=5)

  • A burger :
Image to process line size = 5 line size = 7 line size = 9 line size = 11 Best Image (line size = 11)
burger burger (ls=5) burger (ls=9) burger (ls=7) burger (ls=11) burger (ls=11)

  • Taylor Swift's face :
Image to process line size = 5 line size = 7 line size = 9 line size = 11 Best Image (line size = 9)
Taylor Swift's face Taylor Swift's face (ls=5) Taylor Swift's face (ls=9) Taylor Swift's face (ls=7) Taylor Swift's face (ls=11) Taylor Swift's face (ls=9)

2. Here are few examples of image cartoonization using White Box Algorithm :

  • Drake's face :
Image to process Cartoonized Image
drake's face drake's face cartoonized

  • Taylor Swift's face :
Image to process Cartoonized Image
Taylor Swift's face Taylor Swift's face cartoonized

  • A burger :
Image to process Cartoonized Image
Burger Burger cartoonized

  • A Japan landscape :
Image to process Cartoonized Image
Japan landscape Japan landscape cartoonized

3. Comparison between the two methods

  • Drake's face :
Image to process Traditional method Deep Learning method
Drake's face Drake's face cartoonized drake's face cartoonized

  • Taylor Swift's face :
Image to process Traditional method Deep Learning method
Taylor Swift's face Taylor Swift's face cartoonized Taylor Swift's face cartoonized

  • A burger :
Image to process Traditional method Deep Learning method
Burger Burger cartoonized Burger cartoonized

  • A Japan landscape :
Image to process Traditional method Deep Learning method
Japan landscape Japan landscape cartoonized Japan landscape cartoonized