Skip to content

Commit

Permalink
[#122] Set StreamBufferHandlingMode to Newest Only to reduce latency
Browse files Browse the repository at this point in the history
  • Loading branch information
g3force committed Feb 24, 2019
1 parent 93779d7 commit cd0e342
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/shared/capture/capture_spinnaker.cpp
Expand Up @@ -271,6 +271,9 @@ bool CaptureSpinnaker::startCapture()
pCam->TriggerMode.SetValue(Spinnaker::TriggerModeEnums::TriggerMode_Off);
pCam->AcquisitionMode.SetValue(Spinnaker::AcquisitionModeEnums::AcquisitionMode_Continuous);

// Only take the latest image, reference: https://www.ptgrey.com/tan/11174
pCam->TLStream.StreamBufferHandlingMode.SetValue(StreamBufferHandlingMode_NewestOnly);

ColorFormat out_color = Colors::stringToColorFormat(v_colorout->getSelection().c_str());
if(out_color == COLOR_RAW8)
{
Expand Down

0 comments on commit cd0e342

Please sign in to comment.