Programming/Sensors
Setting Up OpenCV in Visual Studio 2015
OKOK
2017. 3. 14. 23:38
출처
https://www.youtube.com/watch?v=l4372qtZ4dc
1. OpenCV 다운로드
2. 환경설정 : path 설정해주기
3. 프로젝트 생성 C++ 콘솔
4. Debug x64 로 변경하기
5. 제공되는 예제 코드 복붙
6. C++ General Additional Include Directories : D:\DragoniteGO\opencv\build\include (인클루드)
7. Linker General Additional Library Directories : D:\DragoniteGO\opencv\build\x64\vc14\lib (라이브러리)
8. Linker Input Additional Dependencies : opencv_world320d.lib (라이브러리 중 하나)
9. 생성 파일안에 data 라는 파일 생성 후 jpg 파일 복붙
10. Properties Debugging Command Arguments ../data/dragonite.jpg 입력
11. Ctrl+F5
Dilation Demo
Erosion Demo 에 각 2개의 Elemen, Kernel 이 생성된다.
중간에 dll 에 관한 오류시 댓글 보고 수정완료.
시스템 환경설정에서 path 부분에 bin folder of vc 14 의 위치를 추가한다.
사진 데이터 입력 전 링크 및 설정 테스트 완료
사진을 넣어서 확인 완료