TSPS is a cross-platform Toolkit for Sensing People in Spaces. It is an open-source tool for creating interactive applications based on natural user interaction. It wraps computer vision algorithms into a simple, easy-to-use interface.
TSPS uses a client-server model, with the TSPS application acting as the server. The app reads from an Input (camera, movie file, etc), runs computer vision alogrithms on the Input data, and sends what data it finds to an Output or Outputs (the Client[s] in this model).
Outputs connect to TSPS and receive current data as long as 1) something is happening in the Input and 2) they stay connected. They can be created in a number of tools, examples of which are listed in the Downloads section.
TSPS data consists of a set of People objects, which can be used to determine the number of People in the scene as well as specific information about each Person (see below). It sends specific events related to these People, noting when they enter, move through, and leave the scene (your Input).
There is a TSPS plug-in for Unity3D. Andre hasn’t been able to get the plug-in to work with the latest version of Unity3D, as of this writing.