Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Kinect in Motion - Audio and Visual Tracking by Example
Kinect in Motion - Audio and Visual Tracking by Example

Kinect in Motion - Audio and Visual Tracking by Example: Start building for the Kinect today by capturing gestures, movements, and spoken voice commands

eBook
€17.98 €19.99
Paperback
€24.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with Print?

Product feature icon Instant access to your digital copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Redeem a companion digital copy on all Print orders
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Table of content icon View table of contents Preview book icon Preview Book

Kinect in Motion - Audio and Visual Tracking by Example

Chapter 2. Starting with Image Streams

The aim of this chapter is to understand the steps for capturing data from the color stream, depth stream, and IR stream data. The key learning tools and steps for mastering all these streams are:

  • color camera: data stream, event driven and polling techniques to manage color frames, image editing, color image tuning, and color image formats

  • depth image: data stream, depth image ranges, and mapping between color image and depth image

All the examples we will develop in this book are built on Visual Studio 2010 or 2012. In this introduction, we want to include the key steps for getting started.

From Visual Studio, select File | New | Project. In the New Project window, do the following:

  1. Select the WPF Application Visual C# template.

  2. Select the .Net Framework 4.0 as the framework for the project (it works in .Net Framework 4.5 too).

  3. Assign a name to the project (in our example, we selected Chapter02)

  4. Choose a location for the project.

  5. Leave all the other settings...

Color stream


Let's start by focusing on the color stream data. We are going to develop an example of how to apply data manipulation to the captured color stream.

The complete code is included in the CODE_02/ColorStream example delivered together with this book.

In the MainWindows.xaml file defined in the Visual Studio project, let's design our User Interface (UI) elements. We will use those elements to display the data obtained from the color stream.

Within the <Grid> </Grid> tags we can add the following XAML code:

<Grid.RowDefinitions>
    <RowDefinition Height="Auto" />
    <!—- define additional RowDefinition entries as needed -->
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
    <ColumnDefinition Width="Auto" />
    <!—- define additional ColumnDefinition entries as needed -->
</Grid.ColumnDefinitions>
<Image Name="imgMain" Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2" />
<TextBlock Name="tbStatus" Grid.Row="3" Grid...

Depth stream


The process, and the relating code for getting our depth stream data displayed, is very similar to the one we detailed for the color stream data.

In this section, we will list and document the essential steps for working with the depth stream data. The example attached to this chapter will provide all the additional details.

In order to process the depth stream data obtained by the connected KinectSensor, sensor we need to enable the KinectSensor.DepthStream using the KinectSensor.DepthStream.Enable(ColorImageFormat colorImageFormat) API.

The KinectSensor.DepthFrameReady is the event that the sensor fires when a new frame from the depth stream data is ready. The Kinect sensor streams data out continuously, one frame at a time, till the sensor is stopped or the depth stream is disabled. To stop the sensor, you can use the KinectSensor.Stop() method, and to disable the depth stream, use the KinectSensor.DepthStream.Disable() method.

We can register to the KinectSensor.DepthFrameReady...

Summary


In this chapter we learned how to start building a Kinect project using Visual Studio, and we focused on how to handle color streams and depth streams.

We managed the KinectSensors_StatusChanged event handler to retrieve the potential active Kinect sensor and we learned how to start the sensor using the KinectSensors.Start() method.

Thanks to the KinectSensors.ColorStream.Enable(ColorImageFormat) and the event handler attached to the KinectSensors.ColorFrameReady, we started to manipulate the color stream data provided by the Kinect sensor. We then had some fun applying custom effects to the color stream data.

We went through scenarios where retrieving color frames using the KinectSensors.ColorFrameReady could cause issues, and we introduced the polling technique using the ColorImageFrame OpenNextFrame (int millisecondsWait) API instead.

We introduced the SDK V 1.6 new API ColorStream.CameraSettings for tuning the images provided by the Kinect sensor.

Using the ColorImageFrame.Format...

