mahos.meas.camera.CameraIO#

class mahos.meas.camera.CameraIO(logger=None)#

IO class for Camera.

save_data(filename: str, image: Image, note: str = '') bool#

Save data to filename. return True on success.

load_data(filename: str) Image | None#

Load data from filename. return None if load is failed.

export_data(filename: str, image: Image, params: dict | None = None) bool#

Export the data to text or image files.

Parameters:

filename – supported extensions: .png, .pdf, and .eps.