A Distributed Framework for Event Detection in Video Surveillance Context