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を使用して、パラメーターを簡単に設定することもできます。