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

cv::watch seems to be not working properly. #79

Open
team4015 opened this issue Apr 25, 2019 · 3 comments
Open

cv::watch seems to be not working properly. #79

team4015 opened this issue Apr 25, 2019 · 3 comments
Labels
bug c++ Issues related to the C++ version of cvui

Comments

@team4015
Copy link

According to the docs, I set up a default window to initialize cvui but never use it. Whenever I create a new window using open cv's namedWindow() function and use cvui::watch() on it, it doesn't seem to work as I can't interact with the elements that I put on the window ex. trackbars etc

@team4015
Copy link
Author

Interestingly, calling cvui::init() instead of cvui::watch() does the job but I'm not sure if this is how its supposed to be done.

@team4015
Copy link
Author

Actually, I'll back track on that, the manipulation is messed up as it is moving 2 trackbars on separate windows at the same time.

@Dovyski
Copy link
Owner

Dovyski commented Apr 25, 2019

That's definitely a bug. Internally, cvui::init() calls cvui::watch() to monitor window, so an isolated call to cvui::watch() was designed for the scenario you described, i.e. cv::namedWindow() followed by watch.

Are you using cvui::context() when working with multiple windows?

@Dovyski Dovyski added bug c++ Issues related to the C++ version of cvui labels Apr 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug c++ Issues related to the C++ version of cvui
Projects
None yet
Development

No branches or pull requests

2 participants