Search Unity

Mapping a user's face to an avatar model in Unity

Discussion in 'Editor & General Support' started by dmbfm, Apr 13, 2016.

  1. dmbfm

    dmbfm

    Joined:
    Apr 13, 2016
    Posts:
    17
  2. darkhog

    darkhog

    Joined:
    Dec 4, 2012
    Posts:
    2,218
    I have a question: Can this piece of software detect points automatically or do you have to click them yourself? If the latter, how fast detection algorithm is so I could use webcam input (after porting it to desktop platform) to achieve FaceRig-like effect (by detecting points automatically at 60fps and moving face bones accordingly) so e.g. in a multiplayer game with voicechat character's mouth would be synced with audio if user has a webcam.
     
  3. dmbfm

    dmbfm

    Joined:
    Apr 13, 2016
    Posts:
    17
    That can be done, but it's a little bit more complicated... You need to do some image/face recognition stuff.

    First you need to have a face detector algorithm, and then a facial feature detector.

    I think this can be done using OpenCV, which has a a wrapper for Unity: https://www.assetstore.unity3d.com/en/#!/content/21088

    Here is a facial feature detector using OpenCV: http://cmp.felk.cvut.cz/~uricamic/flandmark/, also https://github.com/cxcxcxcx/asmlib-opencv, but they are in C++.

    So it can be done... don't know how complex it would be. The C++ versions seem to be able to do this in real-time... I think the Unity Wrapper may be able to do it to, just don't know how it will play with doing this along with a game.
     
  4. norbertots

    norbertots

    Joined:
    Jul 4, 2014
    Posts:
    15
    Hi got some errors.. i download the project sources and open in Unity editor in Wndows and play .. i load the photo but after click done i cant add points in the image as show in video.
     
  5. QFord

    QFord

    Joined:
    Nov 9, 2013
    Posts:
    17
    faceunity do this job,but it's not free