SlideShare a Scribd company logo
OPEN FRAMEWORKS +
                           KINECT PART II

                              @GAFFTA




Thursday, March 7, 13
The Kinect for XBOX - released in
                                November 2010
Thursday, March 7, 13
why it matters
                        http://memo.tv/archive/kinect_why_it_matters


    Affordable Depth Sensor

    Calibrated Depth + RGB Sensor

    Nothing new technically, just making it accessible to a MUCH
    larger audience.


Thursday, March 7, 13
Microphone Array has advanced voice capabilities

    Motorized tilt helps it to adjust to multiple environments

    RGB camera for other data ( Facial Tracking, Color tracking )

Thursday, March 7, 13
what does the kinect see ?
                        http://www.youtube.com/watch?v=dTKlNGSH9Po


    Laser Projector casts a grid of infrared dots

    Infrared lens interprets the size of the dots as distance and turns
    it into a “depth map”

    This depth map makes it easy to separate parts of a scene

    Computer learning is based off of these depth maps and large
    data sets




Thursday, March 7, 13
Hack The Kinect Method #1
                         libfreenect is the driver / library

                             ofxKinect is the OF addon
                        https://github.com/ofTheo/ofxKinect

    Simplest wrapper for kinect. ( also the first )

    Good at getting raw image + point cloud data + motor control

    Extremely useful if combined with openCV

    cross platform - PC / Mac / Linux



Thursday, March 7, 13
What is OpenCV ?

    Open Source Computer Vision Library

    A library that allows for real-time image manipulation and feature
    extraction. Including :

    Gesture recognition
    Facial recognition
    2D + 3D features
    Motion Tracking
    Stereopsis

    Originally developed by Intel Labs in 1999 for CPU intensive
    programs.

    Released to the public in 2006. Now developed by Willow Garage

Thursday, March 7, 13
OpenCV with a webcam




Thursday, March 7, 13
OpenCV with a webcam


    First there is a color image from a camera.

    That color image is converted to grayscale so that it can be
    processed it faster. ( less channels = less data )

    The background has a grayscale “snapshot” taken

    A difference is applied to new frames after the background
    snapshot

    OpenCV ContourFinder returns: a shape with many points, a
    bounding box, and centroid


Thursday, March 7, 13
OpenCV with a kinect




Thursday, March 7, 13
OpenCV with a kinect


    There is already a grayscale depth feed, that can be
    used to isolate a range using OpenCV Threshold

    Running OpenCV contour finder on this thresholded
    gray image gets us OpenCV blobs.

    In addition to blob tracking we also get the 3d position
    of each point in space. Also known as a “point cloud”




Thursday, March 7, 13
LET’S START CODING
                https://github.com/benMcChesney/OF_Kinect_Tutorials




Thursday, March 7, 13
ofxKinect + ofxUI

Thursday, March 7, 13

More Related Content

PDF
Hacking the Kinect with GAFFTA Day 4
PDF
Hacking the Kinect with GAFFTA Day 3
PDF
Hacking the Kinect with GAFFTA Day 1
PDF
Realtime 3D Visualization without GPU
PDF
GPU - how can we use it?
PPTX
ANISH_and_DR.DANIEL_augmented_reality_presentation
PDF
Machine Intelligence at Google Scale: TensorFlow
PPTX
Dijkastra’s algorithm
Hacking the Kinect with GAFFTA Day 4
Hacking the Kinect with GAFFTA Day 3
Hacking the Kinect with GAFFTA Day 1
Realtime 3D Visualization without GPU
GPU - how can we use it?
ANISH_and_DR.DANIEL_augmented_reality_presentation
Machine Intelligence at Google Scale: TensorFlow
Dijkastra’s algorithm

Similar to Hacking the Kinect with GAFFTA Day 2 (20)

PDF
Prototyping in code
PPT
South Florida Hack and Tell Kinect presentation
DOCX
Vipul divyanshu documentation on Kinect and Motion Tracking
PDF
Sketching in Code
PDF
3D Computer Graphics with Python
PDF
The mag pi-issue-28-en
PDF
Discovering The Unknown Aspects Of Nuke
PDF
Kinectomania
PPT
The not so short introduction to Kinect
 
