9

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

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

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);
Georgi Angelov
  • 4,338
  • 12
  • 67
  • 96

3 Answers3

13

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

hplio
  • 131
  • 1
  • 2
4

Try this.

pip install qtconsole

I solve the problem.

2

I am not trying to get the glory here but I think this deserves a proper answer.

As @George mentioned in the comment when my input was not from an English keyboard but used some other locale then this error occurs. I have seen other proposed reasons for this error but I guess this is a quite usual case since the error reports:

ASSERT: "false"

Eypros
  • 5,370
  • 6
  • 42
  • 75