Git Product home page Git Product logo

bard's Introduction

Basic Augmented Reality Demo (BARD)

This project was built for the MediCSS summer school 2015-2017

The aim was to demo some features of VTK, OpenCV and ArUco.

Features

  1. bardGrabber uses OpenCV video source to grab a single frame and save to file. For now, camera calibration should be done externally.
  2. bard performs the following:
  3. launches a single QVTKWidget
  4. creates an OpenCV VideoSource (e.g. from webcam).
  5. displays semi-transparent video in foreground vtkRenderer
  6. overlays vtkPolyData
  7. loads references models (3D coordinates and point ID) of ArUco boards.
  8. uses ArUco/OpenCV to track ArUco boards
  9. provides a modified VTK camera that uses the calibrated intrinsic parameters
  10. moves the VTK camera according to a registration transformation from 3D reference model coordinates to 2D coordinates of ArUco markers
  11. tracks a single pointer, made using a separate ArUco marker
  12. bardPivotCalibration does pivot calibration to create a pointer object. See Feuerstein 2008.
  13. bardProcrustes does point based registration (Procrustes analysis). See Arun 1987.
  14. bardCameraCalibration does intrinsic camera calibration, based on OpenCV. See OpenCV.

Build Instructions

  1. CMake version: 3.1+
  2. Qt version: Tested with 4.8.7 or 5.4.2. If you go much newer then Qt 5.4.2 you will probably have to build Qt to ensure it has QtWebkitWidgets
  3. Ensure qmake is on your PATH
  4. Install git bash from http://git-scm.com

Currently tested on:

  1. Mac OSX 10.10.5, Qt 4.8.7, CMake 3.1.2, clang 600.0.57
  2. Windows, Qt 5.4.0, Visual Studio 2013.

Notes:

  1. BUILD_SHARED_LIBS must be ON due to duplicate symbols in ArUco.
  2. Supervisor should explain the SuperBuild (a.k.a MetaBuild) and BARD-build folder structure.
  3. On Windows, StartVS_Debug.bat / StartVS_Release.bat in build folder should be used to launch Visual Studio.
  4. On Linux and Mac, once compiled, you will probably have to set LD_LIBRARY_PATH or DYLD_LIBRARY_PATH (Mac) to find libraries such as ArUco, VTK, OpenCV and Qt.
git clone https://github.com/MattClarkson/BARD.git
mkdir BARD-SuperBuild-Debug
cd BARD-SuperBuild-Debug
ccmake ../BARD
(set some options, most likely for Qt)
make

bard's People

Contributors

mattclarkson avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.