|
OpenShot Library | libopenshot
0.5.0
|
Go to the documentation of this file.
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);
std::vector< cv::Point > matchedPairs
struct TrackingBox TrackingBox
std::vector< int > assignment
std::set< int > unmatchedTrajectories
std::vector< TrackingBox > frameTrackingResult
std::vector< KalmanTracker > trackers
double GetCentroidsDistance(cv::Rect_< float > bb_test, cv::Rect_< float > bb_gt)
std::set< int > unmatchedDetections
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)
static double GetIOU(cv::Rect_< float > bb_test, cv::Rect_< float > bb_gt)
std::set< int > matchedItems
double max_centroid_dist_norm
TrackingBox(int _frame, float _confidence, int _classId, int _id)
std::vector< std::vector< double > > cost_matrix
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 > dead_trackers_id