Home Tags Two algorithms for surveillance systems