IREXDocs
EN

Export Traffic Violation Report

A consolidated report about traffic rule violations can be exported according to user-defined criteria, such as the name of a crossroads, vehicle list, etc., and automatically send it to a pre-defined URL in the form of a JSON file. The recipient of the report might be an external application, e.g., for law enforcement, geo-referenced analysis of traffic rule violation statistics or any other.

The information provided in the report is comprehensive and detailed enough for law enforcement to undertake appropriate legal actions against traffic offenders, including all relevant snapshots.

The output file is an array of JSON descriptors of violation events, each of which has the form:

{
  "c_source_org": 2,
  "source_id": "24145286341509",
  "zone_id": 37,
  "cameras": [
    99,
    98
  ],
  "zone_name": "...",
  "au_place": "...",
  "au_lati": "53.9492007425645",
  "au_long": "27.596972286701206",
  "c_crime_type": "...",
  "au_mark": 2637,
  "au_vehicle": "car",
  "transp_num": "5159HT5",
  "au_country": 112,
  "au_life": "05.04.2019 13:21:45",
  "fix_date": "05.04.2019 13:27:06",
  "a1": "base64",
  "a2": "base64",
  "a3": "base64",
  "a4": "base64",
  "a5": "base64",
  "i1": "base64",
  "p1": "base64"
}
  1. On the Settings — Export of traffic violations page ...,
  2. Export of traffic violations settings page listing tasks, with the Enable and Download 24h report options highlighted in the three-dot menu

    ...click "+" to open the Traffic violation export task form.

    Traffic violation export task form showing the Task name field and the Type of violations section

    A task is a container for user-defined information relevant to the export, such as what kind of violations to export, violation locations, time stamps and more.

  3. Enter:
  4. Task name: the name of the task
    Filters : violation type, road object, and tags to export.
    Exceptions : vehicle list names: violations by vehicles on these lists will not be reported.
    Under Export settings, specify the report transmission schedule: 

    Streaming : export of all detected violations in real time
    Daily : export once every 24 hours. More options will then appear.

  5. Time windows are shown in the time zone of the account that has the Traffic violation export task page open. Set up time windows, which means that only violations will be exported, time-stamped within the selected time windows on the selected days of the week.
  6. 3.1 Switch on the Set up time windows toggler. This lands on the Days of the week tab, where time windows are set up to apply regularly every week, all year round.

    Time windows panel with the Set up time windows toggler switched on and the Days of the week tab selected, showing no time windows configured yet

    3.2 Click Add to select, e.g., "Monday" on the list.

    Days of the week list view with a Monday time window of 00:00 to 01:00, and the Time period fields for editing it
    Days of the week chart view showing the same Monday time window as a bar on the weekly timeline

    3.3 Edit the time limits of the time window on Monday in the list view (left) or chart view (right) and click Confirm.

    3.4 Use the commands in the three-dot menu to do one of the following:

    Three-dot menu on the Days of the week chart view with Add time window, Copy on days, and Clear time windows options

    Copy on days - to set up the same time windows on some other days of the week.
    Add time window - to add another time window on the same day of the week, which does not overlap with existing windows.

    Days of the week chart view with two separate time windows set up on Monday

    Clear time windows - self-explanatory.

    3.5 Repeat the steps above to set up the time windows on other days of the week.

    3.6 Go to the Dates tab.

    Dates tab showing a time window added for 16 September from 00:00 to 04:00

    Time windows set up on this tab override those set by days of the week. For instance, the schedule for Mondays is from 6 AM to 6 PM. However, September 15 is a Monday too, and a different schedule may be needed for this particular date (or the export may not be needed on this date at all). Then set it up on the Dates tab.

    3.7 Click Add, select a date on this tab and set up time windows by dates in the same way.

    Not to run the export on a date at all, click Clear time windows as shown, thus leaving the date blank.

    Dates tab three-dot menu with the Clear time windows option highlighted for 15 September

  7. Enter the URL to send the report to.
  8. Click Save.
  9. The newly created task will then appear on the task list on the Settings — Export of traffic violations page. On the three-dot menu, click Enable as shown to run the export. 

Instant Traffic Violation Reports

If Daily was seleted at step 2 above, 24h countdown begins right after the Enable is clicked. The first report will be ready to download in 24 hours as the diagram below shows in black.

Diagram of the 24-hour reporting cycle, comparing automatic export after the task is enabled in Daily mode with a manual export of the past 24 hours

However, a report about traffic violations in the past 24 hours can be exported and downloaded manually at an arbitrary moment in time (red in the diagram). e.g., in the case of an urgent need. To do so, run the Download 24 report as shown - the 24h reports window will shown previous reports ready to download and the current one as "In progress".

24h reports window listing previously generated reports available for download and the current report shown as In progress

As soon as it is ready to download, click Download to do so.

Delivery Confirmation and Retries

After IREX sends an export file to the recipient URL, it acts on the response code returned by the receiving system:

Response
Code

Meaning
What IREX Does
200
Report accepted
Delivery is complete; the file is not sent again.
400
Report rejected
Delivery stops; the file is not resent.
401
Not accepted (auth)
IREX retries every 5 minutes for up to 30 minutes, or until it receives 200.
500
Reciever error
IREX retries every 5 minutes for up to 30 minutes, or until it receives 200.

This ensures accepted and explicitly rejected violations are not sent repeatedly, while transient failures (401, 500) are retried automatically within the 30-minute window.

Traffic Violation File Parameters

If needed, a cluster can set the vehicle make values, the vehicle type values, the country code on the license plate, and which frames to export for each violation type.

If the country code on the license plate (au_country) is not recognized, the violation is not exported.

Parameter Field Type Required Comments
c_source_org number Yes Unique ID for the video analytics system
source_id string Yes Unique ID for the traffic violation
zone_id number No Unique ID for the control area
cameras array Yes IDs of the cameras that captured the violation
zone_name string Yes Name of the road object
au_place string No Address where the road object is located
au_lati string Yes Latitude of the road object
au_long string Yes Longitude of the road object
c_crime_type string Yes Name of the violation
au_mark number Yes Vehicle make.
Default values:
2637 – AUDI
2658 – BMW
4643 – BYD
4478 – CHANGAN
4102 – CHERY
2680 – CHEVROLET
2686 – CITROEN
2694 – DAF
35886 – EXEED
2723 – FIAT
2725 – FORD
2391 – GAZ
3910 – GEELY
3170 – HAVAL
2414 – HONDA
2423 – HYUNDAI
4037 – INFINITI
2432 – IVECO
42805 – JAECOO
2814 – JAGUAR
2816 – JEEP
40765 – JETOUR
2822 – KAMAZ
2829 – KIA
4149 – LADA
2851 – LAND ROVER
2860 – LEXUS
38807 – LIXIANG
3422 – MAN
3426 – MAZ
3427 – MAZDA
1888 – MERCEDES BENZ
3435 – MITSUBISHI
3467 – NISSAN
38625 – OMODA
3475 – OPEL
3493 – PEUGEOT
3502 – PORSCHE
3519 – RENAULT
3535 – SCANIA
3549 – SKODA
3385 – SUBARU
3386 – SUZUKI
1952 – TESLA
4226 – TOYOTA
4262 – VOLKSWAGEN
4263 – VOLVO
34745 – ZEEKR
0 – Unknown make, or make recognition is off
au_vehicle string Yes Vehicle type.
Default values:
bus – Bus
car – Car
motorbike – Motorcycle
passenger_van – Minivan
small_truck – Light-duty truck
medium_truck – Medium-duty truck
heavy_truck – Heavy-duty truck
semi_trailer_truck – Tractor-trailer
machinery – Machinery
trailer – Trailer
0 – Unknown type, or type recognition is off
transp_num string Yes License plate number
au_country number Yes Country code on the license plate.
Default values:
40 – Austria
31 – Azerbaijan
51 – Armenia
56 – Belgium
112 – Belarus
100 – Bulgaria
826 – United Kingdom
348 – Hungary
276 – Germany
300 – Greece
268 – Georgia
376 – Israel
372 – Ireland
724 – Spain
380 – Italy
398 – Kazakhstan
156 – China
417 – Kyrgyzstan
428 – Latvia
440 – Lithuania
442 – Luxembourg
470 – Malta
498 – Moldova
492 – Monaco
496 – Mongolia
528 – Netherlands
784 – United Arab Emirates
616 – Poland
620 – Portugal
643 – Russia
642 – Romania
688 – Serbia
703 – Slovakia
840 – United States
762 – Tajikistan
764 – Thailand
792 – Turkey
860 – Uzbekistan
804 – Ukraine
246 – Finland
250 – France
191 – Croatia
499 – Montenegro
203 – Czech Republic
756 – Switzerland
75 – Sweden
233 – Estonia
au_life string Yes Timestamp from before the violation is recorded, in ISO 8601 format
fix_date string Yes Timestamp when the violation is recorded, in ISO 8601 format
a1 binary Yes

