Pracownia-programowania/trackableobject.py

10 lines
329 B
Python
Raw Normal View History

2020-01-30 23:21:41 +01:00
class TrackableObject:
def __init__(self, objectID, centroid):
# store the object ID, then initialize a list of centroids
# using the current centroid
self.objectID = objectID
self.centroids = [centroid]
# initialize a boolean used to indicate if the object has
# already been counted or not
self.counted = False