NumesSanguis / FACSvatar

An Open Source Modular Framework From Face to FACS Based Avatar Animation (Unity3D / Blender)
GNU Lesser General Public License v3.0
430 stars 97 forks source link

How to apply it to my webcam ? #6

Open inpernal opened 5 years ago

inpernal commented 5 years ago

Hi NumesSanguis

I have followed the instruction 'simple how to run' but I don't know how to apply it to my webcam. So, I wanna get advice.

NumesSanguis commented 5 years ago

Hello inpernal,

The 'simple how to run' is only for the offline mode. First try to download the official version of OpenFace v2.0.3 here (on Windows): https://github.com/TadasBaltrusaitis/OpenFace/releases

If that works, follow the instructions of 'OpenFace_how-to-compile.txt' under the folder 'openface'. https://github.com/NumesSanguis/FACSvatar/tree/master/openface

I would rather just provide a download, but I haven't got permission to upload a modified version of OpenFace (yet).

Let me know if you run into any more trouble :) The documentation of FACSvatar should be updated by middle-end of August.

inpernal commented 5 years ago

Hi NumesSanguis

If I'm on a Mac, is it impossible to use a webcam? Because the project type isn't support in Visual Studio for mac.

Thanks for your help :)

NumesSanguis commented 5 years ago

At the moment, the ZeroMQ is incorporated in GUI of OpenFace, so it's limited to Windows :/ There is hope though. There are two ways to solve this:

  1. Have 1 Windows laptop / PC. FACSvatar works by sending messages over TCP, so data can be send to other computers and you can do all your other stuff on Mac.
  2. OpenFace's core is in C++. If you can modify some part of it to send the data over the ZeroMQ library (http://zeromq.org/), you can use the rest of the framework (modules) without any modifications. Unfortunately, I'm not good at C++, so I haven't tried it myself yet.

If you want to try the 2nd way, I'll try to help you as much as I can!