You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
682 B
35 lines
682 B
using Microsoft.Kinect;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Media.Imaging;
|
|
|
|
namespace Lib
|
|
{
|
|
public abstract class KinectStream
|
|
{
|
|
public KinectSensor Sensor { get; protected set; }
|
|
|
|
protected KinectStream(KinectSensor sensor)
|
|
{
|
|
Sensor = sensor;
|
|
}
|
|
|
|
public virtual void Start()
|
|
{
|
|
if (Sensor != null) {
|
|
Sensor.Open();
|
|
}
|
|
}
|
|
|
|
public virtual void Stop()
|
|
{
|
|
if (Sensor != null) {
|
|
Sensor.Close();
|
|
}
|
|
}
|
|
}
|
|
}
|