Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 6129

qt.qpa.xcb: could not connect to displayerror while using OpenCV on ec2 ubuntu server 20.0

$
0
0

I am trying to run Tesseract Ocr code as mentioned herehttps://www.pyimagesearch.com/2018/09/17/opencv-ocr-and-text-recognition-with-tesseract/on ec2 ubuntu server 20.0.

I am facing an error on:

cv2.imshow("Text Detection", output)

The error is as follows:

qt.qpa.xcb: could not connect to displayqt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/usr/local/lib/python3.8/dist-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, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc.

Aborted (core dumped)

I know this line of code would open a window to display the image of detected output ,but that window is not showing up.Please help with the error.


Viewing all articles
Browse latest Browse all 6129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>