Thesis code for PeopleTracker