보통 라즈베리파이를 쓸때 노트북이나 데스크탑이랑 ssh로 연결해서 쓰는 경우가 많습니다. ssh 환경에서 OpenCV를 사용해서 (e.g. cv::imshow("name",img) ) Virtual window를 띄울려고 하면 다음과 같은 문제가 뜹니다. 창이 안뜨고, " Can't initialize GTK backend in function 'cvInitSystem' " 라는 에러 문구가 뜹니다.
Full code: 코드: test.cpp #include #include
\n"; cv::Mat img = cv::imread(path); cv::imshow("lenna", img); cv::w...
원문 링크 : [OpenCV - Raspberry Pi] Troubleshooting - Can't initialize GTK backend in function 'cvInitSystem'