package documentation
OpenFlexure Microscope Camera.
This module defines the interface for cameras. Any compatible lt.Thing should enable the server to work.
See repository root for licensing information.
| Module | opencv |
OpenFlexure Microscope OpenCV Camera. |
| Module | opencv |
Utilities for managing CV2 cameras. |
| Module | picamera |
Submodule for interacting with a Raspberry Pi camera using the Picamera2 library. |
| Module | picamera |
Functions to set up a Raspberry Pi Camera (v2 and HQ) for scientific use. |
| Module | picamera |
Functions for loading, adjusting, or reading from the Picamera2 tuning file. |
| Module | simulation |
OpenFlexure Microscope OpenCV Camera. |
From __init__.py:
| Class | |
The base class for all cameras. All cameras must directly inherit from this class. |
| Class | |
The database engine to back gallery interactions for the captures. |
| Class | |
A class that holds images in memory. The images are by default PIL images. |
| Class | |
Summary information for the UI about an image. |
| Class | |
Description of still capture modes for the camera. |
| Class | |
A class for capturing at least a single image. |
| Class | |
Basic data for image formats. |
| Class | |
Subclass the Labthings descriptor to return our own class. |
| Class | |
An MJPEG stream where the frame time can be recorded with the frame. |
| Class | |
Description of streaming modes for the camera. |
| Exception | |
An error trying to capture from a CameraThing. |
| Exception | |
An error called if no image is in memory when accessed. |
| Function | downsample |
Downsample an image by taking the mean of each nxn region. |
| Constant | BASE |
Undocumented |
| Function | _file |
Return whether this filename is a capture. |
Downsample an image by taking the mean of each nxn region.
This should be very efficient:
- calculate each pixel as the mean of each factor * factor square without
- interpolation.
- If the image is not an integer multiple of the resampling factor, discard
- the left-over pixels to avoid odd edge effects and keep performance quick.
Undocumented
| Value |
|