Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TrackerKCF configured for grayscale randomly fails #3893

Open
superware opened this issue Feb 28, 2025 · 1 comment
Open

TrackerKCF configured for grayscale randomly fails #3893

superware opened this issue Feb 28, 2025 · 1 comment

Comments

@superware
Copy link

superware commented Feb 28, 2025

Hello,

I'm on 4.11.0, think I found a critical bug in cv::TrackerKCF when configuring as follows and feeding CV_8UC1 (grayscale) frames:

cv::TrackerKCF::Params params = {
  .desc_npca = cv::TrackerKCF::GRAY,
  .desc_pca = cv::TrackerKCF::GRAY,
  .compressed_size = 1
};

In perfect conditions (perfectly still scene+target), in about 15-20% of the times, the following exact sequence occur: create() -> init() -> update() true -> update() false. When I switch to CV_8UC3 (BGR) and use the default cv::TrackerKCF::Params then everything works as expected and tracking is never lost.

Thank you.

@asmorkalov
Copy link
Contributor

Could you attach simple issue reproducer?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants