I am looking for a reinforcement or semi-supervised model to dynamically change background of video and to get better results in all lighting conditions .
For the solution to your query, I would like to suggest you a good video : https://www.youtube.com/watch?v=eFdtByckAzM and https://au.mathworks.com/matlabcentral/answers/116324-background-subtraction-algorithm-for-real-time-video