PDF
Kinect Hacks for Dummies
PPTX
PPTX
PDF
Milkymist System-on-Chip at Open Source Hardware User Group 8
PDF
Develop store apps with kinect for windows v2
PPTX
Develop Store Apps with Kinect for Windows v2
PPTX
Kinect Lab Pt.
PDF
Dataset creation for Deep Learning-based Geometric Computer Vision problems
DOCX
Motion detection system
PPTX
Becoming a kinect hacker innovator v2
Prototyping in code
South Florida Hack and Tell Kinect presentation
Vipul divyanshu documentation on Kinect and Motion Tracking
Sketching in Code
3D Computer Graphics with Python
The mag pi-issue-28-en
Discovering The Unknown Aspects Of Nuke
Kinectomania
The not so short introduction to Kinect
 
Kinect Hacks for Dummies
Milkymist System-on-Chip at Open Source Hardware User Group 8
Develop store apps with kinect for windows v2
Develop Store Apps with Kinect for Windows v2
Kinect Lab Pt.
Dataset creation for Deep Learning-based Geometric Computer Vision problems
Motion detection system
Becoming a kinect hacker innovator v2

Recently uploaded (20)

PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Encapsulation theory and applications.pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
sap open course for s4hana steps from ECC to s4
PDF
cuic standard and advanced reporting.pdf
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPT
Teaching material agriculture food technology
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
Approach and Philosophy of On baking technology
20250228 LYD VKU AI Blended-Learning.pptx
Encapsulation theory and applications.pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm
sap open course for s4hana steps from ECC to s4
cuic standard and advanced reporting.pdf
Mobile App Security Testing_ A Comprehensive Guide.pdf
The AUB Centre for AI in Media Proposal.docx
Network Security Unit 5.pdf for BCA BBA.
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Digital-Transformation-Roadmap-for-Companies.pptx
The Rise and Fall of 3GPP – Time for a Sabbatical?
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Teaching material agriculture food technology
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Chapter 3 Spatial Domain Image Processing.pdf
Building Integrated photovoltaic BIPV_UPV.pdf
NewMind AI Weekly Chronicles - August'25-Week II
Approach and Philosophy of On baking technology

Hacking the Kinect with GAFFTA Day 2

  • 1. OPEN FRAMEWORKS + KINECT PART II @GAFFTA Thursday, March 7, 13
  • 2. The Kinect for XBOX - released in November 2010 Thursday, March 7, 13
  • 3. why it matters http://memo.tv/archive/kinect_why_it_matters Affordable Depth Sensor Calibrated Depth + RGB Sensor Nothing new technically, just making it accessible to a MUCH larger audience. Thursday, March 7, 13
  • 4. Microphone Array has advanced voice capabilities Motorized tilt helps it to adjust to multiple environments RGB camera for other data ( Facial Tracking, Color tracking ) Thursday, March 7, 13
  • 5. what does the kinect see ? http://www.youtube.com/watch?v=dTKlNGSH9Po Laser Projector casts a grid of infrared dots Infrared lens interprets the size of the dots as distance and turns it into a “depth map” This depth map makes it easy to separate parts of a scene Computer learning is based off of these depth maps and large data sets Thursday, March 7, 13
  • 6. Hack The Kinect Method #1 libfreenect is the driver / library ofxKinect is the OF addon https://github.com/ofTheo/ofxKinect Simplest wrapper for kinect. ( also the first ) Good at getting raw image + point cloud data + motor control Extremely useful if combined with openCV cross platform - PC / Mac / Linux Thursday, March 7, 13
  • 7. What is OpenCV ? Open Source Computer Vision Library A library that allows for real-time image manipulation and feature extraction. Including : Gesture recognition Facial recognition 2D + 3D features Motion Tracking Stereopsis Originally developed by Intel Labs in 1999 for CPU intensive programs. Released to the public in 2006. Now developed by Willow Garage Thursday, March 7, 13
  • 8. OpenCV with a webcam Thursday, March 7, 13
  • 9. OpenCV with a webcam First there is a color image from a camera. That color image is converted to grayscale so that it can be processed it faster. ( less channels = less data ) The background has a grayscale “snapshot” taken A difference is applied to new frames after the background snapshot OpenCV ContourFinder returns: a shape with many points, a bounding box, and centroid Thursday, March 7, 13
  • 10. OpenCV with a kinect Thursday, March 7, 13
  • 11. OpenCV with a kinect There is already a grayscale depth feed, that can be used to isolate a range using OpenCV Threshold Running OpenCV contour finder on this thresholded gray image gets us OpenCV blobs. In addition to blob tracking we also get the 3d position of each point in space. Also known as a “point cloud” Thursday, March 7, 13
  • 12. LET’S START CODING https://github.com/benMcChesney/OF_Kinect_Tutorials Thursday, March 7, 13