A full frame or part of a frame, depending on the violation type and the cluster settings.

Included by default:

For Opposite lane violations:

  • When an Overview camera is assigned: the full frame from the Overview camera, taken before the vehicle crosses the line on the camera that has the Opposite lane road object.
  • When no Overview camera is assigned: the full frame from the camera that has the Opposite lane road object, taken before the vehicle crosses the line.

For Overtaking violations:

  • When an Overview camera is assigned: the full frame from the Overview camera, taken before the vehicle crosses the line on the camera that has the Opposite lane road object.
  • When no Overview camera is assigned: the full frame from the camera that has the Opposite lane road object, taken before the vehicle crosses the line.

For Forbidden maneuvers violations:

  • The full frame from the Entry camera, taken before the vehicle crosses the entry line.

For a Traffic lights violation:

  • The full frame from the Traffic Light camera, taken before the vehicle crosses the entry line on the Entry camera.

For Stop line violations:

  • The full frame from the Traffic Light camera, taken before the vehicle crosses the entry line on the Entry camera.

For Driving without technical allowance violations:

  • The full frame from the Technical allowance camera, taken when that camera records motion at the start of the inspection area.

For Driving without insurance violations:

  • The full frame from the Insurance camera, taken when that camera records motion at the start of the Motion control area.

For Illegal stops / parkings violations:

  • The full frame from the Illegal stops / parkings camera, taken when the vehicle arrives and the stop begins.

For Failure to yield to pedestrian violations:

  • The full frame from the camera covering the crosswalk, taken when the vehicle enters the braking area on the camera that has the Motion control area road object.

For a Railroad crossing lights violation:

  • The full frame from the Railroad crossing light camera, taken before the vehicle crosses the entry line on the Entry camera.

For Space mean speed above limit violations:

  • When an Overview camera is assigned at the start of the controlled section: the full frame from the Overview camera at the start of the section, taken when the vehicle crosses the line on the camera that has the Speed control: Start road object.
  • When no Overview camera is assigned at the start of the controlled section: the full frame from the camera that has the Speed control: Start road object, taken when the vehicle crosses the line.

For a Lane restriction violation:

  • When an Overview camera is assigned: the full frame from the Overview camera, taken when the Lane restrictions camera records motion at the start of the control area.
  • When no Overview camera is assigned: the full frame from the Lane restrictions camera, taken when that camera records motion at the start of the control area.
a2 binary Yes

A full frame or part of a frame, depending on the violation type and the cluster settings.

Included by default:

For Opposite lane violations:

  • When an Overview camera is assigned: the full frame from the Overview camera, taken when the vehicle crosses the line on the camera that has the Opposite lane road object.
  • When no Overview camera is assigned: the full frame from the camera that has the Opposite lane road object, taken when the vehicle crosses the line.

