Python Script on camera blueprint

Hey, relatively new to UE5. I have a really simple python script that uses opencv to apply a colormap to an image.

import cv2

img=cv2.imread(‘test.jpg’)

imc=cv2.applyColorMap(img,cv2.COLORMAP_SPRING)

Is there a way I can apply this to a camera blueprint? I just have an empty blueprint and places a camera actor in it.

I want it so that colormap from the python code is always just applied to the camera, so instead of running the code after I render, I just have the colormap applied in the ue5 camera directly.

Thanks