Automate Texture paint for frame range

Hey guys,

I am trying to automate cloning image textures from the camera perspective for a model generated using photogrammetry from thousands of camera perspectives.
Every frame image data is supposed to be cloned onto a texture from an image sequence using a mask. The cloning should be done looking through the camera each frame (camera is animated) in a given frame range.

Can anybody help me writing a script that accesses the image data and clones another texture onto it? I am able to code the functionality with the frames but I can’t find a way to automate texture cloning through the camera. Any help is appreciated

cheers, Alex