Vertical-Beach / ByteTrack-cpp

C++ implementation of ByteTrack that does not include an object detection algorithm.
MIT License
146 stars 29 forks source link

about multi-class tracking #1

Closed BackT0TheFuture closed 2 years ago

BackT0TheFuture commented 2 years ago

Hi, thanks for your efforts. It seemed that it just did support single class tracking. I'm not famliar with cpp and let me know if I was wrong. so is there a plan for multi class tracking? thanks!

medalotte commented 2 years ago

Hi, @goodtogood. The tracking process is implemented as BYTETracker class, and the class deals with only a single class.

The test of this repo is an example. This implementation is single-class tracking because only one instance is declared.

https://github.com/Vertical-Beach/ByteTrack-cpp/blob/e6ee5a1485bedd24e2b8d6411be5d8fef63a6c3e/test/test_BYTETracker.cpp#L121

If you would like to do multi-class tracking, declare std::vector<byte_track::BYTETracker> object and track each class in each of its elements.

BackT0TheFuture commented 2 years ago

Hi @medalotte I got it. BTW, is BYTETracker thread safety? thanks for your details!