无标记的增强现实AR,基于opencv3.4.5
To build this app use the CMake to generate project files for your IDE, then build the project in your IDE. NOTE: You will need to have OpenCV built with OpenGL support in order to run the demo (prebuilt versions of OpenCV don't support OpenGL).
- Linux: Execute "sudo apt-get install libgtkglext1 libgtkglext1-dev" first.
- MacOSX: Install QT4 and then configure OpenCV with QT and OpenGL.
- Windows: Enable WITH_OPENGL=YES flag when building OpenCV to enable OpenGL support.
Linux: export OpenCV_DIR="~/OpenCV/build" mkdir build cd build cmake -D OpenCV_DIR=$OpenCV_DIR .. make
MacOSX (Xcode): export OpenCV_DIR="~/OpenCV/build" mkdir build cd build cmake -G Xcode -D OpenCV_DIR=$OpenCV_DIR .. open EXAMPLE_MARKERLESS_AR.xcodeproj
Windows (MS Visual Studio): set OpenCV_DIR="C:\OpenCV\build" mkdir build cd build cmake -G "Visual Studio 9 2008" -D OpenCV_DIR=%OpenCV_DIR% .. start EXAMPLE_MARKERLESS_AR.sln
Just execute "EXAMPLE_MARKERLESS_AR".