What is the most efficient way to get screen camera pixels?

I want to stream my camera pixels out of unreal engine into another application. What would be the most efficient way to do this? A scenecapture2D camera with a render target texture is one way to make those pixels available, but im not sure it is the best way.

One idea that came to mind… Is it possible to get the memory address of the viewport pixels and read directly from there?