跳转到内容

Acquisition Frame Rate (dart E)#

通过 Acquisition Frame Rate 相机功能,您可以设置相机帧速率的上限。

如果要在自由运行图像采集中以恒定的帧速率操作相机,此功能很有用。

该功能的使用#

运作原理#

如果启用了 Acquisition Frame Rate 功能,相机的最大帧速率受您输入的 Acquisition Frame Rate 参数值的限制。

例如,将帧采集速率设置为 20 帧/秒 (fps) 具有以下效果:

  • 如果另一个限制帧速率的系数允许高于 20 fps 的帧速率,帧速率将保持在 20 fps 的恒定值。
  • 如果另一个限制帧速率的系数仅允许帧速率低于 20 fps,则帧速率将不受 Acquisition Frame Rate 功能的限制。

设置帧采集速率#

  1. Set the AcquisitionFrameRateEnable parameter to true (if available).
  2. Set the AcquisitionFrameRate parameter to the desired upper limit for the camera's frame rate in frames per second.

详情#

相机型号 AcquisitionFrameRateEnable 参数可用
daA2500-60mc
daA2500-60mci
daA3840-30mc 不支持 Acquisition Frame Rate 功能
daA4200-30mci

示例代码#

// Set the upper limit of the camera's frame rate to 30 fps
camera.AcquisitionFrameRateEnable.SetValue(true);
camera.AcquisitionFrameRate.SetValue(30.0);
INodeMap& nodemap = camera.GetNodeMap();
// Set the upper limit of the camera's frame rate to 30 fps
CBooleanParameter(nodemap, "AcquisitionFrameRateEnable").SetValue(true);
CFloatParameter(nodemap, "AcquisitionFrameRate").SetValue(30.0);
// Set the upper limit of the camera's frame rate to 30 fps
camera.Parameters[PLCamera.AcquisitionFrameRateEnable].SetValue(true);
camera.Parameters[PLCamera.AcquisitionFrameRate].SetValue(30.0);
/* Macro to check for errors */
#define CHECK(errc) if (GENAPI_E_OK != errc) printErrorAndExit(errc)
GENAPIC_RESULT errRes = GENAPI_E_OK;  /* Return value of pylon methods */
/* Set the upper limit of the camera's frame rate to 30 fps */
errRes = PylonDeviceSetBooleanFeature(hdev, "AcquisitionFrameRateEnable", 1);
CHECK(errRes);
errRes = PylonDeviceSetFloatFeature(hdev, "AcquisitionFrameRate", 30.0);
CHECK(errRes);
# Set the upper limit of the camera's frame rate to 30 fps
camera.AcquisitionFrameRateEnable.Value = True
camera.AcquisitionFrameRate.Value = 30.0
/* Macro to check for errors */
#define CHECK(errc) if (GENAPI_E_OK != errc) printErrorAndExit(errc)
GENAPIC_RESULT errRes = GENAPI_E_OK;  /* Return value of pylon methods */
/* Set the upper limit of the camera's frame rate to 30 fps */
errRes = PylonDeviceSetBooleanFeature(hdev, "AcquisitionFrameRateEnable", 1);
CHECK(errRes);
errRes = PylonDeviceSetFloatFeature(hdev, "AcquisitionFrameRate", 30.0);
CHECK(errRes);

您还可以使用 pylon Viewer 轻松设置参数。