each object will get an unique id. As far as possible, the id will remain unchanged for the same object.
Some of the code (centroidtracker.py) is from https://pyimagesearch.com with small changes from my part. Thanks to https://pyimagesearch.com Some videos are from youtube.