跳转到内容

Acquisition Frame Rate#

相机的 Acquisition Frame Rate 功能允许您设置相机帧速率上限。

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

该功能的使用#

运作原理#

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

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

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

信息

要确定实际帧速率,请使用 Resulting Frame Rate 功能。

设置帧采集速率#

  1. AcquisitionFrameRateEnable 参数设置为 true如果可用)。
  2. AcquisitionFrameRate 参数设置为相机帧速率上限(以每秒帧数为单位)。

详情#

显示所有相机型号

相机型号 AcquisitionFrameRateEnable 参数可用
a2A1920-51gcBAS
a2A1920-51gcPRO
a2A1920-51gmBAS
a2A1920-51gmPRO
a2A1920-160ucBAS
a2A1920-160ucPRO
a2A1920-160umBAS
a2A1920-160umPRO
a2A2590-22gcBAS
a2A2590-22gcPRO
a2A2590-22gmBAS
a2A2590-22gmPRO
a2A2590-60ucBAS
a2A2590-60ucPRO
a2A2590-60umBAS
a2A2590-60umPRO
a2A3840-13gcBAS
a2A3840-13gcPRO
a2A3840-13gmBAS
a2A3840-13gmPRO
a2A3840-45ucBAS
a2A3840-45ucPRO
a2A3840-45umBAS
a2A3840-45umPRO
acA640-90gc
acA640-90gm
acA640-90uc
acA640-90um
acA640-120gc
acA640-120gm
acA640-120uc
acA640-120um
acA640-121gm
acA640-300gc
acA640-300gm
acA640-750uc
acA640-750um
acA720-290gc
acA720-290gm
acA720-520uc
acA720-520um
acA780-75gc
acA780-75gm
acA800-200gc
acA800-200gm
acA800-510uc
acA800-510um
acA1280-60gc
acA1280-60gm
acA1300-22gc
acA1300-22gm
acA1300-30gc
acA1300-30gm
acA1300-30uc
acA1300-30um
acA1300-60gc
acA1300-60gm
acA1300-60gmNIR
acA1300-75gc
acA1300-75gm
acA1300-200uc
acA1300-200um
acA1440-73gc
acA1440-73gm
acA1440-220uc
acA1440-220um
acA1600-20gc
acA1600-20gm
acA1600-20uc
acA1600-20um
acA1600-60gc
acA1600-60gm
acA1920-25gc
acA1920-25gm
acA1920-25uc
acA1920-25um
acA1920-40gc
acA1920-40gm
acA1920-40uc
acA1920-40ucMED
acA1920-40um
acA1920-40umMED
acA1920-48gc
acA1920-48gm
acA1920-50gc
acA1920-50gm
acA1920-150uc
acA1920-150um
acA1920-155uc
acA1920-155ucMED
acA1920-155um
acA1920-155umMED
acA2000-50gc
acA2000-50gm
acA2000-50gmNIR
acA2000-165uc
acA2000-165um
acA2000-165umNIR
acA2040-25gc
acA2040-25gm
acA2040-25gmNIR
acA2040-35gc
acA2040-35gm
acA2040-55uc
acA2040-55um
acA2040-90uc
acA2040-90um
acA2040-90umNIR
acA2040-120uc
acA2040-120um
acA2440-20gc
acA2440-20gm
acA2440-35uc
acA2440-35ucMED
acA2440-35um
acA2440-35umMED
acA2440-75uc
acA2440-75ucMED
acA2440-75um
acA2440-75umMED
acA2500-14gc
acA2500-14gm
acA2500-14uc
acA2500-14um
acA2500-20gc
acA2500-20gcMED
acA2500-20gm
acA2500-20gmMED
acA2500-60uc
acA2500-60um
acA3088-16gc
acA3088-16gm
acA3088-57uc
acA3088-57um
acA3800-10gc
acA3800-10gm
acA3800-14uc
acA3800-14um
acA4024-8gc
acA4024-8gm
acA4024-29uc
acA4024-29um
acA4096-11gc
acA4096-11gm
acA4096-30uc
acA4096-30ucMED
acA4096-30um
acA4096-30umMED
acA4096-40uc
acA4096-40ucMED
acA4096-40um
acA4096-40umMED
acA4112-8gc
acA4112-8gm
acA4112-20uc
acA4112-20ucMED
acA4112-20um
acA4112-20umMED
acA4112-30uc
acA4112-30ucMED
acA4112-30um
acA4112-30umMED
acA4600-7gc
acA4600-10uc
acA5472-5gc
acA5472-5gm
acA5472-17uc
acA5472-17ucMED
acA5472-17um
boA4096-93cc
boA4096-93cm
boA4112-68cc
boA4112-68cm
daA1280-54lc
daA1280-54lm
daA1280-54uc
daA1280-54um
daA1600-60lc
daA1600-60lm
daA1600-60uc
daA1600-60um
daA1920-15um
daA1920-30uc
daA1920-30um
daA2500-14lc
daA2500-14lm
daA2500-14uc
daA2500-14um
daA2500-60mc
daA2500-60mci
daA4200-30mci
puA1280-54uc
puA1280-54um
puA1600-60uc
puA1600-60um
puA1920-30uc
puA1920-30um
puA2500-14uc
puA2500-14um

示例代码#

ace classic/U/L GigE 相机#

// Set the upper limit of the camera's frame rate to 30 fps
camera.AcquisitionFrameRateEnable.SetValue(true);
camera.AcquisitionFrameRateAbs.SetValue(30.0);
INodeMap& nodemap = camera.GetNodeMap();
// Set the upper limit of the camera's frame rate to 30 fps
CBooleanPtr(nodemap.GetNode("AcquisitionFrameRateEnable"))->SetValue(true);
CFloatPtr(nodemap.GetNode("AcquisitionFrameRateAbs"))->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, "AcquisitionFrameRateAbs").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.AcquisitionFrameRateAbs].SetValue(30.0);
// Set the upper limit of the camera's frame rate to 30 fps
Pylon.DeviceSetBooleanFeature(hdev, "AcquisitionFrameRateEnable", true);
Pylon.DeviceSetFloatFeature(hdev, "AcquisitionFrameRateAbs", 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, "AcquisitionFrameRateAbs", 30.0);
CHECK(errRes);

其他相机#

// 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
CBooleanPtr(nodemap.GetNode("AcquisitionFrameRateEnable"))->SetValue(true);
CFloatPtr(nodemap.GetNode("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);
// Set the upper limit of the camera's frame rate to 30 fps
Pylon.DeviceSetBooleanFeature(hdev, "AcquisitionFrameRateEnable", true);
Pylon.DeviceSetFloatFeature(hdev, "AcquisitionFrameRate", 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 轻松设置参数。