Improved ball following

1. Made copyfiles a little saner
2. Implemented ball search when not in field of view
This commit is contained in:
2018-06-04 15:23:41 +02:00
parent 6aefab5694
commit 5035329de7
4 changed files with 55 additions and 61 deletions

View File

@@ -35,7 +35,6 @@ class BallFinder(object):
# only proceed if at least one contour was found
if len(cnts) == 0:
print('Nothin there')
self.history.appendleft(None)
return None
@@ -45,7 +44,6 @@ class BallFinder(object):
((x, y), radius) = cv2.minEnclosingCircle(c)
if radius < self.min_radius:
print('Nothin there')
self.history.appendleft(None)
return None