/MakerlessAR

无标记的增强现实AR,基于opencv3.4.5

Primary LanguageC++

MakerlessAR

无标记的增强现实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).


How to enable OpenGL Support in OpenCV

  • 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.

Building the project using CMake from the command-line:

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


Running the project:

Just execute "EXAMPLE_MARKERLESS_AR".