Skip to content
Openframeworks 084 addon for calibrating kinect V2 with projector (windows only)
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Openframeworks 084 addon for calibrating a kinect V2 and a projector, currently work in progress info: WINDOWS ONLY!

Calibration procedure

See this excellent video; the addon really implents Elliots video literally.

Used addons

Example videos (with kinectV1 but concept & gui is exactly the same)

How to use the calibrated output

See example. The important stuff:

//[setup] load calibration file (once)

//[draw] get contour of the person in the kinect label/person image
vector<ofPoint> points;
for (int j = 0; j < contourFinder.blobs[i].nPts ; j++) {
//Project points from depth XY coordinates to projector XY coordinates.
//internally, depth XY location is transformed to world (x,y,z) then to projector XY.
vector<ofPoint> projected = kinectProjectorOutput.projectFromDepthXYVector(points);

Chessboard finding parameters

  • CV_CALIB_CB_ADAPTIVE_THRESH Use adaptive thresholding to convert the image to black and white, rather than a fixed threshold level (computed from the average image brightness).
  • CV_CALIB_CB_NORMALIZE_IMAGE Normalize the image gamma with equalizeHist() before applying fixed or adaptive thresholding.
  • CALIB_CB_FAST_CHECK Run a fast check on the image that looks for chessboard corners, and shortcut the call if none is found. This can drastically speed up the call in the degenerate condition when no chessboard is observed.

Calibration parameters

  • CV_CALIB_FIX_PRINCIPAL_POINT The principal point is not changed during the global optimization.
  • CV_CALIB_FIX_ASPECT_RATIO The functions considers only fy as a free parameter. The ratio fx/fy stays the same as in the input cameraMatrix . When CV_CALIB_USE_INTRINSIC_GUESS is not set, the actual input values of fx and fy are ignored, only their ratio is computed and used further.
  • CV_CALIB_ZERO_TANGENT_DIST Tangential distortion coefficients are set to zeros and stay zero.
You can’t perform that action at this time.