Object tracking and recognition by edge motocompensation