mobotix¶
This module provides funtionality specific to mobotix cameras.
Functions¶
|
Extract variables from image bytes. |
|
Load image and read variables from header of a Mobotix image. |
|
Use re to extract a variable from the mobotix image header |
|
Use re to extract image timestamp from the mobotix image header |
Module Contents¶
- mobotix.extract_mobotix_meta_data(img_bytes)¶
Extract variables from image bytes.
- Parameters:
img_bytes – byte array or filename of the image as str or subclass of Path
- Returns:
Dictionary of image metadata variables
- mobotix.get_mobotix_meta_data(img_file, max_header_length=5000)¶
Load image and read variables from header of a Mobotix image.
- Parameters:
img_file – filename of the image as str or subclass of Path
max_header_length – Expected maximum number of bytes in the image header (don’t read image further)
- Returns:
Dictionary of image metadata variables
- mobotix.search_header(search_pattern, header, dtype=np.float32)¶
Use re to extract a variable from the mobotix image header
- mobotix.read_timestamp_from_header(header)¶
Use re to extract image timestamp from the mobotix image header