adjusting table contents color based on background image

Hello there,

Is there any way of automatically changing the font color based on the image at the background? The image keeps changing and may have dark colors. So if the image has black color the font that appears on it should automatically change to white. Is there any way of achieving this?

Thank you