How can I get camera footage in unreal engine5 and display it in python?

I would like to acquire camera footage in unreal engine 5 and display it in python, but is it possible to acquire camera footage using UDP communication, etc.?
use version:
unreal engine 5.1