SlideShare a Scribd company logo
Get Moving!
Reading Kinect data from Actionscript
Kinect



   ๏ By Microsoft. Previously Natal.

   ๏ Sold to be used with the XBox.

   ๏ "Controller-free gaming and
     entertainment experience"
You don’t have to buy a XBox to do any of the
stuff shown here. You can buy the camera on its
own for about NZ$200.
1   Sensors
Kinect Sensor(s)

  “The Kinect sensor is a horizontal bar connected to a small base with
  a motorized pivot and is designed to be positioned lengthwise above
  or below the video display. The device features an "RGB camera,
  depth sensor and multi-array microphone running proprietary
  software", which provide full-body 3D motion capture, facial
  recognition and voice recognition capabilities.

  The depth sensor consists of an infrared laser projector combined
  with a monochrome CMOS sensor, which captures video data in 3D
  under any ambient light conditions. The sensing range of the depth
  sensor is adjustable“


              Source: http://en.wikipedia.org/wiki/Kinect
Demo!
(CocoaKinect)
Sensors
                                                            Depth magic chip
                                                             (data stream)




                       Infrared Laser
                          Projector
                                                                      Image chip
                                        RGB Camera                  (video stream)

                                                Infrared Camera




     Multi-array mic

                                           Motorised tilt
Sensors, #1 RGB


                                Image chip


                                                          480

                             @ 30 frames/sec
 ๏ The RBG camera can be
   used for recording              640


   video and assist with   Horizontal field of view: 57º
                            Vertical field of view: 43º
                             Physical tilt range: 27º
   tasks such as facial
   recognition.
Sensors, #2 Depth
๏ Project a pattern of dots with a near
  infrared laser over the scene. A
  detector establishes the parallax shift    Depth magic chip

  of the dot pattern for each pixel.                               480

                                            12 bits (Data Array)
                                             @ 30 frames/sec


                                                  640
                                            Range: 1.2m -3.5 m
Depth. Uh?
 Depth computed by comparing distance between             Image 1
 (uniquely identifiable) dot in image 1 and image 2.
 The more distant, the more depth.
                                                            Magic Algorithm generates the pattern of dots
                                                            that will be sent by the Infrared projector.

                                                            In a sense a virtual image.




                                                          Image 2

                                                           Infrared camera




                                                          Depth magic chip




                           Stereo Image from: http://gigantico.squarespace.com/
                            336554365346/2007/6/21/virtual-reality-part-1.html
Sensors, #3 Infrared


                                          Image chip


                                                        480

                                      @ 30 frames/sec

   ๏ Images from the random
     dot pattern projected by               640


     the near-infrared laser.
   ๏ Switch off other infrared sources
     (hallogen, sun light) to see them.
Sensors, #4 Voice

                                      16 bits
                                     @ 16kHz




          Not covered in this talk
2   Open Kinect
OpenKinect
BW + RGB images

  ๏ By default, provides depth
    information as an RGB
    image. Each color represents
    a layer of depth.               Red = close, blue = far away


  ๏ Good for Flash. Flash is good
    with picture but doesn’t
    excel at looping through
    numbers.
Demo!
(Isometric Depth)
Demo
  ๏ Modified as3 server

   • video2rgba: rbg to rgba mapping
     (prefixing with 0xFF for alpha).
   • depth2heatmap : depth to rgba
     mapping.
   • depth2grayscale : depth to grayscale
     mapping, a scale from 0...2048 is
     reduced to one of 0...255.
   •
Resolution vs meters

  ๏ The depth data provided by kinect follow
    some logarithmic curve :
     • High resolution in the middle, low res
       close and far away from the camera
  ๏ A linear estimate, in centimeters, can be
    computed with:
       0.1236 * tan(rawDisparity / 2842.5 + 1.1863)
        http://openkinect.org/w/index.php?title=Imaging_Information
Info / Resources
3   Tuio Kinect
Hands tracking



  ๏ TuioKinect tracks simple hand gestures
    using the Kinect controller and sends
    control data based on the TUIO protocol.
    This allows the rapid creation of gesture
    enabled applications