Left arrow icon Right arrow icon

Key benefits

  • Step-by-step examples on how to master the essential features of Kinect technology
  • Fully-functioning code samples ready to expand and adjust to your need
  • Compact and handy reference on how to adopt a multimodal user interface in your application

Description

Kinect is a motion-sensing input device by Microsoft for the Xbox 360 video game console and Windows PCs. It provides capabilities to enhance human-machine interaction along with a zero-to-hero journey to engage the user in a multimodal interface dialog with your software solution. Kinect in Motion - Audio and Visual Tracking by Example guides you in developing more than five models you can use to capture gestures, movements, and voice spoken commands. The examples and the theory discussed provide you with the knowledge to let the user become a part of your application. Kinect in Motion - Audio and Visual Tracking by Example is a compact reference on how to master color, depth, skeleton, and audio data streams handled by Kinect for Windows.Starting with an introduction to Kinect and its characteristics, you will first be shown how to master the color data stream with no more than one page of lines of code. Learn how to manage the depth information and map them against the color ones. You will then learn how to define and manage gestures that enable the user to instruct the application simply by moving arms or any other type of natural action. Finally you will complete your journey through a multimodal interface, combining gestures with audio.The book will lead you through many detailed, real-world examples, and even guide you on how to test your application.

Who is this book for?

Kinect in Motion - Audio and Visual Tracking by Example is great for developers new to the Kinect for Windows SDK, and who are looking to get a good grounding in how to master video and audio tracking. It's assumed that you have some experience in C# and XAML already.

What you will learn

  • Tune the captured color data stream to adjust the output to the environmental condition
  • Detect simple actions, such as arm movement, to raise events in your application
  • Debug and test your application to increase the quality of the software delivered
  • Track users wherever they are seated or standing so that your application can interact with the users
  • Capture sounds to convert the vocal input into application commands
  • Adjust the Kinect angle programmatically to optimize the view angle according to the user position and the environment characteristics
Estimated delivery fee Deliver to Bulgaria

Premium delivery 7 - 10 business days

€25.95
(Includes tracking information)

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Apr 25, 2013
Length: 112 pages
Edition : 1st
Language : English
ISBN-13 : 9781849697187
Vendor :
Microsoft
Languages :

What do you get with Print?

Product feature icon Instant access to your digital copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Redeem a companion digital copy on all Print orders
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Estimated delivery fee Deliver to Bulgaria

Premium delivery 7 - 10 business days

€25.95
(Includes tracking information)

Product Details

Publication date : Apr 25, 2013
Length: 112 pages
Edition : 1st
Language : English
ISBN-13 : 9781849697187
Vendor :
Microsoft
Languages :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 91.97
Kinect in Motion - Audio and Visual Tracking by Example
€24.99
Kinect for Windows SDK Programming Guide
€37.99
Augmented Reality with Kinect
€28.99
Total 91.97 Stars icon

Table of Contents

4 Chapters
Kinect for Windows – Hardware and SDK Overview Chevron down icon Chevron up icon
Starting with Image Streams Chevron down icon Chevron up icon
Skeletal Tracking Chevron down icon Chevron up icon
Speech Recognition Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.8
(6 Ratings)
5 star 83.3%
4 star 16.7%
3 star 0%
2 star 0%
1 star 0%
Filter icon Filter
Top Reviews

Filter reviews by




