Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Opencv4Android KCFTracker grayscale

Hello guys, right now I am facing a problem where grayscale image will causes assertion error in KCFTracker. The problem is probably caused by KCFTracker default params is CN where my image is GRAY. In C++ I can create a KCFTracker object with KCFTracker::Params but I am unable to find a way to set this params in Opencv4Android.

OpenCV Error: Assertion failed (img.channels() == 3) in bool cv::TrackerKCFImpl::getSubWindow(cv::Mat, cv::Rect, cv::Mat&, cv::Mat&, cv::TrackerKCF::MODE)