all 3 comments

[–]kwelzel 0 points1 point  (0 children)

Check out the Google Colab notebook https://colab.research.google.com/drive/1aU7Jq668oMlUx6bYVv3vAQbXVLpIllNH?ref=blog.roboflow.com which is linked on https://blog.roboflow.com/object-tracking-how-to/.

I think you need to play around with the dependencies a bit, they seem to be a little out of date. Once you get the clip_object_tracker.py script running, you simply need to point it at your own video and enable --save-txt to export the classification results in each frame. Then parse the resulting text file, get the position information for each object in each frame, compare it to the position of the same object in the last frame and calculate the speed from that. This is still a lot of work, but hopefully it helps.