carla Jul 02, 2013
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This book has a very straight-forward approach to kinect programming.By keeping it simple and concise you can easily understand and get into kinect!It's even got an hardware overview, which I found great in order to further understand.Even though it is a small book, you'll be amazed on how quickly you'll start programming with Kinect just by following the examples.If you have any programming basis and want to get started with Kinect, this book is a great tool.
Amazon Verified review Amazon
Dick Mandemaker Jul 22, 2013
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Although I'm not a developer pur sang, this book gave me great insight in how Kinect works and how you can use it to develop applications that use the video and audio tracking. Chapter 1 describes how Kinect works and what the current state of tracking enables. The next chapters give you enough clues to develop your own applications, and the notes and summary in each chapter makes reading and understanding easy. And finally in the appendix you will learn how to save time coding and testing on Kinect enabled applications by recording all the video data coming into an application from a Kinect sensor with Kinect Studio, injecting the recorded video in an application allowing us to test your code without getting out of your chair over and over again. All in all this book is worth reading!
Amazon Verified review Amazon
Matteo Jun 28, 2013
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This is a short and very easy to read book, but is very useful. Clemente Giorio and Massimo Fascinari have taken a very look leading approach to drawing you in to how to use the Kinect SDK and get used to NUI style development.After a fast introduction of hardware (chapter 1), book builds up very nicely on all the features enabled with Kinect like Cameras (chapter 2), Skeletons (chapter 3), Speech recognition (chapter 4) and useful tools (chapter 5).There are a lot of examples that help to understand all features and gradually go deeper into the understanding of the development with Kinect. This book is useful also for expert developer because introduces interesting tricks.Highly recommend this book for anyone interested in delving into Kinect.
Amazon Verified review Amazon
Lector Amante de los Libros Jul 24, 2013
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Giorio and Fascinari have done an excellent work on this book. A very helpful aid to get involved in the fascinating world of Kinect for Windows and motion control computing and the techniques for designing natural user interfaces (NUIs).Chapter 1, Kinect for Windows - Hardware and SDK Overview: An easy, yet thorough explanation of the Kinect sensor hardware architecture and its sensors. The reader of this chapter will finally understand the secrets behind the Kinect sensor and will understand how it tracks its users and their movements.Chapter 2, Starting with Image Streams: This chapter guides the reader through the implementation of code to capture data from the color stream, depth stream, and IR stream data. At the same time, the reader of this chapter becomes familiar with the different mechanisms to handle images.Chapter 3, Skeletal Tracking: Perhaps the most fun part of this book. The programmer will learn how to track motion and get control of the Kinect for Windows users' movement, by means of manipulating and controlling the skeletons in both the default mode and he seated mode (available in Kinect for Windows but not in Kinect for XBOX360).Chapter 4, Speech Recognition: This chapter helps the reader to understand how to manipulate the Kinect sensor audio stream data, how to work with grammars defined by XML files and programmatically and how to track audio coming from different directions.Definitely a must read for everyone interested in programming applications for Kinect for Windows. The only drawback is that this book focuses on version 1.6 of the Kinect for Windows SDK, and at the time of its publication, Microsoft has made available already version 1.7. Programmers should definitely refer to the newest SDK documentation in addition to reading this book in order to benefit from the new tools and features.
Amazon Verified review Amazon
Keith Harvey May 31, 2013
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I really love technical books that get to the point!I can't stand most of the tomes that spend 100+ pages explaining the history of computer science or other nonsense. Kinect in Motion is NOT one of those books. It gets to the point of teaching you about audio and visual tracking and gives you some great development workflow tips along the way. When the authors do cover background information, it's directly related to learning the task at hand. Very cool!I was personally interested in this book because I've been wanting to understand Kinect's audio tracking abilities. While there are samples and blog posts out there floating around, I just never really got the whole picture of how things work. I've always wanted to build an intelligent video conferencing system that tracks users as they speak, and now I have what I need to make it happen.The book really is good at explaining motion tracking and especially the nuances around folks that are standing and sitting. For my goal of creating an intelligent video conferencing system. Most people are sitting, so this was very helpful.Overall, the style of this book is clean, focused, and sometimes you get little bits of humor which I appreciate. If you want to learn and more importantly UNDERSTAND Kinect audio and visual tracking, I highly recommend this book!Cheers!
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is the digital copy I get with my Print order? Chevron down icon Chevron up icon

When you buy any Print edition of our Books, you can redeem (for free) the eBook edition of the Print Book you’ve purchased. This gives you instant access to your book when you make an order via PDF, EPUB or our online Reader experience.

