applying same function on different data sets (video frames)

Can you provide a reproducible example then?