View Single Post
  #8   Spotlight this post!  
Unread 21-01-2014, 11:51
MoosingIn3space MoosingIn3space is offline
Programming Division Captain
FRC #3334 (Eagle Robotics)
 
Join Date: Jul 2013
Rookie Year: 2012
Location: Salt Lake City, UT
Posts: 13
MoosingIn3space is an unknown quantity at this point
Re: Getting the Kinect to work with OpenCV and libfreenect/My experience with the Kin

I have attached my sample code for my school's KinectDevice class, written in C++, which provides a simple interface to the Kinect. You simply write
Code:
// assuming 'capture' is a KinectDevice
cv::Mat frame;
capture >> frame;
in order to read a frame from the Kinect. Hope it helps.
Attached Files
File Type: hpp freenecthelper.hpp (891 Bytes, 40 views)
File Type: cpp freenecthelper.cpp (920 Bytes, 52 views)