get_motion_events/4

If your server supports a motion history buffer, the predicate:

     get_motion_events(+Window, +Start, +Stop, -TimeEvents)
     

Unifies TimeEvents with a list of terms of the form time_coord(Time, X, Y).

This are all the events in the motion history buffer that fall between the specified timestamps Start and Stop (inclusive), and have coordinates that lie within the specified Window.

The Start and Stop arguments should be timestamps, in milliseconds, or the constant current_time.