Skip to main content
All CollectionsTrafficSurvey - post-recording processing of videos
TrafficSurvey Viewer v. 0.5.44 - feature overview - trajectory deletion, enhanced exports
TrafficSurvey Viewer v. 0.5.44 - feature overview - trajectory deletion, enhanced exports

Delete trajectories by type(class), time, and spatial element, or select which classes to include in the Traffic Analysis Excel export

DataFromSky avatar
Written by DataFromSky
Updated over a week ago

This short article summarizes the changes in the 0.5.44 version of TrafficSurvey Viewer. This version includes changes such as the addition of class specification for the Traffic Analysis Excel export and various types of trajectory deleting options including deleting of trajectories by spatial elements, type (class), and time.

Class specification for the Traffic Analysis Excel export

In the image below you can see highlighted in red the new section of the export dialog where by default all types of objects detected in the given analysis are selected. You can then un-tick the boxes next to the different object types to not include them in your export.

New Delete trajectories features

The delete trajectories feature can be useful to adjust your focus of analysis and get rid of “noise” that you are not interested in. There are 3 new types of trajectory deleting options:

  1. Delete trajectories by Spatial Element

  2. Delete trajectories by Types

  3. Delete trajectories by Time

You can access all 3 of these trajectory deletion types from the Tracking Log / Delete Trajectories section of the menu in TrafficSurvey Viewer as shown in the image below.

Note: All the “Delete Trajectories” operations always delete the complete trajectory, and not only their parts. You can cut parts of trajectories using the Trajectory Cutting feature. Both of these trajectory operations are irreversible and all trajectory-associated functionalities will work only with the trajectories that remain after the changes. The only way to return to the trajectory set before deleting is to load the original trajectory file or a version you saved before applying these changes.

1. Delete trajectories by Spatial Element

Using this feature you can for example focus your analysis only on vehicles that approached the intersection from a specific direction. To utilize this option you need to first go to Annotation Configuration, create the specific spatial element and set up filtering parameters on it according to your needs. To access Anotation Configuration click on Tracking Log - Manage Annotation Configurations… Then you Clone the existing Annotation, select the newly created one and click Edit to configure the Annotation Configuration. Once you have done that, you can access this feature.

When you click the Delete trajectories by Spatial Element in the menu a dialog box will open where you need to specify the spatial element which will be used for the trajectory deletion. You will also have to specify whether you want to delete the trajectories that are left after the application of filtering parameters or the reverse meaning you want to delete the trajectories that interacted with the gate BUT did not pass the additional filtering conditions you have set.

Example 1

Let's imagine we want to delete all trajectories that used the road section heading east from the intersection (right side of footage). To do that we set up a neutral gate as shown below. When we use the “do pass the condition” all trajectories that DID INTERACT with the gate will be deleted. If on the other hand, you use the “do not pass the condition”, all trajectories in the given analysis that DID NOT INTERACT with the gate will be deleted.

In the 3 images below you can see the BEFORE and AFTER examples of both of the cases explained above.

1st image before any trajectory deleting

2nd image - after trajectory deleting with “do pass the condition” setting

3rd image - after trajectory deleting with “do not pass the condition” setting

Example 2

For example, if in the filter object types in the gate annotation settings you tick all object types except cars and then in trajectory deletion select “do not pass the condition” and apply it, only trajectories of other than car object types will stay. If you would set “do pass the condition” and delete trajectories, only car object types will stay.

The same would apply to the other gate settings like angular sensitivity or directionality.

2. Delete trajectories by Types

This one is quite easy to understand. If you want to get rid of trajectories of a particular type in the whole tlgx file select them in the dialog window shown below to delete them. The image below shows an example where we would delete all trajectories of bicycles and pedestrians in the whole tlgx file. Just select them and click ok to do this.

3. Delete trajectories by Time

You can delete trajectories based on time utilizing 3 different settings. The first and most important setting is the Video range you can change it with the sliders or by entering values into the time or image ID boxes. This determines in which range the trajectory deletion will look for the “Trajectory reference point” parameter.

The second setting is the Trajectory reference point. It has 3 setting options. Start timestamp, End timestamp, and Whole trajectory. The third setting is a selection of whether you want to delete the positive or negative condition of the applied filtering using the “do pass the condition” or “do not pass the condition” settings.

  • Start timestamp deletes trajectories that have Start timestamp in the selected range.

  • End timestamp deletes trajectories that have End timestamp in the selected range.

  • Whole trajectory is a little more complicated. If you use this setting, any trajectory that has occurred in the given timeframe will be deleted. This includes trajectories that:

    A) started before the timeframe and ended in it

    B) started and ended in the timeframe

    C) started in the timeframe but did not end in it

    D) started and ended outside the timeframe

All of the above is described for behavior when using the “do pass the condition” setting in the “Delete all trajectories that” section.

If you select the “do not pass the condition” in this case we can generalize it by saying that rather than deleting trajectories inside the selected interval it will delete trajectories outside the selected interval utilizing “reverse interval/s” regarding what is set in the Video Range settings.

Conclusion

This concludes the feature summary for TrafficSurvey Viewer 0.5.44 Let us know what you think about these new features. We also encourage you to send us your suggestions and comments about what features you would like to see in the future to info@datafromsky.com

If you have any questions, you can search the help section or contact us using the chat button in the bottom right corner of the page. To get notified about updates or events where you can meet us please follow us on LinkedIn.

Did this answer your question?