get_frame

get_frame#

method

ThorCamClient.get_frame() ndarray[source]#

Returns the last image received from the stream.

You should make sure to call await_stream() before calling this method.

Returns:
np.ndarray

The last image received from the stream.

Examples

>>> cam = ThorCamClient()
>>> cam.connect("camera_name")
>>> cam.start_stream()
>>> cam.await_stream()
>>> frame = cam.get_frame()