본문 바로가기
Development/OpenCV

Could not load the Qt platform plugin xcb

by shuka 2023. 2. 10.
728x90
728x90

Could not load the Qt platform plugin ‘xcb’ 오류 발생

python version의 opencv를 사용하기 위해 다음과 같이 패키지를 설치하였다.

 

pip install opencv-python
pip install opencv-contrib-python

 

그런데 다음과 같은 에러가 발생했다.

‘Avalable platform plugins are: xcb, egifs, glfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl.’

 

 

 

plugin ‘xcb’오류 해결 방법

해당 오류에서는 opencv-python-headless를 설치해주면 된다.

pip install opencv-python-headless

 

opencv-python-headless에 대한 설명은 ‘GUI가 없는 서버 환경에 대한 패키지’라고 되어 있는데, 확실히 어떻게 사용되는지는 잘 모르겠다.

 

 

 

 

728x90
반응형

댓글