Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ViktorPavlovA opened this issue Sep 17, 2024 · 0 comments
Open

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

ViktorPavlovA opened this issue Sep 17, 2024 · 0 comments

Comments

@ViktorPavlovA
Copy link

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 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;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant