Visual recognition for dynamic scenes