25 #include <opencv2/core/core.hpp> 26 #include <opencv2/highgui/highgui.hpp> 27 #include <opencv2/imgproc/imgproc.hpp> 28 #include "fastdeploy/fastdeploy_model.h" 29 #include "fastdeploy/vision/tracking/pptracking/trajectory.h" 35 typedef std::map<int, int> Match;
36 typedef std::map<int, int>::iterator MatchIterator;
44 class FASTDEPLOY_DECL JDETracker {
49 virtual bool update(
const cv::Mat &dets,
51 std::vector<Track> *tracks);
52 virtual ~JDETracker() {}
55 cv::Mat motion_distance(
const TrajectoryPtrPool &a,
const TrajectoryPool &b);
56 void linear_assignment(
const cv::Mat &cost,
59 std::vector<int> *mismatch_row,
60 std::vector<int> *mismatch_col);
61 void remove_duplicate_trajectory(TrajectoryPool *a,
63 float iou_thresh = 0.15f);
67 TrajectoryPool tracked_trajectories;
68 TrajectoryPool lost_trajectories;
69 TrajectoryPool removed_trajectories;
All C++ FastDeploy APIs are defined inside this namespace.
Definition: option.h:16