openflexure-microscope-server/openflexure_microscope/plugins
Richard Bowman 416b74cb4a A plugin to allow recalibration via the web API
This adds a plugin with a single endpoint, "recalibrate".
The recalibrate methods are deliberately simple and not aware
of the StreamingCamera because I want to share the maximum
amount of code with non-microscope projects that also want
to flatten the lens shading.

The plugin is microscope-specific, and therefore handles
shutting down the stream and managing the resolution of
the camera, to allow the calibration to run without
restarting the microscope server.

Currently it **DOES NOT SAVE SETTINGS**.

TODO: save the settings after recalibration.

Arguably this isn't a job for this plugin, what we would
need is:
* A method to sync the StreamingCamera's settings with the
  underlying PiCamera object
* A method to save the StreamingCamera's settings to disk.
I think it would be neatest to provide the first of these as
a method of the StreamingCamera class, and call it from the
plugin.  Saving the settings to disk (e.g. to the microscope
rc file, or to somewhere else) should be a separate endpoint
(although most interfaces will probably call it immediately
after recalibration).
2019-01-30 09:10:33 +00:00
..
camera_calibration A plugin to allow recalibration via the web API 2019-01-30 09:10:33 +00:00
default Included Richards autofocus plugin in defaults 2019-01-29 13:54:47 +00:00
example Fixed broken error handling for long-running tasks 2019-01-28 17:49:44 +00:00
testing Updated simple plugin test 2019-01-08 16:15:39 +00:00
__init__.py Completely rewritten plugin loader to accept absolute modules, or single file paths 2018-12-12 15:00:30 +00:00
loader.py Errors in plugins no longer caught as if the module just didn't exist 2019-01-29 13:42:32 +00:00