"Get" scene capture 2d frames in c++?

I have a scene capture 2d with texture target in my UE4 project.
What I am trying to do is to “GET” the frames that I get from the scene capture 2d component into my C++ script. This is where I am a newbie and do not know how to do it.

It would be great to have a basic c++ code that get those frames inside a variable/buffer for me to later process them (stream them or whatever I want)

If I am skipping some intermediate step, please do suggest.

Thank you.