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.
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.
|
|
|---|
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.
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.
|
|
|---|
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
- Build a road object.
- Bind cameras to it.
- Name the violation.
- Build the entry and exit lines.
- Set up the crossing lights control.
- Combine the lines and signal into a rule.
- Turn on the railway crossing control.
- 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.
- On the Road objects page in the settings, click as shown ...
- Set the camera filter to All ...
- Check the functions assigned to the camera: monitoring entry, exit, railroad crossing lights, or overview under the Camera type.
- Enter the camera label to be shown wherever relevant to the traffic lights violation rules.
- Select a color for the camera icon on the crossroads scheme.
- Click Bind.
- Drag and drop the camera icon on the road object scheme to place it at its actual location.
- Redraw the camera’s field of view on the scheme to represent it realistically.
- Repeat steps 3 - 8 until all Entry, Exit, Railroad crossing lights, and Overview functions are assigned to one or multiple cameras.
... to open the road object screen, which is empty so far.
... 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.
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.
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.
Name the violation
On the Violation name page in the settings, click the “+” to open a window, then:
- Set Violation type = "Railroad traffic lights violation”.
- Set an event priority value.
- Type a descriptive name for the planned violation at this particular crossroads, e.g., “Railway in danger”.
The name will appear on the rule name list when it comes to formulating the rule.
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 lanes. Give 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.”
Formulate the rule
Now combine the lanes and crossing lights into the rule.
- 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”).
- Click “+” to select the planned traffic light violation name (e.g. “Railway in danger”) under Railroad crossing lights violations.
- On the Traffic lights list, select the label of the camera watching the crossing lights, e.g., “Watching lights”.
- On “Do not go” light list, select “Light on (blinking red)” under the crossing lights name (e.g., “Railway crossing on route 66”).
- Define numerically the T ime to cross, sec and Ignore signal for ... sec parameters.
- On the Exit/Maneuver end list, select the exit lane name (e.g., “Out”) under the exit camera label (e.g., “Watching exit”).
- 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.
Checkmark Stop line to run control over stop line violations at the crossing.