An in-vehicle vision system for dangerous situation detection