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

Past detection results remain #6

Open
cedar-field opened this issue Oct 31, 2023 · 0 comments
Open

Past detection results remain #6

cedar-field opened this issue Oct 31, 2023 · 0 comments

Comments

@cedar-field
Copy link

cedar-field commented Oct 31, 2023

Thank you authors for creating useful python wrapper for STag.
I found stag.Detector keep past detection results.
I tried to use this class to process videos (multiple frames), but the dec.getContours() function seems to return all past results even after new frame is processed.
I solved this issue by adding markers.clear() in detectMarkers function and rebuild, but if there are some better solution please teach me.

int Stag::detectMarkers(Mat inImage) {
  markers.clear(); // added sentence
  image = inImage;
  // ...
}
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

1 participant