Demo!
Using TUIO from AS




     https://github.com/silviopaganini/openKinect-as3-experiments


                         Documentation, Parameters

                                                                Note: getting 0 for
                                                                z or Z in current
                                                                implementation.



       http://nuigroup.com/?ACT=28&fid=33&aid=703_FKSuKMcUkTAJrwBGk2Qv
Demo!
(Musical Hands)
4   Advanced
Body-Pose
 ๏ What MS uses for his games is Machine
   Learning
   “The idea was that we would teach the computer with lots of
   different people of lots of different shapes and sizes in lots of
   different poses and the computer will learn how to
   distinguish one part of your body from another part,” he said.
   Since the Kinect camera includes depth information, it can
   distinguish between big people a long way away and small
   people up close.”
               http://blogs.wsj.com/tech-europe/2010/11/08/key-
                   kinect-technology-devised-in-cambridge-lab/



                         For publicly available methods:
                 http://openkinect.org/wiki/Research_Material
Skeleton


                 http://www.openni.org/downloadfiles/

            http://www.keyboardmods.com/2010/12/howto-
                    kinect-openninite-skeleton.html




           http://www.freenect.com/kinect-skeleton-detection-
                           work-in-progress

           http://www.modmykinect.com/2010/11/29/skeleton-
                          detection-part-2/
Frame differencing




           http://actionsnippet.com/?p=2820
Blob Detection
UX
That’s it, folks!

More Related Content

KEY
Visual odometry presentation_without_video
KEY
Visual odometry presentation_without_video
PDF
Kinect v1+Processing workshot fabcafe_taipei
PDF
Introduction to Kinect - Update v 1.8
PDF
3 track kinect@Bicocca - sdk e camere
PPT
Kinect krishna kumar-itkan
PPTX
Becoming a kinect hacker innovator v2
PPTX
Kinect sensor
Visual odometry presentation_without_video
Visual odometry presentation_without_video
Kinect v1+Processing workshot fabcafe_taipei
Introduction to Kinect - Update v 1.8
3 track kinect@Bicocca - sdk e camere
Kinect krishna kumar-itkan
Becoming a kinect hacker innovator v2
Kinect sensor

What's hot (20)

PPTX
Kinect2 hands on
PDF
Human interface guidelines_v1.8.0
PDF
Programming with kinect v2
PPTX
Develop Store Apps with Kinect for Windows v2
PDF
Kinect for Windows SDK - Programming Guide
PDF
2 track kinect@Bicocca - hardware e funzinamento
PDF
ODP
Virtual reality and its Types
PDF
Kinect Hacks for Dummies
PDF
How Augment your Reality: Different perspective on the Reality / Virtuality C...
PDF
Final_draft_Practice_School_II_report
PDF
Momentum
PPT
Enhanced Computer Vision with Microsoft Kinect Sensor: A Review
PDF
Introduction to Kinect v2
PPTX
Kinect connect
PDF
Kinect v2 Introduction and Tutorial
PPTX
Kinect for Xbox 360: the world's first viral 3D technology
PPTX
Odessa .NET User Group - Kinect v2
PPTX
Nui e biometrics in windows 10
Kinect2 hands on
Human interface guidelines_v1.8.0
Programming with kinect v2
Develop Store Apps with Kinect for Windows v2
Kinect for Windows SDK - Programming Guide
2 track kinect@Bicocca - hardware e funzinamento
Virtual reality and its Types
Kinect Hacks for Dummies
How Augment your Reality: Different perspective on the Reality / Virtuality C...
Final_draft_Practice_School_II_report
Momentum
Enhanced Computer Vision with Microsoft Kinect Sensor: A Review
Introduction to Kinect v2
Kinect connect
Kinect v2 Introduction and Tutorial
Kinect for Xbox 360: the world's first viral 3D technology
Odessa .NET User Group - Kinect v2
Nui e biometrics in windows 10
Ad

Similar to Getmoving as3kinect (20)

