How to Create an Origin-Destination Matrix
Let’s do some serious work. How to get detailed statistics about the turning movements? Go through the following procedure step by step.
Open the DataFromSky Viewer.
Open the Tracking log in which you want to create an Origin-Destination matrix. (Figure 1)
Then select the Tracking log menu and click on Manage Annotation Configurations. (Figure 2)
You will see the Annotation Configuration Manager. Original annotation configuration is pre-set and cannot be edited, so click on the Clone button. (Figure 3)
You have created a clone of the Original Annotation Configuration which can be edited, so click on the Edit button. (Figure 4)
Then Annotation Redefinition opens, this editor allows you to insert Gates that are used to generate Origin-Destination Statistics. You can use the mouse wheel to zoom in or out of the main image. (Figure 5)
Gates are virtual lines which are crossed by vehicles and other tracked objects. They are in the form of a line consisting of straight segments connecting points, so you need at least 2 points to create them. To create a Gate, click on the first field Add Gate. Then create at least two points between which you want to create a Gate. The point can be removed by right-clicking and selecting remove. (Figure 6)
Then you can set the desired properties of the created Gate in the right column Selected Annotation.
· Gate Type — Set whether the gateway is Entry, Exit, or Neutral.
· Gate Direction — Sets the direction in which passing objects are to be tracked by the Gate.
· Object detection mode — Sets the method by which the object is to be detected, whether it will be based on the trajectory or on visual detection.
· Object detection range — If you select visual detection, you can set the size of the detection range.
· Angular Sensitivity — Adjusts the sensitivity of the Gate depending on the angle of the passing object.
· Allowed objects — After clicking on this menu you can choose what kind of object the Gate will count.
· Tag — This field is used to set the Gate name.
After setting the desired properties, confirm the gateway settings with the Finish editing button. (Figure 8)
For example, a roundabout with entry and exit gates. (Figure 9)
After setting all required Gates, confirm editing by clicking the confirm button located on the bottom of the editor, you can also reset the settings to their original state or cancel editing. (Figure 10)
The editor window closes and then click on the Apply button. Now we can proceed to the origin-destination matrix itself. Click on the Analysis menu and select Show Origin-Destination Statistics. (Figure 11)
The Origin-Destination Statistic Matrix menu appears. Here you can set the required parameters for the exported Origin-Destination Matrix.
· Checkbox “Whole video sequence” — by unchecking this option, you can select a specific part of the video by setting specific time or ID of the image, and the statistics will only be made for that portion of the video. (Figure 12)
· On the Types menu, select the objects for which you want to perform statistics.
And now the statistics matrix, here you can choose what data you want to export:
· Vehicles count this option has additional sub-options:
Normalization Type:
o Show counts (no normalization) — Only the numbers of objects passed from each Entry Gate to each Exit Gate are listed in the matrix.
o Divide by maximum value — In the matrix, the numbers indicating the ratio between the maximum number of objects and the number of objects that have passed through the given pair of gates listed.
o Divide by sum of values — In the matrix, numbers indicating the ratio between the total number of objects and the number of objects that have passed through the pair of gates listed.
These options have additional sub-options:
a. Across the whole matrix — In this case, the ratio will be applied to the entire matrix.
b. For each Entry gate — In this case, the ratio will be relative to each Entry Gate separately.
c. For each Exit gate — In this case, the ratio will be relative to each Exit Gate separately.
· Average Time — The average driving times from the Entry gate to the Exit gate will be entered in the matrix. The other times will be listed with other options like Minimal Time, Maximal Time, Median Time and Standard Deviation.
Click the Export button to export to .csv format. This is a simple file format intended for table data exchange, it can be run, for example, in Microsoft Excel. (Figure 13)