How can I get this code working in case of video having colored background? The following is my code. import cv2 import