Skip to content

An Open-Cv Task with Tutorial to convert a given image to Pencil and Cartoon Sketch

Notifications You must be signed in to change notification settings

AswinSampath1401/Pencil-and-Cartoon-Effects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An Open-Cv task and Tutorial to Convert the given image to Cartoon and Pencil Sketch

Cartoon Effect

Aim

To cartoonize an Image by lightenting the colors and detecting sharp edges

Procedure

Blur the image thereby lightening the colors and apply suitable filters to detect sharp edges

Methodology

To Lighten the Imgae

  • Blur The Image using Bilateral Filter

  • To Detect Sharp Edges

  • Convert Image to grayscale
  • Apply Median Blur to blur the Image
  • Apply Apaptive Treshold for a min_treshold which opencv adjusts automatically
  • Edges are finally obtained from Adaptive Treshold

  • Final Result

  • Bitwise And of the Image with Sharp edges and Blurred Color image will give us a nice Cartoonized Image


  • Pencil Effect

    Aim

    To create a pencil Sketch of an Image by using basic filters

    Procedure

    Apply Image Blending Techniques such as Dodging and Burning and we are good to go.

    Methodology

  • Convert the given image into grayscale
  • Invert the grayscale to get negative image
  • Apply Gaussian Blur to the negative image
  • Blend the grayscale image(we got from rgb image in step 1) with the blurred negative image using a color dodge

  • Final Result

  • A nice Pencil Sketch is generated

  • About

    An Open-Cv Task with Tutorial to convert a given image to Pencil and Cartoon Sketch

    Resources

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

    No packages published

    Languages