Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. 2D Image Animation

2D Image Animation

Scheduled Pinned Locked Moved C#
tutorialcomquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    NazarHussain
    wrote on last edited by
    #1

    Hi all, I want to animate 2D images, specially face; My scenario is i should draw contours of face around the image, on next key frame i should change the shapes of contour. When i animate i get the face in the image should animate accordingly. It is something like morphing, but in morphing we have 2 images. In my scenario i have one image. If i conclude i want some thing like this <a href="http://www.youtube.com/watch?v=ed\_HAJGJfeQ">http://www.youtube.com/watch?v=ed\_HAJGJfeQ</a>[<a href="http://www.youtube.com/watch?v=ed\_HAJGJfeQ" target="_blank" title="New Window">^</a>] I want to do it programatically, to create Talking Pictures. I know you all guys are specialist into such kind of things. Please guide me how to full fill my scenario. Thanks in advance. Please do it as early as possible.

    M A 2 Replies Last reply
    0
    • N NazarHussain

      Hi all, I want to animate 2D images, specially face; My scenario is i should draw contours of face around the image, on next key frame i should change the shapes of contour. When i animate i get the face in the image should animate accordingly. It is something like morphing, but in morphing we have 2 images. In my scenario i have one image. If i conclude i want some thing like this <a href="http://www.youtube.com/watch?v=ed\_HAJGJfeQ">http://www.youtube.com/watch?v=ed\_HAJGJfeQ</a>[<a href="http://www.youtube.com/watch?v=ed\_HAJGJfeQ" target="_blank" title="New Window">^</a>] I want to do it programatically, to create Talking Pictures. I know you all guys are specialist into such kind of things. Please guide me how to full fill my scenario. Thanks in advance. Please do it as early as possible.

      M Offline
      M Offline
      musefan
      wrote on last edited by
      #2

      I would say the video in that link you have provided it using 3D animation, Could be 2D but either way I very much doubt it is done from a single image. The task you have described would be a big challenge for any programmer who specializes in image manipulation, one of which I am not. Lets say for instance you want to animate just the mouth. First you would need to detect the location of the mouth, the you need to detect the exact outline of the mouth, and the jaw, and any other part of the image that will be affected. I'm sure you could do a search for facial recognition and get a fair few good hits, I would suggest that's where you start. Try to detect and highlight the outline of the mouth. If you can do that, which would be very impressive indeed, and you still need more help, then come and post for more specific help. I would also like to say, I would be immensely stunned if somebody could produce such software (as you speak of) with the quality demonstrated in the video you have shown.

      Life goes very fast. Tomorrow, today is already yesterday.

      N 1 Reply Last reply
      0
      • M musefan

        I would say the video in that link you have provided it using 3D animation, Could be 2D but either way I very much doubt it is done from a single image. The task you have described would be a big challenge for any programmer who specializes in image manipulation, one of which I am not. Lets say for instance you want to animate just the mouth. First you would need to detect the location of the mouth, the you need to detect the exact outline of the mouth, and the jaw, and any other part of the image that will be affected. I'm sure you could do a search for facial recognition and get a fair few good hits, I would suggest that's where you start. Try to detect and highlight the outline of the mouth. If you can do that, which would be very impressive indeed, and you still need more help, then come and post for more specific help. I would also like to say, I would be immensely stunned if somebody could produce such software (as you speak of) with the quality demonstrated in the video you have shown.

        Life goes very fast. Tomorrow, today is already yesterday.

        N Offline
        N Offline
        NazarHussain
        wrote on last edited by
        #3

        The video i posted looks like a 3D animation, but it is created with a 2D image in CrazyTalk 6 software. For more specific option check out this link : http://www.americangreetings.com/ecards/display.pd?prodnum=3142786&N=375075+374226&offset=11&Ns=P_NEWNESS|1||P_PERFORMANCE_NUMBER|1[^] Upload any portrait photo, provide some text, choose voice selection. And your image will start talking. I want to reproduce this application. To reduce the complexity, My application will prompt the user to plot the location of eyes, nose, lips and face. After words the picture will be animated. The major point i can not understand behind the link is, the speed of rendering, as we upload the image, default animation is generated on the fly. Since i have to plot the locations of face by myself, so i do not need any Face recognition software. If you are familiar with Flash Shape Tweening option, you must remember the effect we simply shape tween a line. I want to tween the contours of the shape, but with these contours the image should change the shape automatically. If after checking the new link, you got any idea to accomplish it, please please let me know. Waiting for your reply Nazar Hussain

        1 Reply Last reply
        0
        • N NazarHussain

          Hi all, I want to animate 2D images, specially face; My scenario is i should draw contours of face around the image, on next key frame i should change the shapes of contour. When i animate i get the face in the image should animate accordingly. It is something like morphing, but in morphing we have 2 images. In my scenario i have one image. If i conclude i want some thing like this <a href="http://www.youtube.com/watch?v=ed\_HAJGJfeQ">http://www.youtube.com/watch?v=ed\_HAJGJfeQ</a>[<a href="http://www.youtube.com/watch?v=ed\_HAJGJfeQ" target="_blank" title="New Window">^</a>] I want to do it programatically, to create Talking Pictures. I know you all guys are specialist into such kind of things. Please guide me how to full fill my scenario. Thanks in advance. Please do it as early as possible.

          A Offline
          A Offline
          Alan Balkany
          wrote on last edited by
          #4

          You can do morphing with only one image, e.g. http://www.mathworks.com/access/helpdesk/help/toolbox/images/index.html?/access/helpdesk/help/toolbox/images/f18-12508.html&http://www.google.com/url?sa=t&ct=res&cd=1&url=http%3A%2F%2Fwww.mathworks.com%2Faccess%2Fhelpdesk%2Fhelp%2Ftoolbox%2Fimages%2Ff18-12508.html&ei=S7ltSr2BOKiltgffqPyIDA&rct=j&q=morphology+dilation+erosion&usg=AFQjCNG_IFMf7wRPv1cvRQfnQZXpw9KYWw&sig2=wJfjLbHnRWUpLTX_1S1EOQ[^] To simulate the facial movements for talking, it seems like you'd also need a "stretching" transformation. For example, to show the long "e" sound being pronounced, you'd stretch the sides of the mouth outward. Your GUI could allow you to draw vectors on the screen over an image of the mouth in a neutral position. Then you could interpolate between these vectors for a smooth transition from "stretched" to "unstretched". You'd then apply this transformation gradually when the long "e" sound appeared in the speech. Ditto for other spoken sounds.

          N 1 Reply Last reply
          0
          • A Alan Balkany

            You can do morphing with only one image, e.g. http://www.mathworks.com/access/helpdesk/help/toolbox/images/index.html?/access/helpdesk/help/toolbox/images/f18-12508.html&http://www.google.com/url?sa=t&ct=res&cd=1&url=http%3A%2F%2Fwww.mathworks.com%2Faccess%2Fhelpdesk%2Fhelp%2Ftoolbox%2Fimages%2Ff18-12508.html&ei=S7ltSr2BOKiltgffqPyIDA&rct=j&q=morphology+dilation+erosion&usg=AFQjCNG_IFMf7wRPv1cvRQfnQZXpw9KYWw&sig2=wJfjLbHnRWUpLTX_1S1EOQ[^] To simulate the facial movements for talking, it seems like you'd also need a "stretching" transformation. For example, to show the long "e" sound being pronounced, you'd stretch the sides of the mouth outward. Your GUI could allow you to draw vectors on the screen over an image of the mouth in a neutral position. Then you could interpolate between these vectors for a smooth transition from "stretched" to "unstretched". You'd then apply this transformation gradually when the long "e" sound appeared in the speech. Ditto for other spoken sounds.

            N Offline
            N Offline
            NazarHussain
            wrote on last edited by
            #5

            Thanks for this tip. I will work to implement this scenario. Meanwhile if you find any other way to accomplish it, please let me know. Thanks in advance. Regards Nazar

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups