How to use setInitialMask on TrackerCSRT?

前端 未结 4 799
小鲜肉
小鲜肉 2021-01-21 07:00

I am using TrackerCSRT for object tracking in a video, and currently I use the init method on the tracker to set the region of interest



        
4条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-21 07:46

    I do not know of setInitialMask but in python you can select your region of interest using cv2.selectROI() method.

    A blog post on tracking objects in a video can be found here along with relevant code in a step-by-step approach.

提交回复
热议问题