Graphical Interface

This section presents the descriptions of modules, classes and methods that handle and run the GUI.

trackUI module

This module runs the graphical interface. It contains the classes:

track module

This module does the same as the graphical interface but as a Python package.

Interfacing UI

Running filter

class pftracker.modules.runFilter.RunFilter(model, algorithm, N, estimate, resample, resamplePercent, robustPercent=None)[source]

Run an especific particle filter algorithm for the estimation problem in video sequences.

This is a general class that can be run for solving any PF estimation problem as well as the ParticleFilter class. Its whole structure is based on ParticleFilter class callings.

Parameters
  • model – Object of class describing the especific model where apply the particle filter estimation

  • algorithm (str) – PF algorithm

  • n_particles (int) – Number of particles

  • estimateOutput (str) – Output estimate method

  • resample (str) – Resampling method

  • resamplePercent (int) – Resampling percent

  • robustPercent (int) – Resampling percent

  • output (str, optional) – Path to optional output txt file

eval_alg(gt_file)[source]

Returns the evaluation (error) of particle filter algorithm results.

Parameters

gt_file (str) – path to ground truth .txt file

get_pf_estimation()[source]

Get particle filter estimation.

save_estimate(file_name)[source]

Save the particle estimation for each frame into a .txt file.

Parameters

file_name (str) – path to output .txt file

tracking()[source]

Do the particle filter tracking.

Returns

2-element tuple containing

  • (float): Approximate execution time of the algorithm in the face tracking task.

  • (float): Approximate number of fps.