Skip to content

Commit

Permalink
beautified
Browse files Browse the repository at this point in the history
  • Loading branch information
carlobrok committed Jul 1, 2020
1 parent 78e166b commit 86bbc0e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion speed_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,10 @@ def select_ref_line(event, x, y, flags, param):
cv2.line(frame, refPts[0], (x, y), (0, 255, 0), 4)
show_image()


data_saved = False


def save_speeds():
global data_saved

Expand Down Expand Up @@ -131,7 +133,6 @@ def distance(p1, p2):
return np.sqrt((p1[0] - p2[0])**2 + (p1[1] - p2[1])**2)



# Create a video capture object to read videos
cap = cv2.VideoCapture(videoPath)

Expand Down

0 comments on commit 86bbc0e

Please sign in to comment.