An intrusion detector camera application
With the knowledge you have gained so far in this chapter on the basics of skeleton tracking, you can build a small and interesting application – an intrusion detector camera. Kinect will be used as a watchdog at home or any other place where you want to monitor. The application will capture a photo and store it in your system whenever there is a human intrusion detected.
To build this application, you need to know how to capture the color stream from the sensor and save it in the system. We have already discussed capturing and saving image frames in Chapter 4, Getting the Most out of Kinect Camera.
Set up a new project and perform the basic and common tasks for identifying and getting a reference for the sensor. Once the sensor is identified, enable both the ColorStream
and SkeletonStream
channels and attach the event handler for both in the Loaded
event of the application, as shown in the following code block:
this.sensor.ColorStream.Enable(); this...