This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Configure Camera GigE Vision Streaming Parameters in MATLAB

Each image acquired by the camera is transferred to the computer as a data block of UDP packets, which are processed by MATLAB. For a lower CPU load during image acquisition and to prevent dropped frames, you can configure the camera streaming parameters (packet size and packet delay) in MATLAB.

Packet Size

  • The toolbox configures the packet size automatically after the connection between MATLAB and the camera has been established.

  • The packet size value can also be configured manually by setting the PacketSize property of the videoinput source or gigecam object.

  • Set the packet size value to the largest size that the network adapter and camera can handle (not larger than the Ethernet adapter jumbo packet size configured in Gigabit Adapter Settings).

Packet Delay

  • To prevent dropped frames, you can configure the camera to introduce a time delay between the image data packets by setting the PacketDelay property of the videoinput source or gigecam object.

  • Optimum values for the packet delay depend on the packet size, acquired frame size (image height and width), specified pixel format (for example 'Mono8'), camera frame rate, and other camera-specific settings.

For details about determining the recommended packet delay value, and setting the packet size and packet delay values in MATLAB, see https://www.mathworks.com/matlabcentral/answers/91834.