both facial motion capture and emotion recognition API?

Are there any APIs that can perform both markerless facial motion capture as well as emotion recognition ? Since both seem to use a 2d video frame as source and guessing where to put virtual markers and emotion recognition just does extra work on that data to guess the face emotion I assume it would make sense for an API that does both.

My personal requirements are

  1. webcam (USB cam) based
  2. preferrably open source
  3. definitely support for Linux

Just need it to dump numerical values each frame or nth of a second, nothing more required such as mapping to a 3d model.