ByteTrack icon indicating copy to clipboard operation
ByteTrack copied to clipboard

Need help with API / How to get id of bbox?

Open ViktorPavlovA opened this issue 1 year ago • 0 comments

My test code looks like this:

#include #include #include #include <Eigen/Dense> #include "BYTETracker.h"

int main() { BYTETracker tracker;

Eigen::MatrixXf detections(3, 5); detections << 10, 10, 20, 20, 0.9, 30, 30, 40, 40, 0.8, 50, 50, 60, 60, 0.7; std::vector<KalmanBBoxTrack> tracked_objects = tracker.process_frame_detections(detections);

for (size_t i = 0; i < tracked_objects.size(); i++){ auto tlwh = tracked_objects[i].tlwh(); auto track_id = tracked_objects[i].track_id; std::cout << "tlwh:" << tlwh<< std::endl; std::cout << "Track_id:" << track_id << std::endl;

}

return 0; }

ViktorPavlovA avatar Sep 17 '24 08:09 ViktorPavlovA