Darknet/YOLO v3.0-97-g3520881-dirty
Object Detection Framework
 
Loading...
Searching...
No Matches
track_kalman_t Class Reference

#include "yolo_v2_class.hpp"

Collaboration diagram for track_kalman_t:

Classes

struct  one_kalman_t
 
struct  tst_t
 

Public Member Functions

 track_kalman_t (int _max_objects=1000, int _min_frames=3, float _max_dist=40, cv::Size _img_size=cv::Size(10000, 10000))
 
float calc_dt ()
 
void clear_old_states ()
 
std::vector< bbox_tcorrect (std::vector< bbox_t > result_vec)
 
std::vector< tst_tfind_state_ids (std::vector< bbox_t > result_vec)
 
tst_t get_state_id (bbox_t find_box, std::vector< bool > &busy_vec)
 
tst_t new_state_id (std::vector< bool > &busy_vec)
 
std::vector< bbox_tpredict ()
 

Static Public Member Functions

static float get_distance (float src_x, float src_y, float dst_x, float dst_y)
 

Public Attributes

cv::Size img_size
 
std::vector< one_kalman_tkalman_vec
 
const float max_dist
 
int max_objects
 
int min_frames
 
std::vector< bbox_tresult_vec_pred
 
std::vector< tst_ttrack_id_state_id_time
 

Private Attributes

float dT
 
std::chrono::steady_clock::time_point global_last_time
 
int track_id_counter
 

Constructor & Destructor Documentation

◆ track_kalman_t()

track_kalman_t::track_kalman_t ( int  _max_objects = 1000,
int  _min_frames = 3,
float  _max_dist = 40,
cv::Size  _img_size = cv::Size(10000, 10000) 
)
inline

Member Function Documentation

◆ calc_dt()

float track_kalman_t::calc_dt ( )
inline
Here is the caller graph for this function:

◆ clear_old_states()

void track_kalman_t::clear_old_states ( )
inline
Here is the caller graph for this function:

◆ correct()

std::vector< bbox_t > track_kalman_t::correct ( std::vector< bbox_t result_vec)
inline
Here is the call graph for this function:

◆ find_state_ids()

std::vector< tst_t > track_kalman_t::find_state_ids ( std::vector< bbox_t result_vec)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_distance()

static float track_kalman_t::get_distance ( float  src_x,
float  src_y,
float  dst_x,
float  dst_y 
)
inlinestatic
Here is the caller graph for this function:

◆ get_state_id()

tst_t track_kalman_t::get_state_id ( bbox_t  find_box,
std::vector< bool > &  busy_vec 
)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ new_state_id()

tst_t track_kalman_t::new_state_id ( std::vector< bool > &  busy_vec)
inline
Here is the caller graph for this function:

◆ predict()

std::vector< bbox_t > track_kalman_t::predict ( )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ dT

float track_kalman_t::dT
private

◆ global_last_time

std::chrono::steady_clock::time_point track_kalman_t::global_last_time
private

◆ img_size

cv::Size track_kalman_t::img_size

◆ kalman_vec

std::vector<one_kalman_t> track_kalman_t::kalman_vec

◆ max_dist

const float track_kalman_t::max_dist

◆ max_objects

int track_kalman_t::max_objects

◆ min_frames

int track_kalman_t::min_frames

◆ result_vec_pred

std::vector<bbox_t> track_kalman_t::result_vec_pred

◆ track_id_counter

int track_kalman_t::track_id_counter
private

◆ track_id_state_id_time

std::vector<tst_t> track_kalman_t::track_id_state_id_time

The documentation for this class was generated from the following file: