Skip to main content

ImageClient

Inherits from: ZenohClient No class docstring.

Inherited methods

  • From ZenohClient: getLatestMessage, process_latest_msg, msg_cb, run, publish, stop

init

ImageClient.__init__(client_dict, agent_dict = None, shared_session = None)
No docstring provided.
Arguments
client_dict
required
No description provided.
agent_dict
No description provided.
shared_session
No description provided.

publish_image

ImageClient.publish_image(data: np.ndarray, encoding: str = 'rgb8', compressed: bool = True, format: str = 'jpeg', quality: int = 85) -> None
Publish an image to the topic.
Arguments
data (np.ndarray)
np.ndarray
required
Image data as numpy array
encoding (str)
str
Image encoding (e.g., “rgb8”, “32FC1”)
compressed (bool)
bool
Whether to use compressed image format (default: True)
format (str)
str
Compression format (“jpeg” or “png”), only used if compressed=True
quality (int)
int
JPEG quality (0-100), only used for JPEG compression
Returns
returns
None

get_image

ImageClient.get_image() -> Optional[np.ndarray]
No docstring provided.
Returns
returns
Optional[np.ndarray]