Results 1 to 3 of 3

Thread: Cartooning

  1. #1
    shakeel is offline Member
    Join Date
    Dec 2010
    Posts
    20
    Rep Power
    0

    Default Cartooning

    Hi everyone,

    I have come across some websites which offer the function of cartooning any of your images. Does anyone has an idea about how this can be achieved in java?

  2. #2
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Location
    VA
    Posts
    1,323
    Rep Power
    7

    Default

    Yeah, its most likely using a series of filters and algorithms:
    The image is probably converted to grayscale, and then contrast is adjusted until mid tones are washed out. Then an edge detection algorithm traces the edges of objects. Some algorithm can probably pick out the basic shape of a head/face/body from the resulting outline. Once this is achieved, the original image can have its central figure extracted. Posterizing might be used in here somewhere too. Another sweep with contrast adjustments, and facial component locators finds the basic shapes and locations of mouth, eyes, hair, etc...

    From here, the located objects are probably matched to a predefined database of shapes (hairstyles, eye shape, mouth shape, etc...). The face is redrawn using these pre made shapes, colors either sampled from averages in the original image or from user input. The completed composite image is returned to the user!

    Sounds like a fun weekend project :D

  3. #3
    shakeel is offline Member
    Join Date
    Dec 2010
    Posts
    20
    Rep Power
    0

    Default

    Thanks a lot for your answer. Looks like my weekend gonna be fun after all. A nice weekend to do some programming

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •