SlideShare a Scribd company logo
1 of 13
Download to read offline
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

Similar to Hacking the Kinect with GAFFTA Day 2

South Florida Hack and Tell Kinect presentation
South Florida Hack and Tell Kinect presentationSouth Florida Hack and Tell Kinect presentation
South Florida Hack and Tell Kinect presentation
Kabong
 
Vipul divyanshu documentation on Kinect and Motion Tracking
Vipul divyanshu documentation  on Kinect and Motion TrackingVipul divyanshu documentation  on Kinect and Motion Tracking
Vipul divyanshu documentation on Kinect and Motion Tracking
Vipul Divyanshu
 

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

Prototyping in code
Prototyping in codePrototyping in code
Prototyping in code
 
South Florida Hack and Tell Kinect presentation
South Florida Hack and Tell Kinect presentationSouth Florida Hack and Tell Kinect presentation
South Florida Hack and Tell Kinect presentation
 
Vipul divyanshu documentation on Kinect and Motion Tracking
Vipul divyanshu documentation  on Kinect and Motion TrackingVipul divyanshu documentation  on Kinect and Motion Tracking
Vipul divyanshu documentation on Kinect and Motion Tracking
 
Sketching in Code
Sketching in CodeSketching in Code
Sketching in Code
 
3D Computer Graphics with Python
3D Computer Graphics with Python3D Computer Graphics with Python
3D Computer Graphics with Python
 
The mag pi-issue-28-en
The mag pi-issue-28-enThe mag pi-issue-28-en
The mag pi-issue-28-en
 
Discovering The Unknown Aspects Of Nuke
Discovering The Unknown Aspects Of NukeDiscovering The Unknown Aspects Of Nuke
Discovering The Unknown Aspects Of Nuke
 
Kinect Tutorial
Kinect Tutorial Kinect Tutorial
Kinect Tutorial
 
Kinectomania
KinectomaniaKinectomania
Kinectomania
 
The not so short introduction to Kinect
The not so short introduction to KinectThe not so short introduction to Kinect
The not so short introduction to Kinect
 
Kinect Hacks for Dummies
Kinect Hacks for DummiesKinect Hacks for Dummies
Kinect Hacks for Dummies
 
Kinect
KinectKinect
Kinect
 
Kinect
KinectKinect
Kinect
 
Milkymist System-on-Chip at Open Source Hardware User Group 8
Milkymist System-on-Chip at Open Source Hardware User Group 8Milkymist System-on-Chip at Open Source Hardware User Group 8
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 v2Develop store apps with kinect for windows v2
Develop store apps with kinect for windows v2
 
Develop Store Apps with Kinect for Windows v2
Develop Store Apps with Kinect for Windows v2Develop Store Apps with Kinect for Windows v2
Develop Store Apps with Kinect for Windows v2
 
Kinect Lab Pt.
Kinect Lab Pt.Kinect Lab Pt.
Kinect Lab Pt.
 
Dataset creation for Deep Learning-based Geometric Computer Vision problems
Dataset creation for Deep Learning-based Geometric Computer Vision problemsDataset creation for Deep Learning-based Geometric Computer Vision problems
Dataset creation for Deep Learning-based Geometric Computer Vision problems
 
Motion detection system
Motion detection systemMotion detection system
Motion detection system
 
Becoming a kinect hacker innovator v2
Becoming a kinect hacker innovator v2Becoming a kinect hacker innovator v2
Becoming a kinect hacker innovator v2
 

Recently uploaded

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Recently uploaded (20)

Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 

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