Giter Club home page Giter Club logo

Comments (6)

levan92 avatar levan92 commented on July 23, 2024 1

Multi-object tracking algorithms like DeepSORT here works within the context of one camera view. You may independently run an instance of DeepSORT for each of your cameras, that is up to your implementation. If you want to track across different cameras, then that's another task -- you may want to check out person re-identification algorithms and build your own re-id engine.

from deep_sort_realtime.

levan92 avatar levan92 commented on July 23, 2024 1

Multi-object tracking algorithms like DeepSORT here works within the context of one camera view. You may independently run an instance of DeepSORT for each of your cameras, that is up to your implementation. If you want to track across different cameras, then that's another task -- you may want to check out person re-identification algorithms and build your own re-id engine.

Thanks, so if I use weights from person re-id and use DeepSORT it's actually not working, am I right?

If you're using person re-id appearance embedder for your deepsort tracking, then I think it should be reasonable for you to to re-use these features from each track for re-identification across different cameras. But do note that in this repo, we use a light re-id network for appearance embedding by design. For person re-id across cameras, people may want to use deeper re-id networks for better discriminative ability. End of the day, it's up to your design considerations.

from deep_sort_realtime.

hafidh561 avatar hafidh561 commented on July 23, 2024 1

Thank's for your answers. It's clear to me. I hope you have a great day.

from deep_sort_realtime.

romarcg avatar romarcg commented on July 23, 2024

If I understood your question, you should add your own frame reading logic to the readme example, like so:


from deep_sort_realtime.deepsort_tracker import DeepSort
# define your deepsort tracker
tracker = DeepSort(max_age=5)

# initialize your frame reader (e.g., individual file data loader, opencv video stream)
reader = init_reader()
# read frame and process it until end_condition is met, e.g., no more frames in video
while (not end_condition):
  # read frame
  frame = reader.read_frame()
  # detect objects in frame
  bbs = object_detector.detect(frame) 
  tracks = tracker.update_tracks(bbs, frame=frame) # bbs expected to be a list of detections, each in tuples of ( [left,top,w,h], confidence, detection_class )
  for track in tracks:
      if not track.is_confirmed():
          continue
      track_id = track.track_id
      ltrb = track.to_ltrb()
  # update end_condition

reader.close_reader()

from deep_sort_realtime.

hafidh561 avatar hafidh561 commented on July 23, 2024

Multi-object tracking algorithms like DeepSORT here works within the context of one camera view. You may independently run an instance of DeepSORT for each of your cameras, that is up to your implementation. If you want to track across different cameras, then that's another task -- you may want to check out person re-identification algorithms and build your own re-id engine.

Thanks, so if I use weights from person re-id and use DeepSORT it's actually not working, am I right?

from deep_sort_realtime.

hafidh561 avatar hafidh561 commented on July 23, 2024

If I understood your question, you should add your own frame reading logic to the readme example, like so:


from deep_sort_realtime.deepsort_tracker import DeepSort
# define your deepsort tracker
tracker = DeepSort(max_age=5)

# initialize your frame reader (e.g., individual file data loader, opencv video stream)
reader = init_reader()
# read frame and process it until end_condition is met, e.g., no more frames in video
while (not end_condition):
  # read frame
  frame = reader.read_frame()
  # detect objects in frame
  bbs = object_detector.detect(frame) 
  tracks = tracker.update_tracks(bbs, frame=frame) # bbs expected to be a list of detections, each in tuples of ( [left,top,w,h], confidence, detection_class )
  for track in tracks:
      if not track.is_confirmed():
          continue
      track_id = track.track_id
      ltrb = track.to_ltrb()
  # update end_condition

reader.close_reader()

Sorry if my question it's not clear enough. I mean another camera view, not just a single camera. If using this, it's not working in multiple camera views.

from deep_sort_realtime.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.