Can find ball and goal yeah

This commit is contained in:
2018-06-23 16:22:31 +02:00
parent 700c7a73c7
commit 901ee6de11
4 changed files with 63 additions and 18 deletions

View File

@@ -122,7 +122,7 @@ class GoalFinder(object):
return contour[:,0].min(), contour[:,0].max()
def goal_center(self, contour):
l, r = self.left_right_post(self, contour)
l, r = self.left_right_post(contour)
return (l + r) / 2
def draw(self, frame, goal):