跳转到内容
STAGING SERVER
DEVELOPMENT SERVER

Sensor Acquisition Mode#

通过 Sensor Acquisition Mode camera feature,您可以确定用于图像采集的传感器行数。

此功能仅适用于 Basler racer 2 L 和 racer 2 XL 相机。

要了解您的相机配备的是单线、双线、四线还是 TDI 传感器,请参阅您的相机型号主题。您可以在面阵和线阵相机部分找到您的相机主题。

信息

在 racer 2 L mono cameras 上,在配置 Black Level、Exposure Time 或增益时,Sensor Acquisition Mode 允许您决定是将设置应用于单传感器行,还是为多个传感器行指定不同的设置。

该功能的使用#

传感器采集模式允许您在不同的采集模式之间进行选择,例如单线或双线图像采集。

根据您使用的是作为“经典”线阵相机的 racer 2 L mono camera,还是作为 TDI 线阵相机的 racer 2 XL camera,可用的传感器采集模式也有所不同。

racer 2 L Mono 相机#

若要在 racer 2 L 单色相机上设置传感器采集模式,请将 BslSensorAcquisitionMode 参数设置为以下值:

  • SingleLine:启用单线传感器采集模式。在此模式下,相机为每张采集的图像使用一个传感器行。这是默认设置。
  • DualLine, QuadLine:启用双线或四线传感器采集模式。在此模式下,相机为每张采集的图像使用两个或四个传感器行。通过此模式,您可以为各个传感器行使用不同的曝光时间或亮度设置等。

信息

要在单线和双线传感器采集模式之间切换,必须停止图像采集。

racer 2 XL 相机#

若要在 racer 2 XL 相机上设置传感器采集模式,请将 BslSensorAcquisitionMode 参数设置为以下值:

  • Area:启用面阵传感器采集模式。在此模式下,TDI 相机作为面阵相机运行,使用的是传感器的 像素 阵列。此模式用于 校准 期间调整镜头对焦。
    在面阵传感器采集模式下,相机以自由运行模式运行。在自由运行模式下,您可以根据需要调整曝光时间。
  • TDISingleLine:启用 TDI 单线传感器采集模式。在此模式下,TDI 相机使用带有一个读出行的像素阵列。

示例代码#

// Set the dual line sensor acquisition mode on the camera
camera.BslSensorAcquisitionMode.SetValue(BslSensorAcquisitionMode_DualLine);
INodeMap& nodemap = camera.GetNodeMap();
// Set the dual line sensor acquisition mode on the camera
CEnumParameter(nodemap, "BslSensorAcquisitionMode").SetValue("DualLine");
// Set the dual line sensor acquisition mode on the camera
camera.Parameters[PLCamera.BslSensorAcquisitionMode].SetValue(PLCamera.BslSensorAcquisitionMode.DualLine);
/* 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 dual line sensor acquisition mode on the camera */
errRes = PylonDeviceFeatureFromString(hdev, "BslSensorAcquisitionMode", "DualLine");
CHECK(errRes);
# Set the dual line sensor acquisition mode on the camera
camera.BslSensorAcquisitionMode.Value = "DualLine"

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