SlideShare une entreprise Scribd logo
1  sur  13
Télécharger pour lire hors ligne
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

Contenu connexe

Similaire à OpenFrameworks Kinect Part II Guide: Getting Started with libfreenect, OpenCV, & Coding

Prototyping in code
Prototyping in codePrototyping in code
Prototyping in codeMarcin Ignac
 
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 presentationKabong
 
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 TrackingVipul Divyanshu
 
3D Computer Graphics with Python
3D Computer Graphics with Python3D Computer Graphics with Python
3D Computer Graphics with PythonMartin Christen
 
The mag pi-issue-28-en
The mag pi-issue-28-enThe mag pi-issue-28-en
The mag pi-issue-28-enNguyen Nam
 
Discovering The Unknown Aspects Of Nuke
Discovering The Unknown Aspects Of NukeDiscovering The Unknown Aspects Of Nuke
Discovering The Unknown Aspects Of NukeAnimation Kolkata
 
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 KinectAXM
 
Kinect Hacks for Dummies
Kinect Hacks for DummiesKinect Hacks for Dummies
Kinect Hacks for DummiesTomoto Washio
 
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 8Yann Sionneau
 
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 v2Matteo Valoriani
 
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 v2Clemente Giorio
 
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 problemsPetteriTeikariPhD
 
Motion detection system
Motion detection systemMotion detection system
Motion detection systemWritingHubUK
 
Becoming a kinect hacker innovator v2
Becoming a kinect hacker innovator v2Becoming a kinect hacker innovator v2
Becoming a kinect hacker innovator v2Jeff Sipko
 

Similaire à OpenFrameworks Kinect Part II Guide: Getting Started with libfreenect, OpenCV, & Coding (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
 

Dernier

"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 

Dernier (20)

"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 

OpenFrameworks Kinect Part II Guide: Getting Started with libfreenect, OpenCV, & Coding

  • 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