module documentation
OpenFlexure Microscope OpenCV Camera.
This module defines a Thing that is responsible for using the stage and camera together to perform an autofocus routine.
See repository root for licensing information.
| Class | |
A Thing that simulates a camera for testing. |
| Function | colour |
Convert a colour string into RGB colour values. |
| Function | fast |
Apply Gaussian blur using PIL (faster than scipy). |
| Constant | BG |
Undocumented |
| Constant | COLOUR |
Undocumented |
| Constant | COLOUR |
Undocumented |
| Constant | DOWNSAMPLE |
Undocumented |
| Constant | LOGGER |
Undocumented |
| Constant | RATIO |
Undocumented |
| Constant | RNG |
Undocumented |
| Constant | SPRITE |
Undocumented |
| Function | _downsample |
Undocumented |
| Function | _frame2bytes |
Convert frame to bytes. |
Convert a colour string into RGB colour values.
| Parameters | |
colourstr | Should be a hex colour such as #33aa33 or a list of hex colours separated by semicolons (with optional spaces). |
| Returns | |
tuple[ | The colour as a tuple of 3 integers from 0 to 255 in value |
| Raises | |
ValueError | If the hex string is not valid. This should never happen if the user enters a bad colour string as the colour property setter checks the whole string regex. |