1. A non-transitory computer-readable medium comprising program code, comprising: program code for determining a first plane between a first location of an object on a first frame from a plurality of frames and a second location of the object on a second frame from the plurality of frames; program code for determining a second plane between the second location and a third location of the object on a third frame from the plurality of frames; program code for calculating a difference between the first plane and the second plane; and program code for determining whether a change in direction of the object has occurred by at least comparing the difference to a predetermined threshold.
1. A non-transitory computer-readable medium comprising program code, comprising: program code for determining a first plane between a first location of an object on a first frame from a plurality of frames and a second location of the object on a second frame from the plurality of frames; program code for determining a second plane between the second location and a third location of the object on a third frame from the plurality of frames; program code for calculating a difference between the first plane and the second plane; and program code for determining whether a change in direction of the object has occurred by at least comparing the difference to a predetermined threshold. 10. The non-transitory computer-readable medium of claim 1 , wherein program code for determining whether a change in direction of the object has occurred comprises: program code for determining a change in position of the object from the first frame to the second frame.