无法检索摄影机帧速率(spinnaker)

2024-05-15 22:17:33 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在使用spinnaker的PySpin/python包装器(Flir摄像头SDK)。我想知道摄像机的帧速率。示例SaveToAvi.Py提供了执行此操作的函数:

```
node_acquisition_framerate = PySpin.CFloatPtr(nodemap.GetNode('AcquisitionFrameRate'))

if not PySpin.IsAvailable(node_acquisition_framerate) and not Pyspin.IsReadable(node_acquisition_framerate):
     print ('Unable to retrieve frame rate. Aborting...')
     return False
framerate_to_set = node_acquisition_framerate.GetValue()
``` 

当我试着运行这个例子时,我得到了这个错误

('unable to retrieve frame rate. Aborting ...').

Tags: tonoderatesdknotframe摄像机retrieve