What is the delivery time and cost of print book? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela
What is custom duty/charge? Chevron down icon Chevron up icon

Customs duty are charges levied on goods when they cross international borders. It is a tax that is imposed on imported goods. These duties are charged by special authorities and bodies created by local governments and are meant to protect local industries, economies, and businesses.

Do I have to pay customs charges for the print book order? Chevron down icon Chevron up icon

The orders shipped to the countries that are listed under EU27 will not bear custom charges. They are paid by Packt as part of the order.

List of EU27 countries: www.gov.uk/eu-eea:

A custom duty or localized taxes may be applicable on the shipment and would be charged by the recipient country outside of the EU27 which should be paid by the customer and these duties are not included in the shipping charges been charged on the order.

How do I know my custom duty charges? Chevron down icon Chevron up icon

The amount of duty payable varies greatly depending on the imported goods, the country of origin and several other factors like the total invoice amount or dimensions like weight, and other such criteria applicable in your country.

For example:

  • If you live in Mexico, and the declared value of your ordered items is over $ 50, for you to receive a package, you will have to pay additional import tax of 19% which will be $ 9.50 to the courier service.
  • Whereas if you live in Turkey, and the declared value of your ordered items is over € 22, for you to receive a package, you will have to pay additional import tax of 18% which will be € 3.96 to the courier service.
How can I cancel my order? Chevron down icon Chevron up icon

Cancellation Policy for Published Printed Books:

You can cancel any order within 1 hour of placing the order. Simply contact customercare@packt.com with your order details or payment transaction id. If your order has already started the shipment process, we will do our best to stop it. However, if it is already on the way to you then when you receive it, you can contact us at customercare@packt.com using the returns and refund process.

Please understand that Packt Publishing cannot provide refunds or cancel any order except for the cases described in our Return Policy (i.e. Packt Publishing agrees to replace your printed book because it arrives damaged or material defect in book), Packt Publishing will not accept returns.

What is your returns and refunds policy? Chevron down icon Chevron up icon

Return Policy:

We want you to be happy with your purchase from Packtpub.com. We will not hassle you with returning print books to us. If the print book you receive from us is incorrect, damaged, doesn't work or is unacceptably late, please contact Customer Relations Team on customercare@packt.com with the order number and issue details as explained below:

  1. If you ordered (eBook, Video or Print Book) incorrectly or accidentally, please contact Customer Relations Team on customercare@packt.com within one hour of placing the order and we will replace/refund you the item cost.
  2. Sadly, if your eBook or Video file is faulty or a fault occurs during the eBook or Video being made available to you, i.e. during download then you should contact Customer Relations Team within 14 days of purchase on customercare@packt.com who will be able to resolve this issue for you.
  3. You will have a choice of replacement or refund of the problem items.(damaged, defective or incorrect)
  4. Once Customer Care Team confirms that you will be refunded, you should receive the refund within 10 to 12 working days.
  5. If you are only requesting a refund of one book from a multiple order, then we will refund you the appropriate single item.
  6. Where the items were shipped under a free shipping offer, there will be no shipping costs to refund.

On the off chance your printed book arrives damaged, with book material defect, contact our Customer Relation Team on customercare@packt.com within 14 days of receipt of the book with appropriate evidence of damage and we will work with you to secure a replacement copy, if necessary. Please note that each printed book you order from us is individually made by Packt's professional book-printing partner which is on a print-on-demand basis.

What tax is charged? Chevron down icon Chevron up icon

Currently, no tax is charged on the purchase of any print book (subject to change based on the laws and regulations). A localized VAT fee is charged only to our European and UK customers on eBooks, Video and subscriptions that they buy. GST is charged to Indian customers for eBooks and video purchases.

What payment methods can I use? Chevron down icon Chevron up icon

You can pay with the following card types:

  1. Visa Debit
  2. Visa Credit
  3. MasterCard
  4. PayPal
What is the delivery time and cost of print books? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela