Ask Your Question

Renan Stigliani's profile - activity

2018-08-22 09:39:35 -0600 marked best answer How to use setInitialMask on TrackerCSRT?

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

tracker = cv2.TrackerCSRT_create()
tracker.init(frame, region_of_interest)

The region of interst include my object, but it also include irrelevant pixels from the background or other objects.

I would like to use a mask to refine which pixels I'm interested in. Looking over the documentation, I can see method setInitialMask on the C++ version, but I cannot find the equivalent method in the Python wrapper.

How do I set a mask in TrackerCSRT on openCV for Python?

2018-08-22 09:39:35 -0600 received badge  Scholar (source)
2018-08-21 14:55:11 -0600 asked a question How to use setInitialMask on TrackerCSRT?

How to use setInitialMask on TrackerCSRT? I am using TrackerCSRT for object tracking in a video, and currently I use the