Capturing direction of video camera in real-time by the use of heuristic algorithm