Skip to content

Latest commit

 

History

History
30 lines (25 loc) · 1.18 KB

README.md

File metadata and controls

30 lines (25 loc) · 1.18 KB

OSG-OpenCV-ARDemo

Very basic project which might server as a template for augmented reality scenes using OpenSceneGraph for 3D Visualisation and OpenCV to grab webcam frames for the background.

screen

Note: The model was just placed nice "manually" by moving the camera, this project does not contain any real AR-functionality (e.g. markers or tracking).

Requirements

  • Cmake
  • OpenCV
  • OpenSceneGraph
  • to see the sample model, you need OpenSceneGraph-Data set to OSG_FILE_PATH (see this link)

Install

  • clone or download and extract project: git clone https://github.com/Saiheng/OSG-OpenCV-ARDemo/
  • switch to project directory: cd OSG-OpenCV-ARDemo/
  • create build folder: mkdir build cd build/
  • make project: cmake ..
  • compile: make
  • finally, to run the code use: ./osg_ar_demo (you need a webcam to see live background)

Remarks

The implementation might not be optimal in performance, defining an own osg::ImageStream might be better. If you have any enhancements, feel free to contribute.