# Capture image with python script

**URL:** <https://forums.unrealengine.com/t/capture-image-with-python-script/234063>\
**Category:** Modding\
**Tags:** unreal-engine\
**Created:** [June 7, 2021, 1:09pm UTC](https://forums.unrealengine.com/t/capture-image-with-python-script/234063 "2021-06-07T13:09:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![GalaxyCapatain](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GalaxyCapatain](https://forums.unrealengine.com/u/GalaxyCapatain)\
**Post date:** [June 7, 2021, 1:09pm UTC](https://forums.unrealengine.com/t/capture-image-with-python-script/234063/1 "2021-06-07T13:09:40Z")

</div>

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🙏
