Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding in Object Tracking #11

Merged
merged 31 commits into from
Mar 17, 2021
Merged
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update detect.py
  • Loading branch information
luke-iqt committed Mar 3, 2021
commit 160f066f503627f97e18656de2434b4aa839f46a
4 changes: 2 additions & 2 deletions object-tracker/opencv/detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def object_to_follow( objs, labels, trdata, trackerFlag):
best_score = obj_score

obj_id = int(obj[5].item())
print("x0: {} y0: {} x1: {} y1: {}".format(x0,y0,x1,y0))
print("x0: {} y0: {} x1: {} y1: {}".format(x0,y0,x1,y1))
follow_x = x0 + ((x1 - x0)/2)
follow_y = y0 + ((y1 - y0)/2)
else:
Expand All @@ -262,7 +262,7 @@ def object_to_follow( objs, labels, trdata, trackerFlag):
best_score = obj_score

obj_id = int(obj[5].item())
print("x0: {} y0: {} x1: {} y1: {}".format(x0,y0,x1,y0))
print("x0: {} y0: {} x1: {} y1: {}".format(x0,y0,x1,y1))

follow_x = x0 + ((x1 - x0)/2)
follow_y = y0 + ((y1 - y0)/2)
Expand Down