Low Resources Algorithm for Video Surveillance