Skip to content

Commit

Permalink
Merge pull request #95 from tryolabs/fix-path-drawer
Browse files Browse the repository at this point in the history
Fix bug by removing reference to 'points_of_interest'
  • Loading branch information
joaqo committed Mar 25, 2022
2 parents 145177a + aff1686 commit b1b2943
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions norfair/drawing.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,8 +377,8 @@ def draw_tracked_boxes(

class Paths:
def __init__(self, get_points_to_draw=None, thickness=None, color=None, radius=None, attenuation=0.01):
if points_of_interest is None:
def points_of_interest(points):
if get_points_to_draw is None:
def get_points_to_draw(points):
return [np.mean(np.array(points), axis=0)]

self.get_points_to_draw = get_points_to_draw
Expand Down

0 comments on commit b1b2943

Please sign in to comment.