Sensor Readout Mode#
缩短传感器的读出时间可以提高相机的帧速率。
该功能的使用#
To configure the sensor readout mode, set the SensorReadoutMode
parameter value one of the following values:
Normal
: The readout time for each row of pixels remains unchanged.Fast
: The readout time for each row of pixels is reduced, compared to normal readout. Accordingly, the overall sensor readout time is reduced and the camera can operate at higher frame rates. This can, however, result in reduced image quality.
示例代码#
/* 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 */
size_t len = 0;
char e_str[64] = {0};
/* Set the sensor readout mode to Fast */
errRes = PylonDeviceFeatureFromString(hdev, "SensorReadoutMode", "Fast");
CHECK(errRes);
/* Get the current sensor readout mode */
len = sizeof(e_str);
errRes = PylonDeviceFeatureToString(hdev, "SensorReadoutMode", e_str, &len);
CHECK(errRes);
您也可以使用 pylon Viewer 轻松设置参数。