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?
1 | initial version |
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?