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

True Headless Mode #107

Open
WojOstr opened this issue Mar 28, 2021 · 3 comments
Open

True Headless Mode #107

WojOstr opened this issue Mar 28, 2021 · 3 comments
Labels

Comments

@WojOstr
Copy link

WojOstr commented Mar 28, 2021

Is it possible to implement a window without a header? I noticed that there is a "Headless Mode" on the dev branch, after rewriting it to python and examining the example I noticed that it creates a virtual window, which is not my expected effect. This would really help me and my program, as I'm using multiple windows. Thanks.

image

@Dovyski
Copy link
Owner

Dovyski commented Apr 5, 2021

I am not very sure about this. I think the headless mode implemented in the dev branch is an initial step to provide a fully headless experience. As displayed in your screenshot, this window is very likely a consequence of some OpenCV window/loop function being called to process everything.

It would be a matter of identifying which function is that and preventing it of being called. That will cause other problems, like the event loop of OpenCV not handling things properly (so the program might become unresponsive). As I said, it is something to be investigated.

@WojOstr
Copy link
Author

WojOstr commented Apr 6, 2021

Thanks for your answer
I think you might missunderstand my problem/issue, as i missunderstanted what really "headless" is.

What I would like to achieve in my program, is somehow "hiding" the header of window, or at least deny option to maximize the window to fullscreen, is it possible?

I.E, in this case there would be no header with "WINDOW_SE..." " "
image

@Dovyski
Copy link
Owner

Dovyski commented Apr 12, 2021

Oh, now I got it 😄 Thanks for explaining it further!

Unfortunately we cannot achieve that using OpenCV alone, since it has no API to hide the header of the window. Maybe that would be possible using Qt, but cvui itself will not be able to help.

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

No branches or pull requests

2 participants