1. 设置帧率

Kinect说是30帧,但这里又能设置帧率,挺奇怪的。但并非没有设置帧率的接口。  

XnMapOutputMode Mode;

pGenerator->GetMapOutputMode(Mode);
Mode.nFPS = fps;
XnStatus nRetVal = pGenerator->SetMapOutputMode(Mode);

 

2. 读取IR图像

之前因为IRGenerator始终不能创建成功,武断判断Kinect没有实现IRGenerator接口。

嗯。很明显错了。思维方式大大的有问题。

但IRGenerator create成功以后,start generating 会有一个

Device protocol: bad parameter sent!  

解: 

此也是需要设置Generator的outputMode,

虽然设置前用getOutputMode查看mode发现也是vga,fps30,但不设置就不能startgenerating。

不追究了。 

相关文章:

  • 2022-02-28
  • 2021-09-25
  • 2022-01-15
  • 2022-12-23
  • 2022-12-23
  • 2022-02-26
猜你喜欢
  • 2021-11-24
  • 2022-12-23
  • 2022-12-23
  • 2021-10-18
  • 2021-12-04
  • 2021-09-17
相关资源
相似解决方案