在全屏和没有任何边框OpenCV的窗口 [英] OpenCV window in fullscreen and without any borders
问题描述
在与显示图像时OpenCV的:
In OpenCV when displaying an image with:
cvSetWindowProperty("displayCVWindow", CV_WND_PROP_FULLSCREEN,
CV_WINDOW_FULLSCREEN);
有是围绕整个放映窗口一个边陲如果有人没有注意到。有没有一种方式来获得摆脱这种?
There is a small border around the full screened window if anyone ever noticed. Is there a way to get a rid of this?
屏幕截图显示在全屏模式下窗口时的边框。 注意:截图被裁剪,只显示左上角
Screenshot showing border of window when in full screen mode. Note: the screenshot was cropped to show only top-left corner
推荐答案
OpenCV中不提供此功能即可。
如果您希望在全屏模式或浮动周围无窗/边界图像,您将有两个选择:
If you want to have the image in fullscreen mode or floating around without window/borders you will have 2 choices:
-
哈克由OpenCV的创建的窗口;
自己创建的窗口使用本机API调用。
Create the window yourself using native API calls.
如果你决定要破解的窗口,可以试试这个code 并替换 SetWindowLong函数()
要求:
If you decide to hack the window, you may try this code and replace the SetWindowLong()
call for:
SetWindowLong(win_handle, GWL_STYLE, 0;
如果不工作,你就必须得更深挖掘到在Windows窗口创建。
If that doesn't work, you'll have to dig a little deeper into window creation on Windows.
这篇关于在全屏和没有任何边框OpenCV的窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!