Skip to content

Graphical User Interface: QT

Andrews Sobral edited this page Mar 19, 2017 · 10 revisions

BGSLibrary v2.0.0 with QT GUI

BGSLibrary QT GUI

Building QT GUI from scratch

  • Dependencies:

    • OpenCV 2.x or 3.x (Tested with OpenCV 3.2.0)
    • Qt 5 library (Tested with Qt 5.6.2)

On Windows (with CMAKE and Visual Studio 2015 x64)

  1. Click on 'Qt 5.6 64-bit for Desktop (MSVC 2015)'

  2. Go to bgslibrary/gui_qt/build folder.

  3. Set your OpenCV PATH:

set OpenCV_DIR=C:\OpenCV3.2.0\build
  1. Launch CMAKE:
cmake -DOpenCV_DIR=%OpenCV_DIR% -G "Visual Studio 14 Win64" ..
  1. Include OpenCV binaries in the system path:
set PATH=%PATH%;%OpenCV_DIR%\x64\vc14\bin
  1. Open the bgslibrary_gui.sln file in your Visual Studio and switch to 'RELEASE' mode

  2. Click on 'ALL_BUILD' project and build!

  3. Go to bgslibrary/gui_qt/build/Release and copy bgslibrary_gui.exe to bgslibrary/.

  4. Run bgslibrary_gui.exe and enjoy! ;-)

On Linux or Mac OS X

  • Installing dependencies on Mac OS X:
brew install opencv3 --with-ffmpeg --with-qt5 --HEAD
brew link --overwrite --dry-run opencv3
  • Step-by-step Instructions
git clone https://github.com/andrewssobral/bgslibrary.git

cd bgslibrary/gui_qt/build
cmake ..
make

cp bgslibrary_gui ../../ 

./bgslibrary_gui 

BGSLibrary QT GUI

Clone this wiki locally