Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot connect to X server #19

Open
Tortschi opened this issue Nov 22, 2019 · 2 comments
Open

Cannot connect to X server #19

Tortschi opened this issue Nov 22, 2019 · 2 comments

Comments

@Tortschi
Copy link

Hello,

i get a Problem when i run the Code on an Ubuntu Server 18.04.
When i use: python eval.py –video="https://www.youtube.com/watch?v=hfeNyZV6Dsk"

i get this Error: : cannot connect to X server

Whats the Problem for it?

@Nikolay-Kha
Copy link
Contributor

looks like something wants to have GUI. I don't remember any components in devicehive-video-analysis that uses actual UI... maybe opencv wants it(it has some UI components, but they are not used in this project).

Alternativly, you can try to run it with virtual UI using Xvfb.
xvfb-run python eval.py –video="https://www.youtube.com/watch?v=hfeNyZV6Dsk"

@Tortschi
Copy link
Author

[ WARN:0] global /io/opencv/modules/videoio/src/cap_v4l.cpp (802) open VIDEOIO ERROR: V4L: can't open camera by index 0 Traceback (most recent call last): File "eval.py", line 126, in <module> tf.app.run(main=evaluate) File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/platform/app.py", line 48, in run _sys.exit(main(_sys.argv[:1] + flags_passthrough)) File "eval.py", line 44, in evaluate raise IOError('Can\'t open "{}"'.format(FLAGS.video)) IOError: Can't open "0"

Now i get this Error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants