IREX
EN

Set up traffic lights violations

Definitions

A “Traffic light violation” occurs if a car:

  • Enters a crossroads by crossing the entry line (e.g., the “In” line below) after the red light gets switched on,

AND

  • Leaves the crossroads by crossing the exit line (e.g., the “Out” line below) before the red light goes off.
Diagram of a crossroads with dashed Entry (In) and Exit (Out) lines and a red traffic light icon
Timeline labeled Case A showing the entry and exit lines both crossed while the traffic light is red

However, a minor mismatch between entry/exit timestamps vs red light goes on/off is considered permissible. It must be less than Ignore signal for ... sec parameter value. This is to avoid too many minor violation events.

Diagram of the Ignore signal for ... sec tolerance window around the red light on and off transitions relative to when a car enters or exits the crossroads

If the stop line control is also enabled at the crossroads, traffic light violations can occur in situations like this:

Timeline labeled Case B showing the entry line crossed while the light is red and the exit line crossed after it turns green, within the Time to cross limit

Note icon The timestamp of the event when the car crosses the line is detected, considering the value of the Focal point.

Note icon The entry-to-exit time span should not exceed 180 seconds; otherwise, it is not considered a violation.

Note icon A crossroads may be complicated enough to have multiple entry and exit lines. A car, in its turn, may make a tricky maneuver at the crossroads, crossing many of them. To avoid confusion in a situation like this, the program automatically builds forbidden entry-exit pairs in a way illustrated by the diagram below. i.e. a pair is built from the lines crossed strictly in turn, with account of the entry-to-exit direction.

Timeline diagram showing entry and exit lines crossed in turn, illustrating how the system pairs each entry line with the next exit line crossed

Note icon  An arrow in an "Off" condition shall not be considered a "Do not go" signal if the yellow circular light is continuously flashing, thus signalling that the crossroads is out of control.

Traffic light with a continuously flashing yellow circular light above an arrow signal, indicating the crossroads is out of control

Workflow to set up traffic lights violations

  1. Build a road object.
  2. Bind cameras to it.
  3. Name the violation
  4. Build the entry and exit lines
  5. Set up the “Do not go” signal.
  6. Combine the lines and signal into a rule.
  7. Turn on traffic lights control.
  8. Review the result.

Bind cameras

Detecting a traffic lights violation requires cameras to monitor the entry and exit lines, as well as the traffic lights themselves. Entry and exit cameras must have CarTrack Pro enabled, and the camera monitoring the traffic lights must have the “Traffic lights” module. However, these modules can be combined on a single camera.

  1. On the Road objects page in the settings, click as shown ...
  2. Road Objects settings page listing road objects with an arrow pointing to an entry

    ... to open the road object (crossroads) screen.

    Road object screen with camera list filter menu open, showing the Bind to road object option

  3. Set the camera filter to All to run Bind to road object on the camera (or one of the cameras) intended to monitor the crossroads. The window of the same name opens.
  4. Bind camera to road object dialog with Camera Type options Entry, Exit, Traffic Light, and Overview

  5. Check the functions assigned to the camera: monitoring entry, exit, traffic lights, or overview under the Camera type.
  6. Entry and exit cameras must have CarTrack Pro enabled, and the camera monitoring the traffic lights must have the “Traffic lights” module. These modules can also be combined on the same camera.

  7. Enter the camera label to be shown wherever relevant to the traffic lights violation rules.
  8. Choose a self-explanatory label (e.g., “Lane control” for an entry and exit camera, or “Arrow control” for the camera observing the arrow at an arrow-controlled crossroads), according to the camera’s function. See step 3.

  9. Select a color for the camera icon on the crossroads scheme.
  10. Click Bind.
  11. Drag and drop the camera icon on the road object scheme to place it at its actual location.
  12. Redraw the camera’s field of view on the scheme to make it realistic.
  13. Repeat steps 3 - 8 until all Entry, Exit, Traffic lights, and Overview functions are assigned to one or multiple cameras.

Name the violation

On the Violation name page in the settings, click the “+” to open a window, then:

  1. Set Violation type = "Traffic lights violation”
  2. Set an event priority value.
  3. Type a descriptive name for the planned violation at this particular crossroads, e.g., “Left turn under red”.
  4. The name will appear on the rule name list when it comes to formulating the rule.

    Create new Violation name dialog with the name Left turn under red and violation type Traffic lights violation

Build the entry and exit lanes

In the CarTrack Pro settings for the camera monitoring entry or exit to and from the road object, build the entry and exit lanesGive these lanes clear names, e.g. “In” or “Out,” to make it easier to combine them with the “Do not go” signal into a rule later.

Set up traffic lights control

On the camera designated to monitor the traffic lights, set up the circular lights and arrows that control traffic across the road object. Give the monitored lights and arrows self-explanatory names, e.g., “Left-pointing arrow.”

Formulate the rule

Now combine the lanes and traffic lights into the rule.

  1. Run the Violation rules in the three-dot menu on the road object page.
  2.  Under Cameras click the camera label meant to monitor the entry to the road object (arrow 1 in the picture below).
  3. Under Traffic objects click the entry lane (e.g. "In", see arrow 2), which is one of the Entry lanes build here.

    Violation rules panel with the Entry and exit camera label selected and the In traffic lane chosen under The 5th and Broadway road object

  1. Click "+" to select the planned traffic light violation name (e.g. "Left turn under red") under Traffic lights violations.
  2. Violation name list with Left turn under red selected under Traffic lights violation

  3. On the next screen in the Traffic lights text  box select the label of the camera watching the traffic lights, e.g., "Arrow control".
  4. Left turn under red rule with Arrow control selected as the Traffic lights camera and Left-pointing arrow - Light off selected as the Do not go light

  5. Under "Do not go" light find find the name of the signal of the signal that controls traffic across the crossroads, e.g., "Left-pointing arrow".
  6. Under that name, click the condition of the light that consitutes a violation when dring from the entry lane (e.g. "In") to the exit one. For instance it is "Light off" for an arrow.
  7. Define numerically the Time to cross, sec and Ignore signal for ... sec parameters.
  8. Left turn under red rule with Ignore signal for ... sec set to 3 and Time to cross, sec set to 20

  9. In the Exit lane box find the label of the exit camera, e.g. "Lane control".
  10. Under that name click the exit lane name, e.g. "Out".
  11. Click Save.

Turn on traffic lights violations control

Run Turn on control in the three-dot menu on the road object page to check Crossroads crossing in the window that opens, and then click Turn on.

Turn on Road Object control dialog with Crossroads crossing checked