简体   繁体   English

是否可以使用opencv的imshow在不使用工具栏的情况下显示图像?

[英]Is it possible to show image without toolbar with opencv's imshow?

When OpenCV's imshow is invoked, it always shows a toolbar at the top of the image. 调用OpenCV的imshow时,它始终在图像顶部显示一个工具栏。 Is there anyway to turn it off? 反正有关闭它吗?

Mat frame;
bool bSuccess = cap.read(frame);
imshow("MyVideo", frame);
if ( cvWaitKey(30) == 27 ) {
       break;
}

I'm using OpenCV 3.0 under ubuntu 14.04. 我正在ubuntu 14.04下使用OpenCV 3.0。

You can put namedWindow("MyVideo", CV_GUI_NORMAL); 您可以放置namedWindow("MyVideo", CV_GUI_NORMAL); outside of the loop containing imshow("MyVideo",frame); 在包含imshow("MyVideo",frame);的循环之外imshow("MyVideo",frame); .

For more details, see this link . 有关更多详细信息,请参见此链接

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM