• 5770阅读
  • 3回复

【提问】qt中调用opencv的问题 [复制链接]

上一主题 下一主题
离线hitaeolus
 

只看楼主 倒序阅读 楼主  发表于: 2005-11-17
我在linux下用QT Designer做的主界面,调用opencv

    cvNamedWindow( "Image view", 1 );
    cvShowImage( "Image view", img );
    cvWaitKey(0);
    cvDestroyWindow( "Image view" );
    cvReleaseImage( &img );

用上面的代码显示出图像片后,后面的主界面就没响应的,而且关闭窗口时显示 窗口"<unknow>"没有响应
请各位大侠帮忙!!!!
[ 此贴被hitaeolus在2005-11-18 17:38重新编辑 ]
离线kanisbaby
只看该作者 1楼 发表于: 2009-05-15
请问楼主解决问题没有
可以请教一下吗?
离线paomu52
只看该作者 2楼 发表于: 2009-05-15
应该是在cvWaitKey(0)停住了  因为cvWaitKey(0)无限等待

The cvWaitKey() function asks the program to stop and wait for a keystroke.
If a positive argument is given, the program will wait for that number of milliseconds and then continue even if nothing is pressed.
If the argument is set to 0 or to a negative number, the program will wait indefinitely for a keypress
离线paomu52
只看该作者 3楼 发表于: 2009-05-15
楼主 我刚搞QT 多多交流 QQ 115435544 我经常遇到问题没人讨论 郁闷啊
快速回复
限100 字节
 
上一个 下一个