cv2.imshow "the function is not implemented"

Treeboy·2023년 8월 1일

cv2.imshow('test', im) 을 했을 때

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

이런 에러가 나왔는데,

https://github.com/opencv/opencv-python/issues/18 에서 다루듯이 재설치로 해결하는 사람도 있을 수 있다.

하지만, 내 경우 출력 장치가 없는 (모니터) 원격 워크스페이스에서 작업했기 때문에, 새 창에 이미지를 띄우는 imshow 는 근본적으로 사용할 수가 없었다.

해결방법: matplotlib의 imshow를 사용하자.

profile
지식이 모자라서 논문리뷰를...

1개의 댓글

comment-user-thumbnail
2023년 8월 1일

좋은 정보 얻어갑니다, 감사합니다.

답글 달기