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

could you modified your code for tracking on next frame while not all frames? #19

Open
eeric opened this issue Dec 8, 2020 · 4 comments

Comments

@eeric
Copy link

eeric commented Dec 8, 2020

thanks

@tkamkb
Copy link

tkamkb commented Mar 24, 2021

Hi eeric! I may have the same question with you. Is this iou-tracker code tracks frame by frame? I feel it does iou tracking by loading all frames detections.

@tkamkb
Copy link

tkamkb commented Mar 24, 2021

My solution is loading my detection result every "mint" frames, then get tracks of "mint" frames.

load_dection = []
mint = 2 
  while(True):
     # read a frame
     id = 0
     for c in contours:
        (x, y, w, h) = cv2.boundingRect(c)  
         load_dection = np.concatenate((load_dection, np.array([[cap.get(cv2.CAP_PROP_POS_FRAMES), id, x, y, w, h, 1]])), axis = 0)
         id += 1
    minT += 1
    if minT == mint: 
        detections = load_mot(load_dection, nms_overlap_thresh=None, with_classes=False)
        tracks = track_iou(detections, 0, 0.5, 0.5, mint)
        load_dection = []
        minT = 0

@DataXujing
Copy link

I have the same question too!!!

@Chainesh
Copy link

@DataXujing @tkamkb any lead on this?

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

4 participants