IREXDocs
EN

Traffic Lights

The purpose of the module is to ...:

  1. Detect the condition of the traffic lights signals (on, off, blinking), circular lights, and arrows included.
  2. These are the traffic lights set up in the RULES section of the video analytics settings of the module. Every time the condition changes, the module outputs an event that can be seen on the Events page with the filter configuration, as shown.

    Events page with the Analytics Modules filter showing TrafficLights, Circular lights change, and Arrow light change checked, and an event card for camera BK 08 showing signal TL 01 Amber

  3. Supply information about the condition of the traffic lights signals to the traffic rule controller.
  4. These are the traffic lights set up in the TRAFFIC OBJECTS section of the video analytics settings of the module. 

    For instance, the module “tells” the traffic rule controller that the red light was on at the moment the car crossed the stop line, so the controller makes the decision that the “Stop line crossed” violation did occur.

    Diagram showing a car crossing the stop line at a crossroads while the traffic light signal is red

Camera Requirements

To select cameras, use specialized software (for example, IP Video System Design Tool) or a free lens calculator from the camera manufacturer.

Characteristic Requirement
CMOS sensor size 1/3″ or larger
CMOS sensor light sensitivity 0.01 lux or less for a color image with automatic gain control (AGC) on at 30 IRE; 0.05 lux or less for a black-and-white image with AGC on at 30 IRE
Electronic shutter speed adjustable from 1/25 to 1/10,000 second, or a wider range
Electronic shutter speed adjustment modes automatic / adjustment range / manual
Number of video streams 2 or more
Primary stream resolution 1280×720 to 2560×1920 pixels
Secondary stream resolution (optional, for layouts) 320×240 to 704×576 pixels
Video frame rate 10 to 25 frames per second
Lens focal length 4 mm or longer
Primary stream bitrate up to 8 Mbps
Secondary stream bitrate up to 1 Mbps
Video encoding type constant (CBR) / variable (VBR)
Video encoding protocol H.264 HP/MP/BP, H.265
Network protocol support TCP/IP, ICMP, HTTP, HTTPS, RTP, RTSP, NTP, SNMP, IGMP, IPv4/IPv6
Video transmission protocol RTP over TCP
ONVIF compatibility (optional, for remote camera control) ONVIF (PROFILE S, PROFILE G)
Adjustable image parameters saturation, brightness, contrast, sharpness, AGC, and switching between color and black-and-white
Image parameter adjustment modes automatic / manual / scheduled
AGC adjustment modes automatic / manual (the gain can be limited)
Image enhancement digital noise reduction (DNR), backlight compensation (BLC/HLC), and hardware wide dynamic range (WDR) of 120 dB or more
Noise reduction adjustment automatic / manual (noise reduction levels can be adjusted)
Backlight compensation adjustment automatic / manual (a target zone for backlight compensation can be set)
Wide dynamic range adjustment automatic / manual (the WDR level can be limited)
Built-in illumination 30 meters or more
Illumination modes automatic / intelligent / manual (range and intensity can be adjusted)

Camera Mount Requirements

Characteristic Requirement
Camera tilt relative to the horizon Side view of the camera tilt, the angle from the horizon to the camera's line of sight +5° to +30°
Camera pan from the direction of approach Top view of the camera pan, the angle from the direction of approach to the camera's line of sight −45° to +45°
Camera roll about its axis Front view of the camera roll, the frame rotated about the camera axis relative to the horizon −5° to +5°
Image quality at the border of the controlled zone 150 pixels per meter or more
Recommended mounting height 4 to 6 meters above ground level (1 to 2 meters above the traffic light in view)
Illumination of the controlled zone 50 lux or more across the camera scene

Tips to Set Up the Module

  • Light frame must be over 16x16 px in size.
  • A light frame should encompass the brightest light area; try not to allow empty zones or light caps inside the frame.
Correct
Incorrect
Correct example of light frames tightly bounding the red, yellow, and green traffic light lenses

Incorrect example of light frames misaligned and not tightly bounding the red, yellow, and green traffic light lenses

Main Module Settings

The TrafficLights module can capture a traffic light shift from its normal position, for example in a strong wind or after a mechanical impact.

To capture a shifted traffic light, on the camera that monitors that traffic light:

  1. With the TrafficLights module turned on, on the Main tab turn on the Traffic lights shifted event option and set its priority.
  2. TrafficLights Main tab with Traffic lights shifted turned on at Normal priority

  3. Click Apply.

With Traffic lights shifted turned on, the platform tracks the actual position of the traffic light sections and keeps recognizing signals. A Traffic lights shifted event is generated if the sections shift by more than 70% of their size. Capturing that event does not stop the module.

Set Up Traffic Lights for Events

Then on the RULES tab,  set up the traffic lights to be monitored to output events every time a signal changes.

Set Up the Circular Lights Control

  1. Run the Circular light change as shown.
  2. TrafficLights RULES tab with the Add rule menu showing Circular lights change, Arrow light change, and Railroad crossing lights change options

  3. On the card of the same name that has appeared, enter the event name.
  4. Build frames around the red, yellow, and green lights, keeping the tips in mind.
  5. Circular lights change rule card with calibration frames drawn around the red, yellow, and green lights on a traffic signal in the camera feed

  6. Click the “+” as shown to repeat the same procedure with the secondary lights, e.g. at the exit from the crossroads. 
  7. These shall be considered a backup for the main ones, e.g., in case the main signals get screened or dysfunctional.

  8. Click the Apply.

The module will then start streaming the signal change events onto the Events screen. Such events can later be found using the by-type or by-name event filters.

Set Up Arrow Signal Control

  1. Run the Arrow light change as shown.
  2. TrafficLights RULES tab with the Add rule menu showing Circular lights change, Arrow light change, and Railroad crossing lights change options

  3. On the card of the same name that has appeared, enter the event name.
  4. Build the frame around the arrow, keeping the tips in mind.
  5. Arrow light change rule card with a calibration frame drawn around a green arrow signal in the camera feed

  6. Click the “+” as shown to repeat the same procedure with the secondary arrow, e.g., at the exit from the crossroads. 
  7. It shall be considered a backup for the main arrow, e.g., in case it gets screened or dysfunctional.

  8. Click the Apply.

The module will then start streaming the arrow light change events onto the Events screen. Such events can later be found using the by-type or by-name event filters.

Set Up Railway Crossing Signals

Such signals are required to control violations at railway crossings.

  1. Click Railroad crossing light change as shown
  2. TrafficLights RULES tab with the Add rule menu showing Circular lights change, Arrow light change, and Railroad crossing lights change options

  3. On the card that opens, enter an event name.
  4. Railroad crossing lights change rule card with Red 1 and Red 2 calibration frames drawn around railway crossing signal lights

  5. Build the frames around the railway crossing lights.
  6. Click Apply.

Set Up Signals for Traffic Rules Violations

On the TRAFFIC OBJECTS tab, set up the lights and arrows that will be reported to the traffic rule controller, thus enabling it to make its decisions about whether a traffic lights violation actually occurred.

Click the Circular lights, Arrows or Railroad crossing lights on this tab, and then follow the same routine to build the frames around the lights that will be watched.

Give the traffic lights and arrows self-explanatory names, since they will be needed when setting up the “Do not go” signal in the crossroads crossing rules. For instance, “Left-pointing arrow” may be a good name for the arrow that controls left turns at a crossroads, etc.