This example shows how to detect sphere like objects from the Kinect using a series of OpenCV steps
- Open a Kinect 2 color and depth stream
- Map the color information onto the depth information
- Segment the color frame using EGS image segmentation algorithm and ofxImageSegmentation
- Run contour tracking to determine geometric properties of each segment
- Filter out small, oversides, and oddly shaped segments
- Sense depth positions of the valid segments to find their 3D positions in space
NOTE: this example is currently Windows only becaue of Kinect Common Bridge dependency.
- Download openFrameworks 0.8.4 for VS2012
- Clone this repository into apps/myApps
- Clone the following addons into addons/
- ofxKinectV2
- ofxUI
- ofxCv
- ofxImageSegmentation
- Opent the .sln file and build and go
This example was created by James George for Specular's project Curio Aquarium, which was financially supported and encouraged by the Kinect For Windows team.
ofxUI is by Reza Ali
ofxCv is by Kyle McDonald
ofxImageSegmentation by James George based on this example