1

I'm using Visual Studio Code online.

I tried to use opencv with imshow function, but I got the following error:

Python cv2.imshow() not working: cannot connect to X server

  • Is there a way for building a docker with display options?

  • Or some other workaround to use this function?

help-info.de
  • 6,695
  • 16
  • 39
  • 41
DevFromI
  • 191
  • 1
  • 20
  • Did you look at this [post](https://stackoverflow.com/questions/39840184/python-code-crashes-with-cannot-connect-to-x-server-when-detaching-sshtmux-se)? – Ahmet Aug 27 '20 at 15:56
  • Have you looked at this page? https://stackoverflow.com/questions/16296753/can-you-run-gui-applications-in-a-docker-container/25280523#25280523. maybe it can make some help. – Steven-MSFT Sep 01 '20 at 01:51
  • Nope both didnt work, i am using vscode on web. and i am trying to use opencv in order to see images – DevFromI Sep 02 '20 at 09:37

0 Answers0