blobs module

class blobs.BlobTracker[source]

The tracker object, which keeps track of a collection of pedestrian blobs

check_frame(blob, frame)[source]

Given an (x,y) co-ordinated, check if that position is inside the central frame (i.e. is not inside the border region

init_blobs(blobs, fnum)[source]

Initialise a set of blobs, from a list of initial (x,y) co-ordinates, in the format [(x,y), (x,y), ... ]

track_blobs(blobs, frame, fnum)[source]

Main update call. Takes a list of new, observed blob co-ordinates, a rectangular frame specifier of the form [left, bottom, right, top] and a frame number, and updates the positions of the virtual blobs.

class blobs.VirtualBlob(x, y)[source]

Represents a single pedestrian blob.

decay()[source]

Age the blob by one unit. When life<=0, return True, else return False

move()[source]

Apply the current estimated velocity to the blob; used when the blob is not observed in the scene

set_location(x, y)[source]

Change the position of the blob _without_ any distance filtering or velocity calculation.

update_location(x, y)[source]

Update the current state of the blob to the new given position, if it is not too far away (<DISTANCE_THRESHOLD away) from the previous position

Previous topic

Optmising the Pedestrian Tracker for Your Videos

This Page