Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python wrapper for FeatureExtraction #767

Open
wants to merge 27 commits into
base: master
from

Conversation

@frankiezafe
Copy link

commented Aug 29, 2019

This branch (python) contains all required modification in bash files, dependencies and code to compile a python shared library containing the FeatureExtraction example with minimal controls.

The main issues i had with the code are the linkage with python3:

  • upgrade of CMake (3.15.0) - see prepare.sh & compile_deps.sh
  • upgrade of Boost (1.71.0) + a custom compilation configuration - see prepare.sh & compile_deps.sh
  • adjustments on dlib cmake configuration - see compile_deps.sh

The main modification to OpenFace code has been done in Utilities::RecorderOpenFace to retrieve landmarks, head pose and gaze easily. That is certainly not the best way to do it but it was the fastest.

All CMakes of OpenFace have also been altered to compile libraries in SHARED and not in STATIC. For the dependencies, this has been done via cmakes, so nothing to change manually.

CMake and compilation has been tested on Linux Mint 18.4 only.

Even if not complete or well documented, i think this could be a good basis for a complete OpenFace python lib.

All the best, great work by the way.

@TadasBaltrusaitis

This comment has been minimized.

Copy link
Owner

commented Sep 10, 2019

This will take some time for me to take a proper look at, but looks very promising, and as you mentioned would serve as a great foundation for a proper python interface to OpenFace (which would be awesome).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.