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 SimulatedCamera A Thing that simulates a camera for testing.
Function fast_pil_blur Apply Gaussian blur using PIL (faster than scipy).
Constant BG_COLOR Undocumented
Constant LOGGER Undocumented
Constant RATIO Undocumented
Constant RNG Undocumented
Function _frame2bytes Convert frame to bytes.
def fast_pil_blur(array: np.ndarray, sigma: float) -> np.ndarray: (source)

Apply Gaussian blur using PIL (faster than scipy).

BG_COLOR: list[int] = (source)

Undocumented

Value
[220, 215, 217]

Undocumented

Value
logging.getLogger(__name__)
RATIO: tuple = (source)

Undocumented

Value
(2, 2, 0.2)

Undocumented

Value
np.random.default_rng()
def _frame2bytes(frame: Image) -> bytes: (source)

Convert frame to bytes.