Online tracking and event clustering for vision systems