Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting error in cv::imshow() - ASSERT: "false" in file qasciikey.cpp, line 501

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);
like image 253
Georgi Angelov Avatar asked Mar 07 '16 06:03

Georgi Angelov


2 Answers

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

like image 88
hplio Avatar answered Oct 18 '22 06:10

hplio


Try this.

pip install qtconsole

I solve the problem.

like image 4
hyunji Yoo solteee Avatar answered Oct 18 '22 05:10

hyunji Yoo solteee