To configure the video analytics that are used to work with the Traffic analysis module, do the following:
- Click the Set button on the settings panel of the Traffic analysis object.

The Analytics settings window opens.

- Configure the parameters of the Traffic jam video analytics that detects road congestion and a sharp decrease in road capacity:
- In the min. number of vehicles field, specify the minimum number of vehicles at which the Traffic jam event occurs.
- In the max. vehicle speed field, specify the maximum speed of vehicles at which the Traffic jam event occurs.
- In the registration time field, specify the time in minutes during which the Traffic jam event occurs.
- Configure the parameters of the Speed drop video analytics that automatically detects the drop in the average speed of the traffic:
- In the speed drop field, specify the drop in vehicle speed as a percentage at which the Speed drop event occurs.
- In the min. number of vehicles field, specify the minimum number of vehicles at which the Speed drop event occurs.
- In the interval field, specify the time interval in seconds between traffic speed measurements.
- In the added speed field, enter as a percentage the maximum increase in vehicle speed on this road section, which is used to calculate the speed drop and register the Speed drop event.
- Configure the parameters of the Road accident video analytics that registers road accidents according to certain attributes. Attributes have a weight and are accumulated for each vehicle when analyzing the next frame. If the total weight of attributes exceeds the threshold specified in step 4a, a road accident is registered.
- In the threshold field, specify the total weight of attributes above which a road accident is registered. The default value is 20.
- In the max. stop time field, specify the maximum time in seconds for vehicles to stop in the danger area/surveillance area. The default value is 180.
- In the Weight of vehicle stopping in area field, specify the weight of an attribute when a vehicle stops in the danger area, crosses this area, slows down in this area, and stays in it longer than the time specified in the max. stop time field in step 4b.
- In the Weight of vehicle stopping field, specify the weight of an attribute when a vehicle stops in the surveillance area (for example, on the road), crosses this area, slows down in this area, and stays in it longer than the time specified in the max. stop time field in step 4b. If a vehicle stays longer than the allowed time in the danger area that is situated in this surveillance area, this attribute is ignored as secondary.
- In the Weight of people next to vehicle field, specify the weight of an attribute when a pedestrian is detected next to the stopped vehicle in the danger area, depending on the position of the camera, it can be 3-5 meters.
- In the Weight of vehicle boxes intersection field, specify the weight of an attribute of the vehicle boxes intersection. The attribute triggers if at least one vehicle has a speed greater than 25 km/h;
- In the Weight of hard acceleration field, specify the weight of an attribute at which there is a sudden change of speed that is typical when vehicles crash into each other.
- Configure the parameters of the Entering the oncoming lane video analytics that detects vehicles moving in the prohibited direction:
- In the min. angle field, specify the minimum angle of deviation from the direction of vehicle movement indegrees, at which the Entering the oncoming lane event occurs.
- Configure the parameters of the Speeding video analytics that detects speeding.
- In the speed limit field, specify the maximum allowed vehicle speed on this road section in km/h. If this speed is exceeded, the Speeding event occurs.
- In the interval field, specify the time interval in seconds between vehicle speed measurements.
- Configure the parameters of the Lost cargo video analytics that detects lost cargo:
- In the min. validity field, specify the minimum validity as a percentage at which the Lost cargo event occurs.
- In the min. width field, specify the minimum width of a cargo in millimeters.
- In the max. width field, specify the maximum width of a cargo in millimeters.
- In the min. height field, specify the minimum height of a cargo in millimeters.
- In the max. height field, specify the maximum height of a cargo in millimeters.
- Configure the parameters of the Vehicle stop video analytics that detects vehicle stopping:
- In the max. width field, specify the maximum width of a vehicle.
- In the max. height field, specify the maximum height of a vehicle.
- In the min. duration field, specify the minimum duration of a vehicle stop at which the Vehicle stop event occurs.
- Set the analyze traffic jams checkbox so that when a vehicle stops, you are able to determine if it is a traffic jam or a stop. If you leave the checkbox clear, traffic jam analysis isn't performed.
- Click the Apply button to save the changes.
Configuring the video analytics to work with the Traffic analysis module is complete.