# Traffic Lights

Determines the state of traffic lights, so that you can detect vehicles failing to stop for a red light.

Configuration Parameter | Description
--- | ---
AmberMinDuration | The minimum amount of time that the amber light must be on.
AmberRegion | The position of the amber light.
GreenRegion | The position of the green light.
Input | The image track to process.
MinLuminance | The luminance threshold at which Media Server considers a light to be on rather than off.
RedCyclesPerMinute | The range of acceptable frequencies for flashing red lights.
RedMinDuration | The minimum amount of time that the red light must be on.
RedRegion0 | The position of the red light.
RedRegion1 | The position of the second red light (for level crossings).
RegionUnit | (Deprecated) The units to use to specify the position of traffic lights.
SampleInterval | The interval at which frames are selected to be analyzed.
SegmentDuration | The maximum duration of a record in the `SegmentedResult` track.
Type | The analysis engine to use. Set this parameter to `TrafficLight`.

## Output Tracks

Output track | Description
--- | ---
`Data` | Contains a record for each analyzed video frame, describing whether the lights are red.
`Result` | Contains a record each time the lights change, describing whether the lights are red.
`SegmentedResult` | (Available only when processing video). The same as the `Result` track, except the duration of each record is limited by the parameter SegmentDuration. If a result exceeds the specified duration, Media Server begins a new record with the same ID.
`Start` | The same as the `Data` track, except it contains only the first record of each event.
`End` | The same as the `Data` track, except it contains only the last record of each event.

To see an example record, use the action GetExampleRecord.

_FT_HTML5_bannerTitle.htm