Small updates.

This commit is contained in:
Daniel
2025-04-22 17:13:30 +02:00
parent ff735759f7
commit 98399cc00e
4 changed files with 277 additions and 264 deletions

View File

@ -24,7 +24,7 @@ struct Track
class PoseTracker
{
public:
PoseTracker(float max_distance);
PoseTracker(float fps);
std::vector<std::tuple<size_t, std::vector<std::array<float, 4>>>> track_poses(
const std::vector<std::vector<std::array<float, 4>>> &poses_3d,
@ -36,7 +36,13 @@ public:
private:
float max_distance;
size_t history_size = 3;
float max_movement_speed = 2.0;
// Approach speed of EN ISO 13855 with 2000 mm/sec for hand speed
// and an additional factor to compensate for noise-based jumps
float max_movement_speed = 2.0 * 1.5;
// The size of an A4 sheet of paper which is assumed to fit between two different persons
float max_base_distance = 0.3;
std::vector<double> timestamps;
std::vector<Track> pose_tracks;
@ -64,9 +70,9 @@ private:
// =================================================================================================
// =================================================================================================
PoseTracker::PoseTracker(float max_distance)
PoseTracker::PoseTracker(float fps)
{
this->max_distance = max_distance;
this->max_distance = max_base_distance + max_movement_speed / fps;
}
// =================================================================================================