Skip to Main Content
Making Things See
book

Making Things See

by Greg Borenstein
January 2012
Beginner to intermediate content levelBeginner to intermediate
440 pages
17h 11m
English
Make: Community
Content preview from Making Things See

Chapter 4

Save Calibration

Example A-3 presents a sketch that saves the calibration data into a file called calibration.skel in your sketch’s data folder. After you have calibrated, hit any key to save the file.

Example A-3. save_calibration.pde

import SimpleOpenNI.*; SimpleOpenNI kinect; int trackedUserID = 0; void setup() { size(640, 480); kinect = new SimpleOpenNI(this); // enable depthMap generation kinect.enableDepth(); // enable skeleton generation for all joints kinect.enableUser(SimpleOpenNI.SKEL_PROFILE_ALL); } void draw() { kinect.update(); image(kinect.depthImage(), 0, 0); IntVector userList = new IntVector(); kinect.getUsers(userList); if (userList.size() > 0) { int userId = userList.get(0); if (kinect.isTrackingSkeleton(userId)) { trackedUserID ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Reinventing the Organization for GenAI and LLMs

Reinventing the Organization for GenAI and LLMs

Ethan Mollick
Make: Volume 79

Make: Volume 79

Mike Senese
Making Things Smart

Making Things Smart

Gordon F. Williams

Publisher Resources

ISBN: 9781449321918Errata