Skip to content

displayOverlay doesn't disappear after timeout#27082

Merged
asmorkalov merged 2 commits intoopencv:4.xfrom
huiyu-mcse:fix_bug
Mar 17, 2025
Merged

displayOverlay doesn't disappear after timeout#27082
asmorkalov merged 2 commits intoopencv:4.xfrom
huiyu-mcse:fix_bug

Conversation

@huiyu-mcse
Copy link
Copy Markdown
Contributor

@huiyu-mcse huiyu-mcse commented Mar 17, 2025

Fixes #26555

Expected Behaviour

An overlay should be displayed atop an image and then disappear after delayms has timed out, but it doesn't. Also, displayStatusBar doesn't appear to set any text on the window.

Actual Behaviour

The overlay appears but doesn't disappear unless a mouse move event happens on the image.

Changes

  • Fixed the issue with displayOverlay not disappearing after the timeout.

Checklist

  • I agree to contribute to the project under Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV.
  • The PR is proposed to the proper branch.
  • There is a reference to the original bug report and related work.
  • There is accuracy test, performance test, and test data in the opencv_extra repository, if applicable.
  • The feature is well documented, and sample code can be built with the project CMake.

Expected behaviour:
an overlay should be displayed atop an image and then
disappear after delayms has timed out but doesn't.
Also, displayStatusBar doesn't appear to
set any text on the window.
Actual:
the overlay appears but doesn't disappear unless
a mouse move event happens on the image.
@asmorkalov asmorkalov changed the title Fix #26555: displayOverlay doesn't disappear after timeout displayOverlay doesn't disappear after timeout Mar 17, 2025
@asmorkalov asmorkalov added the bug label Mar 17, 2025
@asmorkalov asmorkalov self-assigned this Mar 17, 2025
@asmorkalov asmorkalov added this to the 4.12.0 milestone Mar 17, 2025
@asmorkalov
Copy link
Copy Markdown
Contributor

The cvUpdateWindow designed for OpenGL integration:

CV_IMPL void cvUpdateWindow(const char*)
{
    CV_Error(cv::Error::OpenGlNotSupported, "The library is compiled without OpenGL support");
}

I got the error in my build without OpenGL support.

@asmorkalov asmorkalov merged commit 855f20f into opencv:4.x Mar 17, 2025
28 checks passed
@asmorkalov asmorkalov mentioned this pull request Apr 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

python binding: displayOverlay doesn't disappear from the display unless a mouse move event happens over the image

2 participants