Capture image with python script

Hi,

I’m able to spawn a CineCameraActor and control it through python.

However, I don’t know how to capture image from the actor.

I have found the functions below but I cant figure how to connect the to my Actor:

  1. unreal.UserDefinedImageCaptureProtocol.write_image_to_disk.
  2. unreal.AutomationLibrary.take_automation_screenshot_at_camera(world_context_object=unreal.World().get_world(),
    latent_info = unreal.LatentActionInfo,
    camera=myCamera,
    name_override=True,
    notes=‘notes’,
    options = O)
    I don’t know what is latent_info?

If someone has a way to capture image from camera actor with python I will be really grateful.

Thank you🙏