alanlukezic / d3s

D3S - Discriminative Single Shot Segmentation Tracker (CVPR 2020)
265 stars 57 forks source link

Dead simple evaluation #2

Closed nofreewill42 closed 3 years ago

nofreewill42 commented 4 years ago

Is there a basic function given it a picture and a first_state and then giving it the next pictures of a sequence? I feel like the rabbit hole is too deep and I cannot use this project. Or how should I use it in a live video feed where the pictures are coming from a RPi to my GPU server?

alanlukezic commented 4 years ago

You can check pytracking/vot_wrapper.py to see how the tracker is created and used on a video sequence. In general you have to create tracker instance: tracker = Segm(params) Initialize tracker on the first frame: tracker.initialize(image, gt_rect) In all the following frames you call track method to get estimation of the target position: prediction = tracker.track(image)