Mixed Reality and Spectator View

That is really good!
What is the process for doing that?
How do you feed the masked image into UE4 ?