|
@@ -20,6 +20,7 @@ namespace bbiwarg.DataSource
|
|
|
private IParameterHandle<float> frameRate;
|
|
|
private IParameterHandle<float> hfov;
|
|
|
private IParameterHandle<float> vfov;
|
|
|
+ private int confidenceThreshold;
|
|
|
|
|
|
//data
|
|
|
private IDataHandle<int>[] handStatus = new IDataHandle<int>[2];
|
|
@@ -50,6 +51,7 @@ namespace bbiwarg.DataSource
|
|
|
sourceIsMovie = false;
|
|
|
}
|
|
|
active = false;
|
|
|
+ confidenceThreshold = 100;
|
|
|
}
|
|
|
|
|
|
// control-methodes
|
|
@@ -66,9 +68,13 @@ namespace bbiwarg.DataSource
|
|
|
|
|
|
// parameters
|
|
|
if (sourceIsMovie)
|
|
|
+ {
|
|
|
device.RegisterParameterHandle<int>("SOURCE.MOVIE.PlayMode").Value = 0; // playMode = once
|
|
|
+ }
|
|
|
else
|
|
|
- device.RegisterParameterHandle<int>("SOURCE.DEPTHSENSE.AmplitudeThreshold").Value = 100; // confidence-threshhold
|
|
|
+ {
|
|
|
+ device.RegisterParameterHandle<int>("SOURCE.DEPTHSENSE.AmplitudeThreshold").Value = confidenceThreshold; // confidence-threshhold
|
|
|
+ }
|
|
|
|
|
|
frameRate = device.RegisterParameterHandle<float>("SOURCE.FrameRate");
|
|
|
hfov = device.RegisterParameterHandle<float>("SOURCE.CAMERA.DEPTH.HFOV");
|
|
@@ -142,7 +148,7 @@ namespace bbiwarg.DataSource
|
|
|
device.ReleaseFrame();
|
|
|
}
|
|
|
|
|
|
- // getParameter-methodes
|
|
|
+ // Parameter-methodes
|
|
|
|
|
|
public float getFrameRate()
|
|
|
{
|
|
@@ -159,13 +165,23 @@ namespace bbiwarg.DataSource
|
|
|
return vfov.Value;
|
|
|
}
|
|
|
|
|
|
- // getData-methodes
|
|
|
+ public int getConfidenceThreshold()
|
|
|
+ {
|
|
|
+ return confidenceThreshold;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setConfidenceThreshold(int value)
|
|
|
+ {
|
|
|
+ confidenceThreshold = value;
|
|
|
+ }
|
|
|
|
|
|
public bool isActive()
|
|
|
{
|
|
|
return active;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ // Data-methodes
|
|
|
public DetectionStatus getHandStatus(uint handIndex)
|
|
|
{
|
|
|
checkHandIndex(handIndex);
|