Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

the TrackerKCF uses a combination of grayscale and "color names" features by default , and the latter cannot be used with a b/w image.

(from c++, you'd set the correct flags in the TrackerParams to mend that, but this is not possible from python)

it's unclear, which opencv version you're using, but a recent pr changed this behaviour, so the color-names get disabled automatically, when you initialize it with a grayscale image (you would have to update to latest master branch for both opencv and opencv_contrib, and rebuild your cv2)