TadasBaltrusaitis / OpenFace

OpenFace – a state-of-the art tool intended for facial landmark detection, head pose estimation, facial action unit recognition, and eye-gaze estimation.
Other
6.98k stars 1.85k forks source link

Linking against 3rd party libraries (Dlib/OpenCV) from APT repos in Ubuntu #127

Closed quetric closed 6 years ago

quetric commented 7 years ago

Thanks for your work Tadas. I'm working on building a research project linked against OpenFace.

Is there a specific reason for re-hosting headers/libraries for dlib and opencv in your repo, as opposed to using preinstalled versions from APT repositories in Ubuntu?

Could you comment on the feasibility of porting OpenFace to OpenCV 2.4? I target the Jetson TK1 (nvidia Tegra K1) platform which uses a preinstalled and GPU-optimized version of opencv 2.4 (opencv4tegra). I can compile and use opencv 3.1 but most likely I won't get the same performance on the Tegra GPU.

TadasBaltrusaitis commented 7 years ago

There are two reasons for that:

  1. (OpenCV) Ability to run out of the box on Windows without downloading/compiling separate libraries
  2. (dlib) I have slightly modified the code for dlib to use TBB threads for faster face detection and histogram of oriented gradients extraction

I don't think there are any particular clashes with OpenCV 2.4, although I can't guarantee that. The code was OpenCV 2.4 some time ago, but was moved to version 3 because of various speed and stability improvements. I don't believe I use any particular 3.0 or later functionality, but as the header structure changed you might need to change that in the code.

TadasBaltrusaitis commented 6 years ago

You can now link to external OpenCV and dlib, no need to compile it separately.