mahos.meas.camera.Camera#

class mahos.meas.camera.Camera(gconf: dict, name, context=None)#

Measurement for continuous camera frame capturing.

Parameters:
  • target.servers (dict[str, str]) – InstrumentServer targets. camera is required; switch and pg are optional.

  • switch_names (list[str]) – Optional switch instrument names to route signal/optical paths.

  • switch_command (str) – Switch command label passed to Switch worker.

  • transform.swap (bool) – If True, transpose incoming camera frames.

  • transform.flipH (bool) – If True, flip frames along the height axis.

  • transform.flipW (bool) – If True, flip frames along the width axis.

__init__(gconf: dict, name, context=None)#

Methods

__init__(gconf, name[, context])

change_state(msg)

Change state to msg.state.

close_resources()

Close custom resources.

export_data(msg)

Export data.

get_param_dict(msg)

Get parameter dict.

get_param_dict_labels(msg)

Get parameter dict labels.

load_data(msg)

Load data.

main()

Main procedure that will be looped.

save_data(msg)

Save data.

wait()

Wait until required resources are ready.

Attributes