로딩
요청 처리 중입니다...

[OpenCV] VSCode #include path 추가하기

 [OpenCV] VSCode #include path 추가하기

환경: Windows10 WSL2 Ubuntu 포스팅 내용은 전부 WSL에서 진행한것이나, Raspberry Pi 에서도 동일하게 진행 가능. OpenCV를 처음깔고(개힘들었음) vscode키고 들어가서 #include 쓰면 밑에서 에러를 줄겁니다.

Problem: #include errors detected. Please update your includePath. cannot open source file "opencv2/imgproc.hpp 아니면 자주쓰는 헤더파일 (opencv.hpp, highgui.hpp, imgcodecs.hpp) 들을 못찾았다고 나올겁니다.

이건 vscode가 includepath를 못찾아서 그런 것이기 때문에, 따로 추가해줘야합니다. 해결방법: 1. vscode 창에서, 키보드 ctrl + shift + p 2.

Edit configurations 검색 후, (UI)로 되어있는거 클릭 3. 밑으로 스크롤해서, I...

# include