Skip to content

Modified version of OpenFace to stream face and head data to a Python script using ZeroMQ

Notifications You must be signed in to change notification settings

mauman/OpenFace2Python

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a fork of the OpenFace project. I modified the code to add the streaming of face and head data to a Python script through ZeroMQ on Windows. I just needed it for a research project, but I realized that it was not available anywhere, so I decided to implement it (though in a quick and dirt way). Hopefully it can be of help for other people.

Instructions:

  • clone the repository
  • execute the two scripts "download_libraries.ps1" and "download_models.ps1" (right click "run with PowerShell")
  • open OpenFace.sln in Visual Studio 2019
  • choose the configuration x64/Release
  • build the solution
  • go to x64/Release and launch OpenFaceOffline.exe
  • do not change any parameter, just start the webcam from the first menu

The data is streamed as raw text through a ZeroMQ push (fire-and-forget) socket on 127.0.0.1:5000.

An example consumer script is provided (OpenFace_worker.py).

About

Modified version of OpenFace to stream face and head data to a Python script using ZeroMQ

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • MATLAB 56.1%
  • C++ 24.6%
  • HTML 8.9%
  • C# 6.5%
  • CMake 2.1%
  • Python 0.7%
  • Other 1.1%