You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have no experience with the qt backend and never used it together with cv-plot. cv-plot's interactive viewer is based on cv::setMouseCallback() and the traditional cv::imshow(). The qt backend supports zooming which interferes with cv-plot's zooming. I guess it may be best to deactivate qt-zooming.
But I don't think deactivating qt-zooming is easy to implement without modifying OpenCV Lib.
Is there any way to handle key press events for each window separately? Using a keyboard may be easier to be implemented.
Maybe using cv::WINDOW_GUI_NORMAL works?
Another way could be to use an additional modifier key (ctrl/shift/alt) for cv-plot. You could try to subclass (or replace) CvPlot::Window.
Activity
wystephen commentedon May 30, 2022
In detail, the right button of the mouse and the wheel of mouse are handled by cv::imshow.
wpalfi commentedon Jun 7, 2022
Thank you for reporting, sounds reasonable. I dont have time to look into it. Would you like to provide a fix?
wystephen commentedon Jul 20, 2022
I want to make some modifications. But I am not familiar with OpenCV imshow() and your project. Could you give me some hints?
wpalfi commentedon Jul 20, 2022
I have no experience with the qt backend and never used it together with cv-plot. cv-plot's interactive viewer is based on
cv::setMouseCallback()and the traditionalcv::imshow(). The qt backend supports zooming which interferes with cv-plot's zooming. I guess it may be best to deactivate qt-zooming.wystephen commentedon Jul 20, 2022
But I don't think deactivating qt-zooming is easy to implement without modifying OpenCV Lib.
Is there any way to handle key press events for each window separately? Using a keyboard may be easier to be implemented.
wpalfi commentedon Jul 20, 2022
Maybe using
cv::WINDOW_GUI_NORMALworks?Another way could be to use an additional modifier key (ctrl/shift/alt) for cv-plot. You could try to subclass (or replace)
CvPlot::Window.