Improved ball following
1. Made copyfiles a little saner 2. Implemented ball search when not in field of view
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user