Patent attributes
Aspects of the disclosure relate to detecting an emergency vehicle. For instance, a plurality of images may be taken from a perspective of an autonomous vehicle. One or more gates representing a region of interest at a respective distance from the vehicle may be generated for the images. A plurality of lights may be detected within the one or more gates. A first candidate emergency vehicle may be identified from a detected plurality of lights in one or more gates of one of the images, and a second candidate emergency vehicle may be identified from a detected plurality of lights in one or more gates of another of the images. The first and second candidate emergency vehicles are determined to be the same emergency vehicle and to be active. An operational system of the autonomous vehicle is controlled based on the determination that the given emergency vehicle is active.