I am using contours to find a the coordinates of a ball on a table using opencv. The problem I am getting is sometimes I get the len of contour array as 0 which breaks my co