For Overtaking violations:

  • When an Overview camera is assigned: the full frame from the Overview camera, taken when the vehicle crosses the line on the camera that has the Opposite lane road object.
  • When no Overview camera is assigned: the full frame from the camera that has the Opposite lane road object, taken when the vehicle crosses the line.

For Forbidden maneuvers violations:

  • When an Overview camera at start is assigned: the full frame from that camera, taken before the vehicle crosses the entry line on the Entry camera.
  • When no Overview camera at start is assigned and an Overview camera at end is assigned: the full frame from the Overview camera at end, taken in the middle of the intersection, between entry and exit.
  • When neither an Overview camera at start nor an Overview camera at end is assigned: the vehicle cropped from the full frame of the Entry camera, taken before the vehicle crosses the entry line.

For a Traffic lights violation:

  • The full frame from the Traffic Light camera, taken in the middle of the intersection, between entry and exit.

For Stop line violations:

  • The vehicle cropped from the full frame of the Entry camera, taken before the vehicle crosses the entry line.

For Driving without technical allowance violations:

  • The vehicle cropped from the full frame of the Technical allowance camera, taken when that camera records motion at the start of the inspection area.

For Driving without insurance violations:

  • The vehicle cropped from the full frame of the Insurance camera, taken when that camera records motion at the start of the Motion control area.

For Illegal stops / parkings violations:

  • The vehicle cropped from the full frame of the Illegal stops / parkings camera, taken when the vehicle arrives and the stop begins.

For Failure to yield to pedestrian violations:

  • The full frame from the camera covering the crosswalk, taken when the vehicle leaves the braking area on the camera that has the Motion control area road object.

For a Railroad crossing lights violation:

  • The full frame from the Railroad crossing light camera, taken when the vehicle crosses the entry line on the Entry camera.

For Space mean speed above limit violations:

  • The vehicle cropped from the full frame, taken when the vehicle crosses the line on the camera that has the Speed control: Start road object.

For a Lane restriction violation:

  • The vehicle cropped from the full frame of the Lane restrictions camera, taken when that camera records motion at the start of the control area.
a3 binary Yes

A full frame or part of a frame, depending on the violation type and the cluster settings.

Included by default:

For Opposite lane violations:

  • When an Overview camera is assigned: the full frame from the camera that has the Opposite lane road object, taken when the vehicle crosses the line.
  • When no Overview camera is assigned: the vehicle cropped from the full frame of the camera that has the Opposite lane road object, taken before the vehicle crosses the line.

For Overtaking violations:

  • When an Overview camera is assigned: the full frame from the camera that has the Opposite lane road object, taken before the vehicle crosses the line.
  • When no Overview camera is assigned: the vehicle cropped from the full frame of the camera that has the Opposite lane road object, taken before the vehicle crosses the line.

For Forbidden maneuvers violations:

  • When an Overview camera at end is assigned: the full frame from that camera, taken when the vehicle crosses the exit line on the Exit camera.
  • When no Overview camera at end is assigned: the full frame from the Exit camera, taken when the vehicle crosses the exit line.

For a Traffic lights violation:

  • The full frame from the Traffic Light camera, taken when the vehicle crosses the entry line on the Entry camera.

For Stop line violations:

  • The full frame from the Traffic Light camera, taken when the vehicle crosses the entry line on the Entry camera.

For Driving without technical allowance violations:

  • The full frame from the Technical allowance camera, taken when that camera records motion at the end of the inspection area.

For Driving without insurance violations:

  • The full frame from the Insurance camera, taken when that camera records motion at the end of the Motion control area.

For Illegal stops / parkings violations:

  • The full frame from the Illegal stops / parkings camera, taken when the violation is captured.

For Failure to yield to pedestrian violations:

  • When an Overview camera is assigned: the full frame from the Overview camera, taken when the camera that has the Motion control area road object records the vehicle leaving the control area.

