Light estimation needed for improve visual integration

Hi, is there possible to have light estimation script from video image for change light intensity and orientation maybe please ?

Thanks in advance.