OS : Ubuntu 18.04.3 LTS
OpenCV version : 4.1.1
OpenGL version : 4.3
비전 기반 카메라 위치 추출 및 openGL 연동
-
assimp
$ sudo apt-get install libassimp-dev assimp-utils $ sudo apt-get install libxmu-dev libxi-dev
-
glfw
$ sudo apt-get install libglfw3-dev libglfw3
-
glm
$ sudo apt install libglm-dev
- make a charucoboard to calibrate
g++ -o charucoboard charucoboard.cpp $(pkg-config opencv4 --cflags --libs)
createboard.jpg
- calibrate
$ g++ -o calibrate calibrate.cpp $(pkg-config opencv4 --cflags --libs)
press 'c' 5 or more times. 'ESC' to finish and calibrate. createoutput.txt
- In "KnuMakerViewer",
$ cmake CMakeLists.txt
- create
viewer
by$ make
- GLSL 3.30 is not supported : In
./KnuMarkerViewer/shader/grid.vs
, change like this.#version 130 // ... in vec3 vertexPosition; in vec3 vertexColor; ...
In./KnuMarkerViewer/shader/grid.fs
, change like this.#version 130 ...
-
$./viewer
default - marker ID : 0, threadMode : 0(= false), camera ID : 0 -
$./viewer (marker ID)
$./viewer (marker ID) (threadMode)
$./viewer (marker ID) (threadMode) (cameara ID)
-> 프레임 향상을 위해 threadMode 활성화 시
1
입력
-> maker ID : imgui 메뉴로 통합 예정
- 2019.11.12_ 삼각형, 사각형 오브젝트 추가