Track pedestrians and vehicles using YOLOv3 with tensorflow and tensornets To run this code, make sure you have tensorflow, OpenCV and numpy. To install tensornets library, do 'pip install tensornets'. Change the path of the video in the code to your video's directory address or to 0 for webcam.
Check out https://hackerstreak.com/track-vehicles-and-people-using-yolov3-and-tensorflow/ for the complete tutorial.