IInputProvider.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using MathNet.Numerics.LinearAlgebra.Single;
  7. namespace bbiwarg.DataSource
  8. {
  9. interface IInputProvider
  10. {
  11. void init();
  12. void start();
  13. void stop();
  14. void updateFrame();
  15. void releaseFrame();
  16. float getFrameRate();
  17. float getHFOV();
  18. float getVFOV();
  19. int getConfidenceThreshold();
  20. void setConfidenceThreshold(int value);
  21. bool isActive();
  22. DepthImage getDepthImage();
  23. ConfidenceImage getConfidenceImage();
  24. UVImage getUVImage();
  25. ColorImage getColorImage();
  26. /*
  27. * all handIndices have to be 1 or 2
  28. */
  29. bool isHandOpen(uint handIndex);
  30. Vector getPalmPosition3D(uint handIndex);
  31. Vector getPalmPosition2D(uint handIndex);
  32. Vector getTipPosition3D(uint handIndex);
  33. Vector getForearmPosition3D(uint handIndex);
  34. Vector getPalmNormal3D(uint handIndex);
  35. DetectionStatus[] getFingerStatus(uint handIndex);
  36. DetectionStatus getHandStatus(uint handIndex);
  37. Vector[] getFingerTipPositions3D(uint handIndex);
  38. Vector[] getFingerTipPositions2D(uint handIndex);
  39. HandSide getHandSide(uint handIndex);
  40. }
  41. }