OpenFace
A state-of-the-art facial behavior analysis toolkit
... state-of-the-art results in all of these mentioned tasks.
OpenFace is available for Windows, Ubuntu and macOS installations. It is capable of real-time performance and does not need to run on any specialist hardware, a simple webcam will suffice.