ASSERT: “false” in file qasciikey.cpp, line 501

  • Post author:
  • Post category:其他


pycharm利用moba-xterm的x server远程开发,在用cv2显示图片时报错:ASSERT: “false” in file qasciikey.cpp, line 501

代码:

cv2.imshow('frame', frame)
cv2.waitKey(0)

解决:

moba-xterm > settings > x11 Settings > “Unix-compatible keyboard” 的复选框不要勾选,然后按照提示会自动重启x server,重新在pycharm运行代码就可以了

感谢

hplio

@

https://stackoverflow.com/questions/35837255/getting-error-in-cvimshow-assert-false-in-file-qasciikey-cpp-line-501