You can specify the road lane borders by using the marking editing utility only. You cannot do that manually. |
To work with the PR channel of the Traffic analysis module, you must specify the road marking settings. To do this, do the following:
- Go to the settings panel of the PR channel object.

- Click the Set markings
button on the settings panel to open the editing utility. - In the Select frame window that opens, click the Select frame button to stop the video and specify the road marking in this frame.

As a result, the marking editing utility opens. - In the editing utility that opens, mark traffic lanes on the selected frame of the video:
- Select the Lines → Draw new line item in the menu line. Select Clear lines to delete a line.

- Mark the lane borders.
- Repeat steps 4a and 4b as many times as there are lanes on the roadway.

- Mark the borders of static objects:
- Select the Lines → Draw new obstacle item in the menu line.

- Mark the borders of static objects.
- Repeat steps 5a and 5b as many times as there are static objects in the frame.

- Specify the direction of movement on the lanes:
- Select the Lines → Stop drawing item in the menu line.

- Point the arrows that appear on the lanes in the direction of traffic. This is required to generate an event of entering an oncoming lane.

- Select the Lines → Save lines item in the menu line to save the specified marking in the file of the JSON format next to the EXE file.

- Calibrate dimensions:
- Set the correspondence of pixels to meters:
- Select the Calibration → Draw calibration grid (1) item in the menu line to specify the dimensions of the calibration grid;

- Double-click a dimension. As a result, the window for editing the corresponding dimension of the calibration grid opens: Height or Width;

- In the Enter a number field, set the value in meters;
- Press the Enter key.
- Repeat steps 8aii-8aiv for the second dimension of the calibration grid.
- Select the Calibration → Make calibration item in the menu line to calibrate dimensions according to the calibration grid specified in step 8a (2);
- Select the Calibration → Save calibration item in the menu line to save the specified calibration in the file of the JSON format next to the EXE file (3).
- Select the Exit item in the menu line to close the editing utility.

- Click the Apply button.
The road marking settings are set.
As a result, the Lane objects corresponding to the created lanes appear in the object tree.
