IREX
EN

Railway crossing violations

Definition

Traffic lights at railway crossings have different designs from those at city crossroads, while the “Do not go” signal is typically flashing red.

Railway crossing traffic light with the flashing red do-not-go signal illuminated

Therefore, the detection of violations at railway crossings requires some changes to that at urban road crossings, although the logic is preserved in its essential features.

A “Railway traffic light violation” occurs if a car:

Case A

  • Crosses the entry line (e.g., the “In” line below) while the flashing red is on,

AND

  • Crosses the exit line (e.g., the “Out” line below) while the flashing red light is still on.
Diagram of railway tracks with dashed Entry (In) and Exit (Out) lines and a railroad crossing lights icon
Timeline showing the entry and exit lines both crossed while the traffic lights flashing red signal is on

However, a minor mismatch between entry/exit timestamps vs red light gets on/off ones 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 flashing red on and off transitions relative to when a car enters the crossing

Case B

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

  • Crosses the entry line (e.g., the “In” line below) while the flashing red is on,

AND

  • Crosses the exit line (e.g., the “Out” line below) when the flashing red is already off, yet the entry-to-exit time was less than a predefined limit Time to cross.
Diagram of railway tracks with dashed Entry (In) and Exit (Out) lines and a railroad crossing lights icon
Timeline showing the entry line crossed while flashing red is on and the exit line crossed after flashing red turns off, 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.

Workflow to set up railway 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 crossing lights control.
  6. Combine the lines and signal into a rule.
  7. Turn on the railway crossing control.
  8. Review the result.

Build the road object

Do so as described here; give it a clear descriptive name. e.g., “Railroad crossing”.

Bind cameras

Detecting a traffic lights violation at a railway crossing requires cameras to monitor the entry and exit lines, as well as the railway 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 the Railroad crossing road object

    ... to open the road object screen, which is empty so far.

  3. Set the camera filter to All ...
  4. Camera list filter set to All in the Railroad crossing road object panel

    ... to run Bind to road object on the camera (or one of the cameras) intended to monitor the crossing (entry/exit line of crossing lights monitoring). The window of the same name opens.

    Bind camera to road object dialog with Camera Type set to Railroad crossing light

  5. Check the functions assigned to the camera: monitoring entry, exit, railroad crossing 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., “Watching entry/exit” for an entry and exit camera, or “Watching lights” for the camera monitoring the lights), 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 represent it realistically.
  13. Repeat steps 3 - 8 until all Entry, Exit, Railroad crossing 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 = "Railroad traffic lights violation”.
  2. Set an event priority value.
  3. Type a descriptive name for the planned violation at this particular crossroads, e.g., “Railway in danger”.
  4. The name will appear on the rule name list when it comes to formulating the rule.

    Violation name panel with Railroad crossing lights violation expanded and Railway in danger selected

Build the entry and exit lanes

In the CarTrack Pro settings for the camera monitoring entry or exit to and from the railway crossing, 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 the crossing lights control

On the camera designated to monitor the railroad crossing lights, set up the flashing red signal that controls traffic along the crossing. Give the monitored lights a self-explanatory name, e.g., “Railway crossing on route 66.”

Video Analytics tab for a traffic lights camera with the Add traffic object menu open and Railroad crossing lights selected

Formulate the rule

Now combine the lanes and crossing lights into the rule.

  1. Run the Violation rules in the three-dot menu on the road object page — the window of the same name opens. On the left-hand sidebar, find the entry camera label 1 (e.g., “Watching entry”) and the entry lane name 2 (e.g., “in) selected under the road object name 3 (e.g., “Railroad crossing”).
  2. Violation rules dialog showing the Railroad crossing road object, Watching entry camera, and In entry lane selected

  3. Click “+” to select the planned traffic light violation name (e.g. “Railway in danger”) under Railroad crossing lights violations.
  4. Violation name panel with Railroad crossing lights violation expanded and Railway in danger selected

  5. On the Traffic lights listselect the label of the camera watching the crossing lights, e.g., “Watching lights”.
  6. Railway in danger rule with the Watching lights camera selected under Traffic lights

  7. On “Do not go” light list, select “Light on (blinking red)” under the crossing lights name (e.g., “Railway crossing on route 66”).
  8. Railway in danger rule with Light on (blinking red) selected under Do not go light for Railway crossing on route 66

  9. Define numerically the T ime to cross, sec and Ignore signal for ... sec parameters.
  10. On the Exit/Maneuver end list, select the exit lane name (e.g., “Out”) under the exit camera label (e.g., “Watching exit”).
  11. Railway in danger rule with the Out exit lane selected under the Watching exit camera in Exit/Maneuver end

  12. Click Save.

Turn on the railway crossing control

Run Turn on control in the three-dot menu on the road object page to checkmark Railroad crossing lights violation in the window that opens, and then click Turn on.

Turn on Road Object control dialog with Railroad crossing lights violation checked

Checkmark Stop line to run control over stop line violations at the crossing.