get_frame

get_frame#

method

UC480.get_frame() array[source]#

Retrieves the last frame from the camera’s memory buffer.

Retrieves the last frame from the camera memory buffer and processes it into a computer-readable image format.

Warning

Not a Pyro exposed function, cannot be called from a Proxy. We recommend using the ThorCamClient for streaming video/getting remote images.

For remote connections, the image is serialized using the pickle module for remote connections. The header is then added to inform the client how long the message is. This should not be called from the client. It will be called from the function _video_loop() which is on a parallel thread with Pyro5.

Can only be called after start_capture().

Returns:
imgnp.array

The last frame from the camera’s memory buffer.