14#include "opencv2/video/tracking.hpp"
15#include "opencv2/highgui/highgui.hpp"
17#ifndef _OPENCV_KCFTRACKER_HPP_
18#define _OPENCV_KCFTRACKER_HPP_
28 cv::Rect_<float>
box = cv::Rect_<float>(0.0, 0.0, 0.0, 0.0);
37 SortTracker(
int max_age = 50,
int min_hits = 5,
int max_missed = 7,
double min_iou = 0.1,
double nms_iou_thresh = 0.5,
double min_conf = 0.3);
41 void update(std::vector<cv::Rect> detection,
int frame_count,
double image_diagonal, std::vector<float> confidences, std::vector<int> classIds);
42 static double GetIOU(cv::Rect_<float> bb_test, cv::Rect_<float> bb_gt);
double max_centroid_dist_norm
std::vector< int > dead_trackers_id
std::vector< TrackingBox > frameTrackingResult
std::set< int > unmatchedDetections
std::vector< std::vector< double > > cost_matrix
std::vector< cv::Point > matchedPairs
double GetCentroidsDistance(cv::Rect_< float > bb_test, cv::Rect_< float > bb_gt)
std::vector< KalmanTracker > trackers
std::vector< cv::Rect_< float > > predictedBoxes
void update(std::vector< cv::Rect > detection, int frame_count, double image_diagonal, std::vector< float > confidences, std::vector< int > classIds)
std::vector< int > assignment
std::set< int > matchedItems
std::set< int > unmatchedTrajectories
static double GetIOU(cv::Rect_< float > bb_test, cv::Rect_< float > bb_gt)
TrackingBox(int _frame, float _confidence, int _classId, int _id)