OpenNI Cookbook


OpenNI Cookbook
eBook: $26.99
Formats: PDF, PacktLib, ePub and Mobi formats
$22.94
save 15%!
Print + free eBook + free PacktLib access to the book: $71.98    Print cover: $44.99
$44.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Reviews
Support
Sample Chapters
  • Use OpenNI for all your needs from games and application UI to low-level data processing or motion detection
  • Learn more about the Natural Interaction features of OpenNI
  • The book is useful for both beginners and professionals because it covers the most basic to advanced concepts in the OpenNi technology.
  • Full of illustrations, examples, and tips for understanding different aspects of topics, with clear step-by-step instructions to get different parts of OpenNI working for you

Book Details

Language : English
Paperback : 324 pages [ 235mm x 191mm ]
Release Date : July 2013
ISBN : 1849518467
ISBN 13 : 9781849518468
Author(s) : Soroush Falahati
Topics and Technologies : All Books, Application Development, Data, Cookbooks, Open Source

Table of Contents

Preface
Chapter 1: Getting Started
Chapter 2: OpenNI and C++
Chapter 3: Using Low-level Data
Chapter 4: More about Low-level Outputs
Chapter 5: NiTE and User Tracking
Chapter 6: NiTE and Hand Tracking
Chapter 7: NiTE and Skeleton Tracking
Index
  • Chapter 1: Getting Started
    • Introduction
    • Downloading and installing OpenNI
    • Downloading and installing NiTE
    • Downloading and installing the Microsoft Kinect SDK
    • Connecting Asus Xtion and PrimeSense sensors
    • Connecting Microsoft Kinect
    • Chapter 2: OpenNI and C++
      • Introduction
      • Creating a project in Visual Studio 2010
      • OpenNI class and error handling
      • Enumerating a list of connected devices
      • Accessing video streams (depth/IR/RGB) and configuring them
      • Retrieving a list of supported video modes for depth stream
      • Selecting a specific device for accessing depth stream
      • Listening to the device connect and disconnect events
      • Opening an already recorded file (ONI file) instead of a device
      • Chapter 3: Using Low-level Data
        • Introduction
        • Configuring Visual Studio 2010 to use OpenGL
        • Initializing and preparing OpenGL
        • Reading and showing a frame from the image sensor (color/IR)
        • Reading and showing a frame from the depth sensor
        • Controlling the player when opening a device from file
        • Recording streams to file (ONI file)
        • Event-based reading of data
        • Chapter 4: More about Low-level Outputs
          • Introduction
          • Cropping and mirroring frames right from the buffer
          • Syncing image and depth sensors to
          • read new frames from both streams at the same time
          • Overlaying the depth frame over the image frame
          • Converting the depth unit to millimetre
          • Retrieving the color of the nearest point without depth over color registration
          • Enabling/disabling auto exposure and auto white balance
          • Chapter 5: NiTE and User Tracking
            • Introduction
            • Getting a list of all the active users
            • Identifying and coloring users' pixels in depth map
            • Reading users' bounding boxes and center of mass
            • Event-based reading of users' data
            • Chapter 6: NiTE and Hand Tracking
              • Introduction
              • Recognizing predefined hand gestures
              • Tracking hands
              • Finding the related user ID for each hand ID
              • Event-based reading of hands' data
              • Working sample for controlling the mouse by hand
              • Chapter 7: NiTE and Skeleton Tracking
                • Introduction
                • Detecting a user's pose
                • Getting a user's skeleton joints and displaying their position in the depth map
                • Designing a simple pong game using skeleton tracking

                Soroush Falahati

                Soroush Falahati is a Microsoft MCPD certificated C# developer of Web and Windows applications, now preparing for a new MCSD certification from Microsoft. He started programming at the age of 13 with VB5 and then continued to VB.Net, C#, C++, C for microcontrollers, as well as scripting languages such as PHP and JavaScript. He is currently the owner of an e-commerce company that uses web applications and smart phone apps as primary advantages over other competitors. As a hobby, Soroush supports robotic teams by voluntarily training them on how to program microcontrollers.

                Code Downloads

                Download the code and support files for this book.


                Submit Errata

                Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.

                Sample chapters

                You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

                Frequently bought together

                OpenNI Cookbook +    Building Interactive Graphs with ggplot2 and Shiny [Video] =
                50% Off
                the second eBook
                Price for both: ₨831.00

                Buy both these recommended eBooks together and get 50% off the cheapest eBook.

                What you will learn from this book

                • Retrieve and use depth, vision, and audio from compatible devices
                • Get basic information about the environment
                • Recognize hands, humans, and their skeleton and track their moves
                • Customize frames right from the device itself
                • Identify basic gestures like pushing or swapping
                • Select between devices or use more than one device to read data
                • Recognize pre-defined hand gestures and detect user poses

                In Detail

                The release of Microsoft Kinect, then PrimeSense Sensor, and Asus Xtion opened new doors for developers to interact with users, re-design their application’s UI, and make them environment (context) aware. For this purpose, developers need a good framework which provides a complete application programming interface (API), and OpenNI is the first choice in this field. This book introduces the new version of OpenNI.

                "OpenNI Cookbook" will show you how to start developing a Natural Interaction UI for your applications or games with high level APIs and at the same time access RAW data from different sensors of different hardware supported by OpenNI using low level APIs. It also deals with expanding OpenNI by writing new modules and expanding applications using different OpenNI compatible middleware, including NITE.

                "OpenNI Cookbook" favors practical examples over plain theory, giving you a more hands-on experience to help you learn. OpenNI Cookbook starts with information about installing devices and retrieving RAW data from them, and then shows how to use this data in applications. You will learn how to access a device or how to read data from it and show them using OpenGL, or use middleware (especially NITE) to track and recognize users, hands, and guess the skeleton of a person in front of a device, all through examples.You also learn about more advanced aspects such as how to write a simple module or middleware for OpenNI itself.

                "OpenNI Cookbook" shows you how to start and experiment with both NIUI designs and OpenNI itself using examples.

                Approach

                This is a Cookbook with plenty of practical recipes enriched with explained code and plenty of screenshots to ease your learning curve.

                Who this book is for

                If you are a beginner or a professional in NIUI and want to write serious applications or games, then this book is for you. Even OpenNI 1 and OpenNI 1.x programmers who want to move to new versions of OpenNI can use this book as a starting point.

                This book uses C++ as the primary language but there are some examples in C# and Java too, so you need to have about a basic working knowledge of C or C++ for most cases.

                Code Download and Errata
                Packt Anytime, Anywhere
                Register Books
                Print Upgrades
                eBook Downloads
                Video Support
                Contact Us
                Awards Voting Nominations Previous Winners
                Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
                Resources
                Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software