I have already installed the correct Intel RealSense SR300 camera drivers and can use the Intel RealSense viewer to see both the rgb and depth camera streams. So I know this side of things are working ok.
I now want to use SharpSenses library from nuget to experiment. I am using the same code they display in their homepage
var cam = Camera.Create();
cam.LeftHand.Visible += (sender, args) => {
Console.WriteLine("Left Hand Visible");
};
cam.LeftHand.NotVisible += (sender, args) => {
Console.WriteLine("Left Hand Not Visible");
};
cam.Start();
Console.ReadLine();
However it fails to run with
System.NullReferenceException: 'Object reference not set to an instance of an object.'
In the line
var cam = Camera.Create();
the inner exception is
StackTrace " at SharpSenses.RealSense.RealSenseCamera..ctor()\r\n at SharpSenses.Camera.Create(Capability[] capabilities)\r\n at SharpSenses.Camera.Create()\r\n at WpfApp1.MainWindow..ctor() in c:\\users\\rfonseka\\documents\\visual studio 2017\\Projects\\WpfApp1\\WpfApp1\\MainWindow.xaml.cs:line 28" string
What am I missing?
I have download and installed intel_rs_sdk_offline_package_10.0.26.0396.exe but that didn't make any difference.