Logo recognition for videos