Moving object tracking and an application in intelligent space