mirror of
https://github.com/rendies/People-Counting-in-Real-Time.git
synced 2025-05-14 18:09:29 +07:00
10 lines
328 B
Python
10 lines
328 B
Python
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 |