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

Getting the class_ID insteag of track_id #336

Open
dodo124 opened this issue Oct 9, 2024 · 0 comments
Open

Getting the class_ID insteag of track_id #336

dodo124 opened this issue Oct 9, 2024 · 0 comments

Comments

@dodo124
Copy link

dodo124 commented Oct 9, 2024

Hi,

and thanks for your great work. Deepsort is doing what it is supposed to do :-)

And while getting the tracking ID is important, it is as much important to get the according class (when tracking different objects).
I am tinkering around that in Python but it looks messy :-( I generally think that besides the track_id,
the class_id might be readout somewhere after this point here:

for track in tracks: if not track.is_confirmed(): continue track_id = track.track_id

Unfortunately I did not find the information.
But I can go through all detentions within the above for_loop like so :

for detection in detections: ([x1, y1, w, h] ,conf, currentClass) = detection print('Test1', detection)

But then again any variable used to store this class information only contains the last of multiple detections :-(

Any ideas how this is done more easily?

Regards Dom

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