PPTX
Visug: Say Hello to my little friend: a session on Kinect
PPT
Kinect krishna kumar-itkan
PDF
Indoor 3 d video monitoring using multiple kinect depth cameras
PDF
Indoor 3D Video Monitoring Using Multiple Kinect Depth-Cameras
PDF
Develop store apps with kinect for windows v2
PDF
DISTRIBUTED SYSTEM FOR 3D REMOTE MONITORING USING KINECT DEPTH CAMERAS
PPTX
Lidnug Presentation - Kinect - The How, Were and When of developing with it
PPTX
Writing applications using the Microsoft Kinect Sensor
PPT
Using the Kinect for Fun and Profit by Tam Hanna
PDF
426 Lecture 9: Research Directions in AR
PDF
Lecture1
PDF
Zegna
PPT
First kinectslides
PPT
cs247 slides
PDF
Phase-Modulation Based 3D technology
PDF
AG-3DA1
PDF
Panasonic AG-3DA1
PDF
iMinds The Conference 2012: Adrian Munteanu
PPT
Raskar Graphics Interface May05 Web
PPT
Raskar Graphics Interface May05
Visug: Say Hello to my little friend: a session on Kinect
Kinect krishna kumar-itkan
Indoor 3 d video monitoring using multiple kinect depth cameras
Indoor 3D Video Monitoring Using Multiple Kinect Depth-Cameras
Develop store apps with kinect for windows v2
DISTRIBUTED SYSTEM FOR 3D REMOTE MONITORING USING KINECT DEPTH CAMERAS
Lidnug Presentation - Kinect - The How, Were and When of developing with it
Writing applications using the Microsoft Kinect Sensor
Using the Kinect for Fun and Profit by Tam Hanna
426 Lecture 9: Research Directions in AR
Lecture1
Zegna
First kinectslides
cs247 slides
Phase-Modulation Based 3D technology
AG-3DA1
Panasonic AG-3DA1
iMinds The Conference 2012: Adrian Munteanu
Raskar Graphics Interface May05 Web
Raskar Graphics Interface May05
Ad

Recently uploaded (20)

PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Network Security Unit 5.pdf for BCA BBA.
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
Big Data Technologies - Introduction.pptx
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Approach and Philosophy of On baking technology
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Encapsulation theory and applications.pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
Dropbox Q2 2025 Financial Results & Investor Presentation
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Programs and apps: productivity, graphics, security and other tools
Network Security Unit 5.pdf for BCA BBA.
“AI and Expert System Decision Support & Business Intelligence Systems”
Digital-Transformation-Roadmap-for-Companies.pptx
Big Data Technologies - Introduction.pptx
MYSQL Presentation for SQL database connectivity
Approach and Philosophy of On baking technology
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
NewMind AI Weekly Chronicles - August'25 Week I
The Rise and Fall of 3GPP – Time for a Sabbatical?
Understanding_Digital_Forensics_Presentation.pptx
Encapsulation theory and applications.pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm
MIND Revenue Release Quarter 2 2025 Press Release
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Unlocking AI with Model Context Protocol (MCP)
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Reach Out and Touch Someone: Haptics and Empathic Computing

Getmoving as3kinect

  • 1. Get Moving! Reading Kinect data from Actionscript
  • 2. Kinect ๏ By Microsoft. Previously Natal. ๏ Sold to be used with the XBox. ๏ "Controller-free gaming and entertainment experience"
  • 3. You don’t have to buy a XBox to do any of the stuff shown here. You can buy the camera on its own for about NZ$200.
  • 4. 1 Sensors
  • 5. Kinect Sensor(s) “The Kinect sensor is a horizontal bar connected to a small base with a motorized pivot and is designed to be positioned lengthwise above or below the video display. The device features an "RGB camera, depth sensor and multi-array microphone running proprietary software", which provide full-body 3D motion capture, facial recognition and voice recognition capabilities. The depth sensor consists of an infrared laser projector combined with a monochrome CMOS sensor, which captures video data in 3D under any ambient light conditions. The sensing range of the depth sensor is adjustable“ Source: http://en.wikipedia.org/wiki/Kinect
  • 7. Sensors Depth magic chip (data stream) Infrared Laser Projector Image chip RGB Camera (video stream) Infrared Camera Multi-array mic Motorised tilt
  • 8. Sensors, #1 RGB Image chip 480 @ 30 frames/sec ๏ The RBG camera can be used for recording 640 video and assist with Horizontal field of view: 57º Vertical field of view: 43º Physical tilt range: 27º tasks such as facial recognition.
  • 9. Sensors, #2 Depth ๏ Project a pattern of dots with a near infrared laser over the scene. A detector establishes the parallax shift Depth magic chip of the dot pattern for each pixel. 480 12 bits (Data Array) @ 30 frames/sec 640 Range: 1.2m -3.5 m
  • 10. Depth. Uh? Depth computed by comparing distance between Image 1 (uniquely identifiable) dot in image 1 and image 2. The more distant, the more depth. Magic Algorithm generates the pattern of dots that will be sent by the Infrared projector. In a sense a virtual image. Image 2 Infrared camera Depth magic chip Stereo Image from: http://gigantico.squarespace.com/ 336554365346/2007/6/21/virtual-reality-part-1.html
  • 11. Sensors, #3 Infrared Image chip 480 @ 30 frames/sec ๏ Images from the random dot pattern projected by 640 the near-infrared laser. ๏ Switch off other infrared sources (hallogen, sun light) to see them.
  • 12. Sensors, #4 Voice 16 bits @ 16kHz Not covered in this talk
  • 13. 2 Open Kinect
  • 15. BW + RGB images ๏ By default, provides depth information as an RGB image. Each color represents a layer of depth. Red = close, blue = far away ๏ Good for Flash. Flash is good with picture but doesn’t excel at looping through numbers.
  • 17. Demo ๏ Modified as3 server • video2rgba: rbg to rgba mapping (prefixing with 0xFF for alpha). • depth2heatmap : depth to rgba mapping. • depth2grayscale : depth to grayscale mapping, a scale from 0...2048 is reduced to one of 0...255. •
  • 18. Resolution vs meters ๏ The depth data provided by kinect follow some logarithmic curve : • High resolution in the middle, low res close and far away from the camera ๏ A linear estimate, in centimeters, can be computed with: 0.1236 * tan(rawDisparity / 2842.5 + 1.1863) http://openkinect.org/w/index.php?title=Imaging_Information
  • 20. 3 Tuio Kinect
  • 21. Hands tracking ๏ TuioKinect tracks simple hand gestures using the Kinect controller and sends control data based on the TUIO protocol. This allows the rapid creation of gesture enabled applications
  • 22. Demo!
  • 23. Using TUIO from AS https://github.com/silviopaganini/openKinect-as3-experiments Documentation, Parameters Note: getting 0 for z or Z in current implementation. http://nuigroup.com/?ACT=28&fid=33&aid=703_FKSuKMcUkTAJrwBGk2Qv
  • 25. 4 Advanced
  • 26. Body-Pose ๏ What MS uses for his games is Machine Learning “The idea was that we would teach the computer with lots of different people of lots of different shapes and sizes in lots of different poses and the computer will learn how to distinguish one part of your body from another part,” he said. Since the Kinect camera includes depth information, it can distinguish between big people a long way away and small people up close.” http://blogs.wsj.com/tech-europe/2010/11/08/key- kinect-technology-devised-in-cambridge-lab/ For publicly available methods: http://openkinect.org/wiki/Research_Material
  • 27. Skeleton http://www.openni.org/downloadfiles/ http://www.keyboardmods.com/2010/12/howto- kinect-openninite-skeleton.html http://www.freenect.com/kinect-skeleton-detection- work-in-progress http://www.modmykinect.com/2010/11/29/skeleton- detection-part-2/
  • 28. Frame differencing http://actionsnippet.com/?p=2820
  • 30. UX

Editor's Notes