10 #include "opencv2/video/tracking.hpp" 11 #include "opencv2/highgui/highgui.hpp" 13 #ifndef _OPENCV_KCFTRACKER_HPP_ 14 #define _OPENCV_KCFTRACKER_HPP_ 24 cv::Rect_<float>
box = cv::Rect_<float>(0.0, 0.0, 0.0, 0.0);
37 void update(std::vector<cv::Rect> detection,
int frame_count,
double image_diagonal, std::vector<float> confidences, std::vector<int> classIds);
38 double GetIOU(cv::Rect_<float> bb_test, cv::Rect_<float> bb_gt);
39 double GetCentroidsDistance(cv::Rect_<float> bb_test, cv::Rect_<float> bb_gt);
42 double max_centroid_dist_norm = 0.05;
56 unsigned int trkNum = 0;
57 unsigned int detNum = 0;
std::vector< cv::Rect_< float > > predictedBoxes
std::vector< int > dead_trackers_id
std::vector< int > assignment
std::vector< cv::Point > matchedPairs
TrackingBox(int _frame, float _confidence, int _classId, int _id)
std::set< int > unmatchedTrajectories
std::set< int > unmatchedDetections
std::vector< KalmanTracker > trackers
std::vector< TrackingBox > frameTrackingResult
std::vector< std::vector< double > > centroid_dist_matrix
std::set< int > matchedItems