For a Railroad crossing lights violation:

  • When an Overview camera is assigned: the full frame from the Overview camera, taken in the middle of the railroad crossing.
  • When no Overview camera is assigned: the full frame from the Railroad crossing light camera, taken in the middle of the railroad crossing.

For Space mean speed above limit violations:

  • When an Overview camera is assigned at the end of the controlled section: the full frame from the Overview camera at the end of the section, taken when the vehicle crosses the line on the camera that has the Speed control: End road object.
  • When no Overview camera is assigned at the end of the controlled section: the full frame from the camera that has the Speed control: End road object, taken when the vehicle crosses the line.

For a Lane restriction violation:

  • When an Overview camera is assigned: the full frame from the Overview camera, taken when the Lane restrictions camera records motion at the end of the control area.
  • When no Overview camera is assigned: the full frame from the Lane restrictions camera, taken when that camera records motion at the end of the control area.
a4 binary Yes

A full frame or part of a frame, depending on the violation type and the cluster settings.

Included by default:

For Overtaking violations:

  • When an Overview camera is assigned: the full frame from the Overview camera, taken when the camera that has the Speed control zone road object records motion at the end of that zone.
  • When no Overview camera is assigned: the export file omits this field.

For Forbidden maneuvers violations:

  • When an Overview camera at end is assigned: the full frame from the Exit camera, taken when the vehicle crosses the exit line.
  • When no Overview camera at end is assigned: the export file omits this field.

For a Traffic lights violation:

  • When an Overview camera is assigned: the full frame from the Overview camera, taken in the middle of the intersection, between entry and exit.
  • When no Overview camera is assigned: the full frame from the Traffic Light camera, taken when the vehicle crosses the exit line on the Exit camera.

For Stop line violations:

  • When an Overview camera is assigned: the full frame from the Overview camera, taken when the Entry camera records the vehicle crossing the entry line.
  • When no Overview camera is assigned: the export file omits this field.

For Driving without technical allowance violations:

  • When an Overview camera is assigned: the full frame from the Overview camera, taken when the Technical allowance camera records motion at the start of the inspection area.
  • When no Overview camera is assigned: the export file omits this field.

For Driving without insurance violations:

  • When an Overview camera is assigned: the full frame from the Overview camera, taken when the Insurance camera records motion at the start of the Motion control area.
  • When no Overview camera is assigned: the export file omits this field.

For Illegal stops / parkings violations:

  • When an Overview camera is assigned: the full frame from the Overview camera, taken when the vehicle arrives and the stop begins.
  • When no Overview camera is assigned: the export file omits this field.

For a Railroad crossing lights violation:

  • The full frame from the Railroad crossing light camera, taken when the vehicle crosses the exit line on the Exit camera.

For every other violation type, the export file omits this field.

a5 binary Yes

A full frame or part of a frame, depending on the violation type and the cluster settings.

Included by default:

For Forbidden maneuvers violations:

  • When an Overview camera at start and an Overview camera at end are both assigned: the full frame from the Overview camera at end, taken in the middle of the intersection, between entry and exit.
  • When neither an Overview camera at start nor an Overview camera at end is assigned: the export file omits this field.

For a Traffic lights violation:

  • The full frame from the Entry camera, taken when the vehicle crosses the entry line.

For Stop line violations:

  • When an Overview camera is assigned: the full frame from the Overview camera, taken before the Entry camera records the vehicle crossing the entry line.
  • When no Overview camera is assigned: the export file omits this field.

For Driving without technical allowance violations:

  • When an Overview camera is assigned: the full frame from the Overview camera, taken when the Technical allowance camera records motion at the end of the inspection area.
  • When no Overview camera is assigned: the export file omits this field.

For Driving without insurance violations:

  • When an Overview camera is assigned: the full frame from the Overview camera, taken when the Insurance camera records motion at the end of the Motion control area.
  • When no Overview camera is assigned: the export file omits this field.

For Illegal stops / parkings violations:

  • When an Overview camera is assigned: the full frame from the Overview camera, taken when the violation is captured.
  • When no Overview camera is assigned: the export file omits this field.

For Failure to yield to pedestrian violations:

  • The full frame from the camera that has the Motion control area road object, taken when the vehicle leaves the control area.

For a Railroad crossing lights violation:

  • The full frame from the Entry camera, taken when the vehicle crosses the entry line.

For every other violation type, the export file omits this field.

i1 binary Yes

A full frame or part of a frame, depending on the violation type and the cluster settings.

Included by default:

For Opposite lane violations:

  • The vehicle cropped from the full frame of the camera that has the Opposite lane road object, taken when the vehicle crosses the line.

For Overtaking violations:

  • The vehicle cropped from the full frame of the camera that has the Opposite lane road object, taken when the vehicle crosses the line.

For Forbidden maneuvers violations:

  • The vehicle cropped from the full frame of the Exit camera, taken when the vehicle crosses the exit line.

For a Traffic lights violation:

  • The vehicle cropped from the full frame, taken when the vehicle crosses the entry line on the Entry camera.

For Stop line violations:

  • The vehicle cropped from the full frame of the Entry camera, taken when the vehicle crosses the entry line.

For Driving without technical allowance violations:

  • The vehicle cropped from the full frame of the Technical allowance camera, taken when that camera records motion at the end of the inspection area.

For Driving without insurance violations:

  • The vehicle cropped from the full frame of the Insurance camera, taken when that camera records motion at the end of the Motion control area.

For Illegal stops / parkings violations:

  • The vehicle cropped from the full frame of the Illegal stops / parkings camera, taken when the violation is captured.

For Failure to yield to pedestrian violations:

  • The vehicle cropped from the full frame of the camera that has the Motion control area road object, taken when the vehicle leaves the control area.

For a Railroad crossing lights violation:

  • The vehicle cropped from the full frame, taken when the vehicle crosses the entry line on the Entry camera.

For Space mean speed above limit violations:

  • The vehicle cropped from the full frame, taken when the vehicle crosses the line on the camera that has the Speed control: End road object.

For a Lane restriction violation:

  • The vehicle cropped from the full frame of the Lane restrictions camera, taken when that camera records motion at the end of the control area.
p1 binary Yes

A full frame or part of a frame, depending on the violation type and the cluster settings.

Included by default:

For Opposite lane violations:

  • The license plate cropped from the full frame of the camera that has the Opposite lane road object, taken when the vehicle crosses the line.

For Overtaking violations:

  • The license plate cropped from the full frame of the camera that has the Opposite lane road object, taken when the vehicle crosses the line.

For Forbidden maneuvers violations:

  • The license plate cropped from the full frame of the Exit camera, taken when the vehicle crosses the exit line.

For a Traffic lights violation:

  • The license plate cropped from the full frame, taken when the vehicle crosses the entry line on the Entry camera.

For Stop line violations:

  • The license plate cropped from the full frame of the Entry camera, taken when the vehicle crosses the entry line.

For Driving without technical allowance violations:

  • The license plate cropped from the full frame of the Technical allowance camera, taken when that camera records motion at the end of the inspection area.

For Driving without insurance violations:

  • The license plate cropped from the full frame of the Insurance camera, taken when that camera records motion at the end of the Motion control area.

For Illegal stops / parkings violations:

  • The license plate cropped from the full frame of the Illegal stops / parkings camera, taken when the violation is captured.

For Failure to yield to pedestrian violations:

  • The license plate cropped from the full frame of the camera that has the Motion control area road object, taken when the vehicle leaves the control area.

For a Railroad crossing lights violation:

  • The license plate cropped from the full frame, taken when the vehicle crosses the entry line on the Entry camera.

For Space mean speed above limit violations:

  • The license plate cropped from the full frame, taken when the vehicle crosses the line on the camera that has the Speed control: End road object.

For a Lane restriction violation:

  • The license plate cropped from the full frame of the Lane restrictions camera, taken when that camera records motion at the end of the control area.