Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.

Openvino Runtime

yleal
Beginner
741 Views

Hi! I'm trying to run Image Deblurring Python Demo from this command: 

python3 deblurring_demo.py -m /media/ssd/public/deblurgan-v2/FP32/deblurgan-v2.xml -i /media/ssd/open_model_zoo/demos/deblurring_demo/python/deblurred_image.png -d MYRIAD 

Could you, please, check that it is everything correct?

And I get the following error:

qt.qpa.xcb: could not connect to display
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/media/ssd/openvino_env/lib/python3.8/site-packages/cv2/qt/plugins" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: xcb.

Aborted (core dumped)

So, where it is the problem and what can I do to solve it?

0 Kudos
1 Solution
Megat_Intel
Moderator
682 Views

Hi Yleal,

Thank you for reaching out to us.

 

Are you using an SSH connection to connect to your device with OpenVINO™ installed?

 

For your information, the "qt.qpa.xcb: could not connect to display" error is due to the SSH connection unable to display the OpenVINO™ demo image result. I got the same error as yours when running Image Deblurring Python Demo remotely using an SSH connection.

error.png

 

Alternatively, a workaround for this is to use X forwarding over SSH. X11 port forwarding/tunneling lets you interact with the GUI of an application running on a remote computer. You can check out these guides below. (These are external links and are not maintained by Intel®)

 

On another note, I manage to enable X11 forwarding over SSH on my device and successfully ran the Image Deblurring Python Demo as shown below:

result_code.pngresult_demo.png

 

 

Regards,

Megat

 

View solution in original post

3 Replies
Megat_Intel
Moderator
683 Views

Hi Yleal,

Thank you for reaching out to us.

 

Are you using an SSH connection to connect to your device with OpenVINO™ installed?

 

For your information, the "qt.qpa.xcb: could not connect to display" error is due to the SSH connection unable to display the OpenVINO™ demo image result. I got the same error as yours when running Image Deblurring Python Demo remotely using an SSH connection.

error.png

 

Alternatively, a workaround for this is to use X forwarding over SSH. X11 port forwarding/tunneling lets you interact with the GUI of an application running on a remote computer. You can check out these guides below. (These are external links and are not maintained by Intel®)

 

On another note, I manage to enable X11 forwarding over SSH on my device and successfully ran the Image Deblurring Python Demo as shown below:

result_code.pngresult_demo.png

 

 

Regards,

Megat

 

yleal
Beginner
671 Views

Thank you very much! It did not work to me because I realized the device I was working to has Ubuntu Server, so I can't see them, but I saved the image and now I can send it or something.

0 Kudos
Megat_Intel
Moderator
658 Views

Hi Yleal,

Thank you for your question. This thread will no longer be monitored since this issue has been resolved. If you need any additional information from Intel, please submit a new question.

 

 

Regards,

Megat


0 Kudos
Reply