在 cv::imshow() 中出错 - 断言:“false";在文件 qasciikey.cpp 中,第 501 行 [英] Getting error in cv::imshow() - ASSERT: "false" in file qasciikey.cpp, line 501

查看:148
本文介绍了在 cv::imshow() 中出错 - 断言:“false";在文件 qasciikey.cpp 中,第 501 行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我调用 cv::waitKey() 时,我都会收到此错误:

I am getting this error whenever I call cv::waitKey():

ASSERT: "false" in file qasciikey.cpp, line 501

我不确定为什么会收到此错误.我在通过 Windows 上的 MobaXterm 连接的 Ubuntu Server 14.04 EC2 实例上运行.如果我在普通的 ubuntu 机器上运行所有相同的代码,一切都很好.

I am not sure why I am getting this error. I am running on an Ubuntu Server 14.04 EC2 instance connected through MobaXterm on Windows. If I run all of the same code on a normal ubuntu machine, all works great.

这是发生这种情况的行:

This is the line where this happens:

char key = cvWaitKey(33);

推荐答案

MobaXterm 中的一种解决方法是在 X11 设置中取消选中Unix-compatible keyboard".

A workaround in MobaXterm is to uncheck "Unix-compatible keyboard" in X11 settings.

这篇关于在 cv::imshow() 中出错 - 断言:“false";在文件 qasciikey.cpp 中,第 501 行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