Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

the tracking api does not have any explicit opencl acceleration, so using UMat's here is not nessecary.

since Tracker::init() expects a cv::Mat, you'd have to give it a plain numpy array, not a UMat.

if, on the other hand, you have a UMat (e.g. from previous processing), use:

tracker.init(img_umat.get(), (x, y, w, h))