How to use python T-API with the tracking module?
I tried
tracker = cv2.Tracker_create("TLD")
img_umat = cv2.UMat(img)
tracker.init(img_umat, (x, y, w, h))
But it says TypeError: image is not a numpy array, neither a scalar
.
What is the correct usage?