def run(): vis = Vision(True) vis.color = Color.Red while cv2.waitKey(10) == -1: print vis.detectObjects(Feature.Ball)