A distributed framework for situation awareness on camera networks