Skip to content

Commit

Permalink
Merge branch 'docu_tracking' into 'master'
Browse files Browse the repository at this point in the history
- Tracking Docu Page

See merge request ped-dyn-emp/petrack!375
  • Loading branch information
Kilidsch committed Oct 2, 2024
2 parents 4a98281 + 595910d commit 0af185f
Show file tree
Hide file tree
Showing 3 changed files with 150 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/source/recognition/setting-up.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ The region of interest (ROI) is the part of the image where a detection is
performed. For the ROI we see the options

show
: Shows the ROI as a blue rectangle on the image
: Shows the ROI as a green rectangle on the image

fix
: "Fixes" the rectangle, such that it cannot be moved with the mouse
Expand Down
146 changes: 143 additions & 3 deletions docs/source/tracking/setting-up.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,145 @@
# Set Up Tracking

- Initial SetUp of Tracking
- How to set ROI, ...
-
## General Settings

At the top of the tracking tab, you can find the general
settings (image) of tracking. In the end you have two
options to
apply the tracking to your project.

online calculation
: Enables the tracking, but you manually have to navigate
though the video.

calculate all
: Enables the tracking and runs the entire video
forward and backward automatically

**However, other settings should be fixed beforehand.**

repeat below quality
: If the pedestrian already has a tracked trajectory (e.g.
when running the video backwards, after running it forwards), tracking is only
repeated if this is checked and the quality is below the threshold. Otherwise,
the existing point is not overwritten.

extrapolation for big diff.
: If there is a huge difference in speed from one
frame to another, discard the value and instead extrapolate. Note that
extrapolation is **at most applied 3 times** in a row. After this, the
trajectory is terminated.

merge
: Allows you to merge two trajectories into one
continuous trajectory. See [more](\correction\correction_workflow.md).
*link to Miras page /correction/workflow/merge/*

only selected
: Enables that tracking settings will only be applied to
the selected subjects. This works only in combination
with the `show only people` or the `show only
people list` option in the `path` section at the
bottom of the tracking tab.


export
: Exports trajectories in desired
format.

import
: Imports trajectories from files.

reset
: Deletes all trajectories. This is useful during tuning of parameters to
allow a view of the current settings (recognition and tracking) applied to the
current frame.

## Region Of Interest

The region of interest (ROI) is the part of the image
where the tracking is performed. For the ROI we see the
options

show
: Shows the ROI as a blue rectangle on the image.

fix
: "Fixes" the rectangle, such that it cannot be moved
with the mouse.

full image
: Sets the ROI to the full image.

adjust automatically
: Sets the ROI as one head size larger than the
recognition ROI

:::{warning}
The tracking ROI must be larger than the recognition ROI.
Any detection outside the tracking ROI will create an
entirely new, one point trajectory.
:::

## Export Settings

In this section, various export settings can be chosen.
For more information about the settings as well as
information on importing and exporting files, check out the
[Trajectory Import and Export](\export\trajectory.md) section.


## Search Region

scale
: Adapts the window size of the search region in which the
Lucas-Kanade[^1] method is applied.
[^1]: Jean-Yves Bouguet. [Pyramidal implementation of the affine lucas kanade feature tracker description of the algorithm.](https://www.semanticscholar.org/paper/Pyramidal-implementation-of-the-lucas-kanade-Bouguet/b7c23b6c391af773821d66b2f9f7625db66e4e29?utm_source=direct_link) Intel Corporation, 5, 2001.

levels
: Adapts the number of search regions.

max. error
: Adapts the error acceptance value. A person is no longer
tracked if the calculated error of the tracking is higher
than an acceptance value.

show pyramidal search size
: Enables the visual representation of the search regions.

adaptive level
: Enables the re-tracking at a lower pyramid level for failed
tracking attempts. Mostly leads to poorer trajectories!

:::{Tip}
If you are tracking pedestrians with colored hats, make sure
to include textured areas (e.g. the border of the hats) into
the search region. There the hat displays different intensity
levels of color which are essential to the Lukas-Kanade method.
:::


** After you have set all of these settings, you can
run the tracking with either `online calculation` or
`calculate all` as mentioned on top of this page.**


## Path Settings

In this section, the depiction of the trajectories as well as
additional information about them can be adjusted.

show only people
: Only the trajectory of the selected person will be
displayed. The number represents the PeTrack ID which are
assigned in an ascending order.

show only people list
: Only the trajectories of selected people will be displayed.
You can either select the PeTrack IDs from the `list` or
write them in the box separated by commas. Ranges are also possible,
i.e. `7,15-20` is a valid entry and shows person Nr 7 and persons
from 15 to 20 (including ends).

frames before/after actual position
: Number of frames before/after the actual position for which
the trajectories should be visible.
8 changes: 6 additions & 2 deletions docs/source/tracking/tracking.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
# Tracking

Here is the tracking docs.
After choosing the desired recognition parameters, the
tracking setting should be adjusted. These settings
become especially important when the chosen
[recognition marker](\recognition)
cannot be detected and the current position has to be
determined by the optical flow.

## Contents

:::{toctree}
:maxdepth: 1
setting-up
parameter-tuning
:::

0 comments on commit 0af185f

Please sign in to comment.