import cv2 import numpy as np import math cap = cv2.VideoCapture(0) while (1): try: # an error comes if it does not find anything in window as it cannot find con