반응형

정말 개같은 에러가 계속 났다. 아래와 같은 에러인데 검색해서 모든 방법을 다 해봤다.

conda에서 지우고 다시 깔고 opencv-contrib-python 깔고 다해봤는데 다 다다다다다안됐다.

cv2.error: OpenCV(4.5.5) /io/opencv/modules/highgui/src/window.cpp:1268: error: (-2:Unspecified error) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Cocoa support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script in function 'cvShowImage'

 

그럼 어떻게 해결했느냐?

pip list를 입력해서 opencv-python-headless가 있으면 지우자

pip uninstall opencv-python-headless

그럼 드디어 웹캠이 된다.....

반응형

'Python' 카테고리의 다른 글

추상클래스(abstract class)  (0) 2022.04.09
덕 타이핑이란?  (0) 2022.04.09
pix2pix augmentation  (0) 2022.03.31
기본적인 베이스 코딩 구조(Class 개념 - 붕어빵 비유)  (0) 2022.02.03
exception print하기  (0) 2022.01.26

+ Recent posts